diff --git a/go.mod b/go.mod index 224549596..d28a5e6f6 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.17.0 golang.org/x/tools v0.6.0 google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 google.golang.org/grpc v1.59.0 @@ -13,7 +14,6 @@ require ( github.com/ghodss/yaml v1.0.0 // indirect github.com/golang/glog v1.1.2 // indirect golang.org/x/mod v0.8.0 // indirect - golang.org/x/net v0.17.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect google.golang.org/genproto v0.0.0-20231012201019-e917dd12ba7a // 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, 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, - 0x94, 0xb3, 0xb4, 0xa0, 0x2b, 0xca, 0xa4, 0xdd, 0x56, 0x75, 0x1a, 0x80, 0xc7, 0x60, 0xf1, 0xf9, - 0x5c, 0x50, 0x69, 0x5b, 0xea, 0xa8, 0x76, 0x55, 0x8f, 0x05, 0x7d, 0x14, 0xeb, 0x38, 0xa5, 0x51, - 0x68, 0xff, 0x77, 0x91, 0xdf, 0x27, 0x7b, 0xc4, 0xbb, 0x85, 0xc1, 0x2e, 0xbe, 0x58, 0x73, 0x26, - 0x28, 0x1e, 0x82, 0xb1, 0xca, 0x59, 0x1d, 0xbf, 0x92, 0x8a, 0xc4, 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, -} - // 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, 0xbb, 0xc4, 0x4e, 0x05, 0x33, 0x0b, 0x8f, 0xc0, 0x23, 0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ac, 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 1c2a29489..584c4b571 100644 --- a/pkg/brpb/brpb.pb.go +++ b/pkg/brpb/brpb.pb.go @@ -1,24 +1,93 @@ // 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: + + PrepareSnapshotBackupRequest + PrepareSnapshotBackupResponse + BackupMeta + BackupRange + File + MetaFile + PlacementPolicy + StatsBlock + StatsFile + StatsFileIndex + Schema + IDMap + PitrTableMap + PitrDBMap + RawRange + ClusterIDError + Error + StreamBackupTaskSecurityConfig + CipherInfo + MasterKeyConfig + 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 + Span + SpansOfFile + LogFileSubcompactionMeta + LogFileSubcompaction + LogFileSubcompactions + LogFileCompaction + MetaEdit + DeleteSpansOfFile + Migration +*/ 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 +99,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 PrepareSnapshotBackupRequestType int32 @@ -53,7 +122,6 @@ var PrepareSnapshotBackupRequestType_name = map[int32]string{ 1: "WaitApply", 2: "Finish", } - var PrepareSnapshotBackupRequestType_value = map[string]int32{ "UpdateLease": 0, "WaitApply": 1, @@ -63,9 +131,8 @@ var PrepareSnapshotBackupRequestType_value = map[string]int32{ func (x PrepareSnapshotBackupRequestType) String() string { return proto.EnumName(PrepareSnapshotBackupRequestType_name, int32(x)) } - func (PrepareSnapshotBackupRequestType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{0} + return fileDescriptorBrpb, []int{0} } type PrepareSnapshotBackupEventType int32 @@ -81,7 +148,6 @@ var PrepareSnapshotBackupEventType_name = map[int32]string{ 0: "WaitApplyDone", 1: "UpdateLeaseResult", } - var PrepareSnapshotBackupEventType_value = map[string]int32{ "WaitApplyDone": 0, "UpdateLeaseResult": 1, @@ -90,9 +156,8 @@ var PrepareSnapshotBackupEventType_value = map[string]int32{ func (x PrepareSnapshotBackupEventType) String() string { return proto.EnumName(PrepareSnapshotBackupEventType_name, int32(x)) } - func (PrepareSnapshotBackupEventType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{1} + return fileDescriptorBrpb, []int{1} } // sst files or log files compression algorithm @@ -112,7 +177,6 @@ var CompressionType_name = map[int32]string{ 2: "SNAPPY", 3: "ZSTD", } - var CompressionType_value = map[string]int32{ "UNKNOWN": 0, "LZ4": 1, @@ -123,10 +187,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{2} -} +func (CompressionType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{2} } // BackupMpde represents the mode of this whole backup request to the cluster. // and we need to store it in `backupmeta`. @@ -147,7 +208,6 @@ var BackupMode_name = map[int32]string{ 0: "SCAN", 1: "FILE", } - var BackupMode_value = map[string]int32{ "SCAN": 0, "FILE": 1, @@ -156,10 +216,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{3} -} +func (BackupMode) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{3} } type MetaVersion int32 @@ -172,7 +229,6 @@ var MetaVersion_name = map[int32]string{ 0: "V1", 1: "V2", } - var MetaVersion_value = map[string]int32{ "V1": 0, "V2": 1, @@ -181,10 +237,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{4} -} +func (MetaVersion) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{4} } type FileType int32 @@ -197,7 +250,6 @@ var FileType_name = map[int32]string{ 0: "Delete", 1: "Put", } - var FileType_value = map[string]int32{ "Delete": 0, "Put": 1, @@ -206,57 +258,25 @@ 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{5} -} +func (FileType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{5} } type PrepareSnapshotBackupRequest struct { // The type of the request. Ty PrepareSnapshotBackupRequestType `protobuf:"varint,1,opt,name=ty,proto3,enum=backup.PrepareSnapshotBackupRequestType" json:"ty,omitempty"` // The regions related to the request. // If the request is "UpdateLease" or "Finish", it should be empty. - 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"` // The lease duration for "UpdateLease" request. - LeaseInSeconds uint64 `protobuf:"varint,3,opt,name=lease_in_seconds,json=leaseInSeconds,proto3" json:"lease_in_seconds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LeaseInSeconds uint64 `protobuf:"varint,3,opt,name=lease_in_seconds,json=leaseInSeconds,proto3" json:"lease_in_seconds,omitempty"` } func (m *PrepareSnapshotBackupRequest) Reset() { *m = PrepareSnapshotBackupRequest{} } func (m *PrepareSnapshotBackupRequest) String() string { return proto.CompactTextString(m) } func (*PrepareSnapshotBackupRequest) ProtoMessage() {} func (*PrepareSnapshotBackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{0} -} -func (m *PrepareSnapshotBackupRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareSnapshotBackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareSnapshotBackupRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PrepareSnapshotBackupRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareSnapshotBackupRequest.Merge(m, src) -} -func (m *PrepareSnapshotBackupRequest) XXX_Size() int { - return m.Size() -} -func (m *PrepareSnapshotBackupRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareSnapshotBackupRequest.DiscardUnknown(m) + return fileDescriptorBrpb, []int{0} } -var xxx_messageInfo_PrepareSnapshotBackupRequest proto.InternalMessageInfo - func (m *PrepareSnapshotBackupRequest) GetTy() PrepareSnapshotBackupRequestType { if m != nil { return m.Ty @@ -283,49 +303,20 @@ type PrepareSnapshotBackupResponse struct { Ty PrepareSnapshotBackupEventType `protobuf:"varint,1,opt,name=ty,proto3,enum=backup.PrepareSnapshotBackupEventType" json:"ty,omitempty"` // The region bind to the type. // For "WaitApplyDone". - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` // The error of the execution. - Error *errorpb.Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Error *errorpb.Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` // Whether the last lease is valid. // For "UpdateLease" and "Finish". - LastLeaseIsValid bool `protobuf:"varint,4,opt,name=last_lease_is_valid,json=lastLeaseIsValid,proto3" json:"last_lease_is_valid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LastLeaseIsValid bool `protobuf:"varint,4,opt,name=last_lease_is_valid,json=lastLeaseIsValid,proto3" json:"last_lease_is_valid,omitempty"` } func (m *PrepareSnapshotBackupResponse) Reset() { *m = PrepareSnapshotBackupResponse{} } func (m *PrepareSnapshotBackupResponse) String() string { return proto.CompactTextString(m) } func (*PrepareSnapshotBackupResponse) ProtoMessage() {} func (*PrepareSnapshotBackupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{1} -} -func (m *PrepareSnapshotBackupResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrepareSnapshotBackupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrepareSnapshotBackupResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PrepareSnapshotBackupResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrepareSnapshotBackupResponse.Merge(m, src) -} -func (m *PrepareSnapshotBackupResponse) XXX_Size() int { - return m.Size() + return fileDescriptorBrpb, []int{1} } -func (m *PrepareSnapshotBackupResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrepareSnapshotBackupResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PrepareSnapshotBackupResponse proto.InternalMessageInfo func (m *PrepareSnapshotBackupResponse) GetTy() PrepareSnapshotBackupEventType { if m != nil { @@ -367,9 +358,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. @@ -380,78 +371,47 @@ 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"` + 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"` // record the backup range and the correspond SST files when using file-copy backup. - Ranges []*BackupRange `protobuf:"bytes,24,rep,name=ranges,proto3" json:"ranges,omitempty"` + Ranges []*BackupRange `protobuf:"bytes,24,rep,name=ranges" json:"ranges,omitempty"` // record the size of the backup data files and meta files - BackupSize uint64 `protobuf:"varint,25,opt,name=backup_size,json=backupSize,proto3" json:"backup_size,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{2} -} -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) + BackupSize uint64 `protobuf:"varint,25,opt,name=backup_size,json=backupSize,proto3" json:"backup_size,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{2} } func (m *BackupMeta) GetClusterId() uint64 { if m != nil { @@ -622,46 +582,15 @@ func (m *BackupMeta) GetBackupSize() uint64 { } 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,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{3} -} -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) + 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"` } -var xxx_messageInfo_BackupRange proto.InternalMessageInfo +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{3} } func (m *BackupRange) GetStartKey() []byte { if m != nil { @@ -697,44 +626,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{4} -} -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{4} } func (m *File) GetName() string { if m != nil { @@ -824,54 +722,23 @@ 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 BackupRanges. - BackupRanges []*BackupRange `protobuf:"bytes,6,rep,name=backup_ranges,json=backupRanges,proto3" json:"backup_ranges,omitempty"` + BackupRanges []*BackupRange `protobuf:"bytes,6,rep,name=backup_ranges,json=backupRanges" json:"backup_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{5} -} -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{5} } func (m *MetaFile) GetMetaFiles() []*File { if m != nil { @@ -916,44 +783,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{6} -} -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{6} } func (m *PlacementPolicy) GetInfo() []byte { if m != nil { @@ -966,44 +802,13 @@ type StatsBlock struct { // The physical id which the stats json data belongs to. PhysicalId int64 `protobuf:"varint,1,opt,name=physical_id,json=physicalId,proto3" json:"physical_id,omitempty"` // The marshal data of the part of json_table. Currently it is the partition table. - JsonTable []byte `protobuf:"bytes,2,opt,name=json_table,json=jsonTable,proto3" json:"json_table,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatsBlock) Reset() { *m = StatsBlock{} } -func (m *StatsBlock) String() string { return proto.CompactTextString(m) } -func (*StatsBlock) ProtoMessage() {} -func (*StatsBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{7} -} -func (m *StatsBlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatsBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatsBlock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *StatsBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatsBlock.Merge(m, src) -} -func (m *StatsBlock) XXX_Size() int { - return m.Size() -} -func (m *StatsBlock) XXX_DiscardUnknown() { - xxx_messageInfo_StatsBlock.DiscardUnknown(m) + JsonTable []byte `protobuf:"bytes,2,opt,name=json_table,json=jsonTable,proto3" json:"json_table,omitempty"` } -var xxx_messageInfo_StatsBlock proto.InternalMessageInfo +func (m *StatsBlock) Reset() { *m = StatsBlock{} } +func (m *StatsBlock) String() string { return proto.CompactTextString(m) } +func (*StatsBlock) ProtoMessage() {} +func (*StatsBlock) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{7} } func (m *StatsBlock) GetPhysicalId() int64 { if m != nil { @@ -1021,44 +826,13 @@ func (m *StatsBlock) GetJsonTable() []byte { type StatsFile struct { // A set of files that contains json_tables. - Blocks []*StatsBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatsFile) Reset() { *m = StatsFile{} } -func (m *StatsFile) String() string { return proto.CompactTextString(m) } -func (*StatsFile) ProtoMessage() {} -func (*StatsFile) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{8} -} -func (m *StatsFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatsFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatsFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *StatsFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatsFile.Merge(m, src) -} -func (m *StatsFile) XXX_Size() int { - return m.Size() -} -func (m *StatsFile) XXX_DiscardUnknown() { - xxx_messageInfo_StatsFile.DiscardUnknown(m) + Blocks []*StatsBlock `protobuf:"bytes,1,rep,name=blocks" json:"blocks,omitempty"` } -var xxx_messageInfo_StatsFile proto.InternalMessageInfo +func (m *StatsFile) Reset() { *m = StatsFile{} } +func (m *StatsFile) String() string { return proto.CompactTextString(m) } +func (*StatsFile) ProtoMessage() {} +func (*StatsFile) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{8} } func (m *StatsFile) GetBlocks() []*StatsBlock { if m != nil { @@ -1077,44 +851,13 @@ type StatsFileIndex struct { // cipher_iv is used for AES cipher CipherIv []byte `protobuf:"bytes,5,opt,name=cipher_iv,json=cipherIv,proto3" json:"cipher_iv,omitempty"` // If the size of the stats is very small, save the data into the metafile - InlineData []byte `protobuf:"bytes,6,opt,name=inline_data,json=inlineData,proto3" json:"inline_data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatsFileIndex) Reset() { *m = StatsFileIndex{} } -func (m *StatsFileIndex) String() string { return proto.CompactTextString(m) } -func (*StatsFileIndex) ProtoMessage() {} -func (*StatsFileIndex) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{9} -} -func (m *StatsFileIndex) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatsFileIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StatsFileIndex.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *StatsFileIndex) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatsFileIndex.Merge(m, src) -} -func (m *StatsFileIndex) XXX_Size() int { - return m.Size() -} -func (m *StatsFileIndex) XXX_DiscardUnknown() { - xxx_messageInfo_StatsFileIndex.DiscardUnknown(m) + InlineData []byte `protobuf:"bytes,6,opt,name=inline_data,json=inlineData,proto3" json:"inline_data,omitempty"` } -var xxx_messageInfo_StatsFileIndex proto.InternalMessageInfo +func (m *StatsFileIndex) Reset() { *m = StatsFileIndex{} } +func (m *StatsFileIndex) String() string { return proto.CompactTextString(m) } +func (*StatsFileIndex) ProtoMessage() {} +func (*StatsFileIndex) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{9} } func (m *StatsFileIndex) GetName() string { if m != nil { @@ -1169,44 +912,13 @@ type Schema struct { // https://github.com/pingcap/tidb/blob/e136429d8dc5d70f43cd3f94179b0b9f47595097/statistics/handle/dump.go#L116 Stats []byte `protobuf:"bytes,7,opt,name=stats,proto3" json:"stats,omitempty"` // An index of files that contains stats data - StatsIndex []*StatsFileIndex `protobuf:"bytes,8,rep,name=stats_index,json=statsIndex,proto3" json:"stats_index,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{10} -} -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) + StatsIndex []*StatsFileIndex `protobuf:"bytes,8,rep,name=stats_index,json=statsIndex" json:"stats_index,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{10} } func (m *Schema) GetDb() []byte { if m != nil { @@ -1265,45 +977,14 @@ func (m *Schema) GetStatsIndex() []*StatsFileIndex { } 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{11} -} -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{11} } func (m *IDMap) GetUpstreamId() int64 { if m != nil { @@ -1320,46 +1001,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{12} -} -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{12} } func (m *PitrTableMap) GetName() string { if m != nil { @@ -1383,46 +1033,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{13} -} -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{13} } func (m *PitrDBMap) GetName() string { if m != nil { @@ -1446,46 +1065,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{14} -} -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{14} } func (m *RawRange) GetStartKey() []byte { if m != nil { @@ -1509,45 +1097,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{15} -} -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{15} } func (m *ClusterIDError) GetCurrent() uint64 { if m != nil { @@ -1569,44 +1126,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{16} -} -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{16} } type isError_Detail interface { isError_Detail() @@ -1615,13 +1141,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() {} @@ -1663,57 +1189,112 @@ 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), } } +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 + } + case nil: + default: + return fmt.Errorf("Error.Detail has unexpected type %T", x) + } + 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 +} + type StreamBackupTaskSecurityConfig struct { // Types that are valid to be assigned to Encryption: // *StreamBackupTaskSecurityConfig_PlaintextDataKey // *StreamBackupTaskSecurityConfig_MasterKeyConfig - Encryption isStreamBackupTaskSecurityConfig_Encryption `protobuf_oneof:"encryption"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Encryption isStreamBackupTaskSecurityConfig_Encryption `protobuf_oneof:"encryption"` } func (m *StreamBackupTaskSecurityConfig) Reset() { *m = StreamBackupTaskSecurityConfig{} } func (m *StreamBackupTaskSecurityConfig) String() string { return proto.CompactTextString(m) } func (*StreamBackupTaskSecurityConfig) ProtoMessage() {} func (*StreamBackupTaskSecurityConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{17} -} -func (m *StreamBackupTaskSecurityConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamBackupTaskSecurityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StreamBackupTaskSecurityConfig.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 fileDescriptorBrpb, []int{17} } -func (m *StreamBackupTaskSecurityConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamBackupTaskSecurityConfig.Merge(m, src) -} -func (m *StreamBackupTaskSecurityConfig) XXX_Size() int { - return m.Size() -} -func (m *StreamBackupTaskSecurityConfig) XXX_DiscardUnknown() { - xxx_messageInfo_StreamBackupTaskSecurityConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamBackupTaskSecurityConfig proto.InternalMessageInfo type isStreamBackupTaskSecurityConfig_Encryption interface { isStreamBackupTaskSecurityConfig_Encryption() @@ -1722,10 +1303,10 @@ type isStreamBackupTaskSecurityConfig_Encryption interface { } type StreamBackupTaskSecurityConfig_PlaintextDataKey struct { - PlaintextDataKey *CipherInfo `protobuf:"bytes,1,opt,name=plaintext_data_key,json=plaintextDataKey,proto3,oneof" json:"plaintext_data_key,omitempty"` + PlaintextDataKey *CipherInfo `protobuf:"bytes,1,opt,name=plaintext_data_key,json=plaintextDataKey,oneof"` } type StreamBackupTaskSecurityConfig_MasterKeyConfig struct { - MasterKeyConfig *MasterKeyConfig `protobuf:"bytes,2,opt,name=master_key_config,json=masterKeyConfig,proto3,oneof" json:"master_key_config,omitempty"` + MasterKeyConfig *MasterKeyConfig `protobuf:"bytes,2,opt,name=master_key_config,json=masterKeyConfig,oneof"` } func (*StreamBackupTaskSecurityConfig_PlaintextDataKey) isStreamBackupTaskSecurityConfig_Encryption() { @@ -1754,54 +1335,89 @@ func (m *StreamBackupTaskSecurityConfig) GetMasterKeyConfig() *MasterKeyConfig { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*StreamBackupTaskSecurityConfig) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*StreamBackupTaskSecurityConfig) 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 _StreamBackupTaskSecurityConfig_OneofMarshaler, _StreamBackupTaskSecurityConfig_OneofUnmarshaler, _StreamBackupTaskSecurityConfig_OneofSizer, []interface{}{ (*StreamBackupTaskSecurityConfig_PlaintextDataKey)(nil), (*StreamBackupTaskSecurityConfig_MasterKeyConfig)(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{18} -} -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 _StreamBackupTaskSecurityConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*StreamBackupTaskSecurityConfig) + // encryption + switch x := m.Encryption.(type) { + case *StreamBackupTaskSecurityConfig_PlaintextDataKey: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PlaintextDataKey); err != nil { + return err } - return b[:n], nil + case *StreamBackupTaskSecurityConfig_MasterKeyConfig: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.MasterKeyConfig); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("StreamBackupTaskSecurityConfig.Encryption 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 _StreamBackupTaskSecurityConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*StreamBackupTaskSecurityConfig) + switch tag { + case 1: // encryption.plaintext_data_key + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(CipherInfo) + err := b.DecodeMessage(msg) + m.Encryption = &StreamBackupTaskSecurityConfig_PlaintextDataKey{msg} + return true, err + case 2: // encryption.master_key_config + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyConfig) + err := b.DecodeMessage(msg) + m.Encryption = &StreamBackupTaskSecurityConfig_MasterKeyConfig{msg} + return true, err + default: + return false, nil + } +} + +func _StreamBackupTaskSecurityConfig_OneofSizer(msg proto.Message) (n int) { + m := msg.(*StreamBackupTaskSecurityConfig) + // encryption + switch x := m.Encryption.(type) { + case *StreamBackupTaskSecurityConfig_PlaintextDataKey: + s := proto.Size(x.PlaintextDataKey) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *StreamBackupTaskSecurityConfig_MasterKeyConfig: + s := proto.Size(x.MasterKeyConfig) + 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 *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{18} } func (m *CipherInfo) GetCipherType() encryptionpb.EncryptionMethod { if m != nil { @@ -1818,45 +1434,14 @@ func (m *CipherInfo) GetCipherKey() []byte { } type MasterKeyConfig struct { - EncryptionType encryptionpb.EncryptionMethod `protobuf:"varint,1,opt,name=encryption_type,json=encryptionType,proto3,enum=encryptionpb.EncryptionMethod" json:"encryption_type,omitempty"` - MasterKeys []*encryptionpb.MasterKey `protobuf:"bytes,2,rep,name=master_keys,json=masterKeys,proto3" json:"master_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MasterKeyConfig) Reset() { *m = MasterKeyConfig{} } -func (m *MasterKeyConfig) String() string { return proto.CompactTextString(m) } -func (*MasterKeyConfig) ProtoMessage() {} -func (*MasterKeyConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{19} -} -func (m *MasterKeyConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MasterKeyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MasterKeyConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MasterKeyConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterKeyConfig.Merge(m, src) -} -func (m *MasterKeyConfig) XXX_Size() int { - return m.Size() -} -func (m *MasterKeyConfig) XXX_DiscardUnknown() { - xxx_messageInfo_MasterKeyConfig.DiscardUnknown(m) + EncryptionType encryptionpb.EncryptionMethod `protobuf:"varint,1,opt,name=encryption_type,json=encryptionType,proto3,enum=encryptionpb.EncryptionMethod" json:"encryption_type,omitempty"` + MasterKeys []*encryptionpb.MasterKey `protobuf:"bytes,2,rep,name=master_keys,json=masterKeys" json:"master_keys,omitempty"` } -var xxx_messageInfo_MasterKeyConfig proto.InternalMessageInfo +func (m *MasterKeyConfig) Reset() { *m = MasterKeyConfig{} } +func (m *MasterKeyConfig) String() string { return proto.CompactTextString(m) } +func (*MasterKeyConfig) ProtoMessage() {} +func (*MasterKeyConfig) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{19} } func (m *MasterKeyConfig) GetEncryptionType() encryptionpb.EncryptionMethod { if m != nil { @@ -1882,7 +1467,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"` @@ -1892,7 +1477,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 @@ -1902,7 +1487,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. @@ -1911,45 +1496,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{20} -} -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{20} } func (m *BackupRequest) GetClusterId() uint64 { if m != nil { @@ -2086,7 +1640,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"` @@ -2095,48 +1649,17 @@ 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"` // security config for backup files - SecurityConfig *StreamBackupTaskSecurityConfig `protobuf:"bytes,7,opt,name=security_config,json=securityConfig,proto3" json:"security_config,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{21} -} -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) + SecurityConfig *StreamBackupTaskSecurityConfig `protobuf:"bytes,7,opt,name=security_config,json=securityConfig" json:"security_config,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{21} } func (m *StreamBackupTaskInfo) GetStorage() *StorageBackend { if m != nil { @@ -2196,44 +1719,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{22} -} -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{22} } type isStorageBackend_Backend interface { isStorageBackend_Backend() @@ -2242,25 +1734,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() {} @@ -2327,9 +1819,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), @@ -2340,86 +1832,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{23} -} -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 } - return b[:n], nil + 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 + } + 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{23} } // 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{24} -} -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{24} } func (m *Local) GetPath() string { if m != nil { @@ -2437,55 +2023,24 @@ 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"` - 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{25} -} -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"` + 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{25} } func (m *S3) GetEndpoint() string { if m != nil { @@ -2619,44 +2174,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{26} -} -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{26} } func (m *GCS) GetEndpoint() string { if m != nil { @@ -2705,44 +2229,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{27} -} -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{27} } func (m *AzureCustomerKey) GetEncryptionKey() string { if m != nil { @@ -2805,44 +2298,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{28} -} -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{28} } func (m *AzureBlobStorage) GetEndpoint() string { if m != nil { @@ -2908,48 +2370,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{29} -} -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{29} } func (m *Bucket) GetEndpoint() string { if m != nil { @@ -2988,46 +2419,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{30} -} -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{30} } func (m *CloudDynamic) GetBucket() *Bucket { if m != nil { @@ -3053,44 +2453,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{31} -} -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{31} } func (m *HDFS) GetRemote() string { if m != nil { @@ -3100,49 +2469,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{32} -} -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{32} } func (m *BackupResponse) GetError() *Error { if m != nil { @@ -3182,44 +2520,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{33} -} -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{33} } func (m *CleanupRequest) GetUniqueId() string { if m != nil { @@ -3229,45 +2536,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{34} -} -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{34} } func (m *CleanupResponse) GetError() *Error { if m != nil { @@ -3285,44 +2561,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{35} -} -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{35} } func (m *PrepareRequest) GetSaveToStorage() bool { if m != nil { @@ -3332,50 +2577,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{36} -} -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{36} } func (m *PrepareResponse) GetError() *Error { if m != nil { @@ -3406,85 +2620,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{37} -} -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{37} } 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{38} -} -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{38} } func (m *CheckAdminResponse) GetError() *Error { if m != nil { @@ -3508,47 +2660,18 @@ 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{39} -} -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() + return fileDescriptorBrpb, []int{39} } -func (m *ExternalStorageRestoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalStorageRestoreRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalStorageRestoreRequest proto.InternalMessageInfo func (m *ExternalStorageRestoreRequest) GetStorageBackend() *StorageBackend { if m != nil { @@ -3579,85 +2702,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{40} -} -func (m *ExternalStorageRestoreResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -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) + return fileDescriptorBrpb, []int{40} } -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{41} -} -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{41} } func (m *ExternalStorageSaveRequest) GetStorageBackend() *StorageBackend { if m != nil { @@ -3681,90 +2744,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{42} -} -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() + return fileDescriptorBrpb, []int{42} } -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,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{43} -} -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{43} } func (m *Metadata) GetFiles() []*DataFileInfo { if m != nil { @@ -3820,8 +2823,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. @@ -3829,44 +2832,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{44} -} -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{44} } func (m *DataFileGroup) GetPath() string { if m != nil { @@ -3916,7 +2888,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. @@ -3960,46 +2932,15 @@ type DataFileInfo struct { // In older versions, this might be empty. // If a region get split or merged during observing, // the file may contain multi epoches. - RegionEpoch []*metapb.RegionEpoch `protobuf:"bytes,22,rep,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + RegionEpoch []*metapb.RegionEpoch `protobuf:"bytes,22,rep,name=region_epoch,json=regionEpoch" json:"region_epoch,omitempty"` // Encryption information of this data file, not set if plaintext. - FileEncryptionInfo *encryptionpb.FileEncryptionInfo `protobuf:"bytes,23,opt,name=file_encryption_info,json=fileEncryptionInfo,proto3" json:"file_encryption_info,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{45} -} -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) + FileEncryptionInfo *encryptionpb.FileEncryptionInfo `protobuf:"bytes,23,opt,name=file_encryption_info,json=fileEncryptionInfo" json:"file_encryption_info,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{45} } func (m *DataFileInfo) GetSha256() []byte { if m != nil { @@ -4170,44 +3111,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{46} -} -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{46} } func (m *StreamBackupError) GetHappenAt() uint64 { if m != nil { @@ -4238,45 +3148,14 @@ func (m *StreamBackupError) GetStoreId() uint64 { } type Span struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Length uint64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,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_483d1f48d58a4885, []int{47} -} -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) + Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + Length uint64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,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 fileDescriptorBrpb, []int{47} } func (m *Span) GetOffset() uint64 { if m != nil { @@ -4293,45 +3172,14 @@ func (m *Span) GetLength() uint64 { } type SpansOfFile struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,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 *SpansOfFile) Reset() { *m = SpansOfFile{} } -func (m *SpansOfFile) String() string { return proto.CompactTextString(m) } -func (*SpansOfFile) ProtoMessage() {} -func (*SpansOfFile) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{48} -} -func (m *SpansOfFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SpansOfFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SpansOfFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SpansOfFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_SpansOfFile.Merge(m, src) -} -func (m *SpansOfFile) XXX_Size() int { - return m.Size() -} -func (m *SpansOfFile) XXX_DiscardUnknown() { - xxx_messageInfo_SpansOfFile.DiscardUnknown(m) + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Spans []*Span `protobuf:"bytes,2,rep,name=spans" json:"spans,omitempty"` } -var xxx_messageInfo_SpansOfFile proto.InternalMessageInfo +func (m *SpansOfFile) Reset() { *m = SpansOfFile{} } +func (m *SpansOfFile) String() string { return proto.CompactTextString(m) } +func (*SpansOfFile) ProtoMessage() {} +func (*SpansOfFile) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{48} } func (m *SpansOfFile) GetPath() string { if m != nil { @@ -4368,44 +3216,13 @@ type LogFileSubcompactionMeta struct { Ty FileType `protobuf:"varint,10,opt,name=ty,proto3,enum=backup.FileType" json:"ty,omitempty"` TableId int64 `protobuf:"varint,11,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` // The input log files of this. - Sources []*SpansOfFile `protobuf:"bytes,12,rep,name=sources,proto3" json:"sources,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogFileSubcompactionMeta) Reset() { *m = LogFileSubcompactionMeta{} } -func (m *LogFileSubcompactionMeta) String() string { return proto.CompactTextString(m) } -func (*LogFileSubcompactionMeta) ProtoMessage() {} -func (*LogFileSubcompactionMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{49} -} -func (m *LogFileSubcompactionMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogFileSubcompactionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogFileSubcompactionMeta.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogFileSubcompactionMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogFileSubcompactionMeta.Merge(m, src) -} -func (m *LogFileSubcompactionMeta) XXX_Size() int { - return m.Size() -} -func (m *LogFileSubcompactionMeta) XXX_DiscardUnknown() { - xxx_messageInfo_LogFileSubcompactionMeta.DiscardUnknown(m) + Sources []*SpansOfFile `protobuf:"bytes,12,rep,name=sources" json:"sources,omitempty"` } -var xxx_messageInfo_LogFileSubcompactionMeta proto.InternalMessageInfo +func (m *LogFileSubcompactionMeta) Reset() { *m = LogFileSubcompactionMeta{} } +func (m *LogFileSubcompactionMeta) String() string { return proto.CompactTextString(m) } +func (*LogFileSubcompactionMeta) ProtoMessage() {} +func (*LogFileSubcompactionMeta) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{49} } func (m *LogFileSubcompactionMeta) GetSize_() uint64 { if m != nil { @@ -4495,46 +3312,15 @@ func (m *LogFileSubcompactionMeta) GetSources() []*SpansOfFile { // Subcompactions are actions that collect then sort key values from one region. type LogFileSubcompaction struct { // The metadata of the subcompaction. - Meta *LogFileSubcompactionMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Meta *LogFileSubcompactionMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` // The generated SSTs. - SstOutputs []*File `protobuf:"bytes,2,rep,name=sst_outputs,json=sstOutputs,proto3" json:"sst_outputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogFileSubcompaction) Reset() { *m = LogFileSubcompaction{} } -func (m *LogFileSubcompaction) String() string { return proto.CompactTextString(m) } -func (*LogFileSubcompaction) ProtoMessage() {} -func (*LogFileSubcompaction) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{50} -} -func (m *LogFileSubcompaction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogFileSubcompaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogFileSubcompaction.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogFileSubcompaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogFileSubcompaction.Merge(m, src) -} -func (m *LogFileSubcompaction) XXX_Size() int { - return m.Size() -} -func (m *LogFileSubcompaction) XXX_DiscardUnknown() { - xxx_messageInfo_LogFileSubcompaction.DiscardUnknown(m) + SstOutputs []*File `protobuf:"bytes,2,rep,name=sst_outputs,json=sstOutputs" json:"sst_outputs,omitempty"` } -var xxx_messageInfo_LogFileSubcompaction proto.InternalMessageInfo +func (m *LogFileSubcompaction) Reset() { *m = LogFileSubcompaction{} } +func (m *LogFileSubcompaction) String() string { return proto.CompactTextString(m) } +func (*LogFileSubcompaction) ProtoMessage() {} +func (*LogFileSubcompaction) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{50} } func (m *LogFileSubcompaction) GetMeta() *LogFileSubcompactionMeta { if m != nil { @@ -4553,44 +3339,13 @@ func (m *LogFileSubcompaction) GetSstOutputs() []*File { // Batched version of `LogFileSubcompaction`. // So we can store many subcompactions to one file, to reduce the number of file. type LogFileSubcompactions struct { - Subcompactions []*LogFileSubcompaction `protobuf:"bytes,1,rep,name=subcompactions,proto3" json:"subcompactions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogFileSubcompactions) Reset() { *m = LogFileSubcompactions{} } -func (m *LogFileSubcompactions) String() string { return proto.CompactTextString(m) } -func (*LogFileSubcompactions) ProtoMessage() {} -func (*LogFileSubcompactions) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{51} -} -func (m *LogFileSubcompactions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogFileSubcompactions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogFileSubcompactions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogFileSubcompactions) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogFileSubcompactions.Merge(m, src) -} -func (m *LogFileSubcompactions) XXX_Size() int { - return m.Size() -} -func (m *LogFileSubcompactions) XXX_DiscardUnknown() { - xxx_messageInfo_LogFileSubcompactions.DiscardUnknown(m) + Subcompactions []*LogFileSubcompaction `protobuf:"bytes,1,rep,name=subcompactions" json:"subcompactions,omitempty"` } -var xxx_messageInfo_LogFileSubcompactions proto.InternalMessageInfo +func (m *LogFileSubcompactions) Reset() { *m = LogFileSubcompactions{} } +func (m *LogFileSubcompactions) String() string { return proto.CompactTextString(m) } +func (*LogFileSubcompactions) ProtoMessage() {} +func (*LogFileSubcompactions) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{51} } func (m *LogFileSubcompactions) GetSubcompactions() []*LogFileSubcompaction { if m != nil { @@ -4613,44 +3368,13 @@ type LogFileCompaction struct { // relative path to the subcompaction generated SST files. // this is a hint for garbage-collecting, so we don't need to read the metas one by one. // Those SSTs cannot be directly used, what you need is probably in `artificates`. - GeneratedFiles string `protobuf:"bytes,7,opt,name=generated_files,json=generatedFiles,proto3" json:"generated_files,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LogFileCompaction) Reset() { *m = LogFileCompaction{} } -func (m *LogFileCompaction) String() string { return proto.CompactTextString(m) } -func (*LogFileCompaction) ProtoMessage() {} -func (*LogFileCompaction) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{52} -} -func (m *LogFileCompaction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LogFileCompaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LogFileCompaction.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *LogFileCompaction) XXX_Merge(src proto.Message) { - xxx_messageInfo_LogFileCompaction.Merge(m, src) -} -func (m *LogFileCompaction) XXX_Size() int { - return m.Size() -} -func (m *LogFileCompaction) XXX_DiscardUnknown() { - xxx_messageInfo_LogFileCompaction.DiscardUnknown(m) + GeneratedFiles string `protobuf:"bytes,7,opt,name=generated_files,json=generatedFiles,proto3" json:"generated_files,omitempty"` } -var xxx_messageInfo_LogFileCompaction proto.InternalMessageInfo +func (m *LogFileCompaction) Reset() { *m = LogFileCompaction{} } +func (m *LogFileCompaction) String() string { return proto.CompactTextString(m) } +func (*LogFileCompaction) ProtoMessage() {} +func (*LogFileCompaction) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{52} } func (m *LogFileCompaction) GetCompactionFromTs() uint64 { if m != nil { @@ -4705,52 +3429,21 @@ type MetaEdit struct { // Path to the meta file. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Delete the physical files (MetaFileGroup) in the meta file. - DeletePhysicalFiles []string `protobuf:"bytes,2,rep,name=delete_physical_files,json=deletePhysicalFiles,proto3" json:"delete_physical_files,omitempty"` + DeletePhysicalFiles []string `protobuf:"bytes,2,rep,name=delete_physical_files,json=deletePhysicalFiles" json:"delete_physical_files,omitempty"` // Delete the logical files (MetaFileInfo) in the meta file. // Note: Even the operation have been performed in the meta, // this modification should be kept as long as the corresponding physical // file not deleted. Or we may cannot know when to delete the physical file. // Then the file will be leak until truncated. - DeleteLogicalFiles []*DeleteSpansOfFile `protobuf:"bytes,3,rep,name=delete_logical_files,json=deleteLogicalFiles,proto3" json:"delete_logical_files,omitempty"` + DeleteLogicalFiles []*DeleteSpansOfFile `protobuf:"bytes,3,rep,name=delete_logical_files,json=deleteLogicalFiles" json:"delete_logical_files,omitempty"` // Whether to delete the metadata itself. - DestructSelf bool `protobuf:"varint,4,opt,name=destruct_self,json=destructSelf,proto3" json:"destruct_self,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MetaEdit) Reset() { *m = MetaEdit{} } -func (m *MetaEdit) String() string { return proto.CompactTextString(m) } -func (*MetaEdit) ProtoMessage() {} -func (*MetaEdit) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{53} -} -func (m *MetaEdit) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetaEdit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MetaEdit.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MetaEdit) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetaEdit.Merge(m, src) -} -func (m *MetaEdit) XXX_Size() int { - return m.Size() -} -func (m *MetaEdit) XXX_DiscardUnknown() { - xxx_messageInfo_MetaEdit.DiscardUnknown(m) + DestructSelf bool `protobuf:"varint,4,opt,name=destruct_self,json=destructSelf,proto3" json:"destruct_self,omitempty"` } -var xxx_messageInfo_MetaEdit proto.InternalMessageInfo +func (m *MetaEdit) Reset() { *m = MetaEdit{} } +func (m *MetaEdit) String() string { return proto.CompactTextString(m) } +func (*MetaEdit) ProtoMessage() {} +func (*MetaEdit) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{53} } func (m *MetaEdit) GetPath() string { if m != nil { @@ -4784,47 +3477,16 @@ func (m *MetaEdit) GetDestructSelf() bool { // execution of delayed deletion. type DeleteSpansOfFile struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` + Spans []*Span `protobuf:"bytes,2,rep,name=spans" json:"spans,omitempty"` // This is a hint for garbage collecting. // So we can easily check whether a set of spans consists the whole file. - WholeFileLength uint64 `protobuf:"varint,3,opt,name=whole_file_length,json=wholeFileLength,proto3" json:"whole_file_length,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteSpansOfFile) Reset() { *m = DeleteSpansOfFile{} } -func (m *DeleteSpansOfFile) String() string { return proto.CompactTextString(m) } -func (*DeleteSpansOfFile) ProtoMessage() {} -func (*DeleteSpansOfFile) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{54} -} -func (m *DeleteSpansOfFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteSpansOfFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteSpansOfFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteSpansOfFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteSpansOfFile.Merge(m, src) -} -func (m *DeleteSpansOfFile) XXX_Size() int { - return m.Size() -} -func (m *DeleteSpansOfFile) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteSpansOfFile.DiscardUnknown(m) + WholeFileLength uint64 `protobuf:"varint,3,opt,name=whole_file_length,json=wholeFileLength,proto3" json:"whole_file_length,omitempty"` } -var xxx_messageInfo_DeleteSpansOfFile proto.InternalMessageInfo +func (m *DeleteSpansOfFile) Reset() { *m = DeleteSpansOfFile{} } +func (m *DeleteSpansOfFile) String() string { return proto.CompactTextString(m) } +func (*DeleteSpansOfFile) ProtoMessage() {} +func (*DeleteSpansOfFile) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{54} } func (m *DeleteSpansOfFile) GetPath() string { if m != nil { @@ -4848,48 +3510,17 @@ func (m *DeleteSpansOfFile) GetWholeFileLength() uint64 { } type Migration struct { - EditMeta []*MetaEdit `protobuf:"bytes,1,rep,name=edit_meta,json=editMeta,proto3" json:"edit_meta,omitempty"` + EditMeta []*MetaEdit `protobuf:"bytes,1,rep,name=edit_meta,json=editMeta" json:"edit_meta,omitempty"` TruncatedTo uint64 `protobuf:"varint,2,opt,name=truncated_to,json=truncatedTo,proto3" json:"truncated_to,omitempty"` - Compactions []*LogFileCompaction `protobuf:"bytes,3,rep,name=compactions,proto3" json:"compactions,omitempty"` + Compactions []*LogFileCompaction `protobuf:"bytes,3,rep,name=compactions" json:"compactions,omitempty"` // Delete all files matches this prefix. - DestructPrefix []string `protobuf:"bytes,4,rep,name=destruct_prefix,json=destructPrefix,proto3" json:"destruct_prefix,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Migration) Reset() { *m = Migration{} } -func (m *Migration) String() string { return proto.CompactTextString(m) } -func (*Migration) ProtoMessage() {} -func (*Migration) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{55} -} -func (m *Migration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Migration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Migration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Migration) XXX_Merge(src proto.Message) { - xxx_messageInfo_Migration.Merge(m, src) -} -func (m *Migration) XXX_Size() int { - return m.Size() -} -func (m *Migration) XXX_DiscardUnknown() { - xxx_messageInfo_Migration.DiscardUnknown(m) + DestructPrefix []string `protobuf:"bytes,4,rep,name=destruct_prefix,json=destructPrefix" json:"destruct_prefix,omitempty"` } -var xxx_messageInfo_Migration proto.InternalMessageInfo +func (m *Migration) Reset() { *m = Migration{} } +func (m *Migration) String() string { return proto.CompactTextString(m) } +func (*Migration) ProtoMessage() {} +func (*Migration) Descriptor() ([]byte, []int) { return fileDescriptorBrpb, []int{55} } func (m *Migration) GetEditMeta() []*MetaEdit { if m != nil { @@ -4920,12 +3551,6 @@ func (m *Migration) GetDestructPrefix() []string { } func init() { - proto.RegisterEnum("backup.PrepareSnapshotBackupRequestType", PrepareSnapshotBackupRequestType_name, PrepareSnapshotBackupRequestType_value) - proto.RegisterEnum("backup.PrepareSnapshotBackupEventType", PrepareSnapshotBackupEventType_name, PrepareSnapshotBackupEventType_value) - 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((*PrepareSnapshotBackupRequest)(nil), "backup.PrepareSnapshotBackupRequest") proto.RegisterType((*PrepareSnapshotBackupResponse)(nil), "backup.PrepareSnapshotBackupResponse") proto.RegisterType((*BackupMeta)(nil), "backup.BackupMeta") @@ -4957,7 +3582,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") @@ -4983,292 +3607,12 @@ func init() { proto.RegisterType((*MetaEdit)(nil), "backup.MetaEdit") proto.RegisterType((*DeleteSpansOfFile)(nil), "backup.DeleteSpansOfFile") proto.RegisterType((*Migration)(nil), "backup.Migration") -} - -func init() { proto.RegisterFile("brpb.proto", fileDescriptor_483d1f48d58a4885) } - -var fileDescriptor_483d1f48d58a4885 = []byte{ - // 4478 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x7a, 0x5b, 0x6f, 0x1c, 0x47, - 0x76, 0x3f, 0x7b, 0xee, 0x73, 0xe6, 0xca, 0x22, 0x25, 0x8d, 0x69, 0x4b, 0xa2, 0x5b, 0xb6, 0x96, - 0x7f, 0xee, 0x8a, 0xeb, 0x95, 0xbc, 0x5a, 0xfd, 0xe3, 0x0d, 0x16, 0xbc, 0xc9, 0xa4, 0x75, 0x63, - 0x9a, 0xb4, 0x17, 0x31, 0x10, 0x34, 0x7a, 0xba, 0x6b, 0x38, 0xbd, 0xec, 0xe9, 0xee, 0xed, 0xea, - 0x19, 0x89, 0xce, 0x5b, 0xde, 0x0d, 0x27, 0x41, 0x1e, 0xf2, 0x05, 0x02, 0xe4, 0x21, 0x01, 0xf2, - 0x9a, 0xb7, 0x00, 0x49, 0x90, 0x0d, 0x12, 0x20, 0xfb, 0x90, 0x87, 0x3c, 0x06, 0x0e, 0x92, 0x6f, - 0x11, 0x20, 0x38, 0xa7, 0xaa, 0x7a, 0x7a, 0x86, 0x43, 0x4a, 0x72, 0x82, 0x7d, 0x9a, 0xa9, 0xdf, - 0x39, 0x55, 0x75, 0xaa, 0xce, 0xa5, 0xce, 0xa9, 0x6a, 0x80, 0x7e, 0x12, 0xf7, 0xb7, 0xe2, 0x24, - 0x4a, 0x23, 0x56, 0xe9, 0x3b, 0xee, 0xd9, 0x38, 0x5e, 0x6b, 0x9d, 0x4d, 0x92, 0xd8, 0xd5, 0xf0, - 0x5a, 0x8b, 0x27, 0x49, 0x94, 0x71, 0xad, 0x35, 0x47, 0x3c, 0x75, 0xb2, 0x16, 0xe3, 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0xd3, 0x92, 0x0d, 0xf6, 0x13, 0x68, 0xd0, 0x1f, 0x75, 0xfc, 0xd5, 0x48, 0x5f, 0xd7, 0x67, - 0xf4, 0x95, 0x29, 0xc6, 0x02, 0x62, 0xa5, 0xff, 0xe6, 0x33, 0x28, 0x1f, 0xee, 0x3d, 0x73, 0x62, - 0x94, 0x71, 0x1c, 0x8b, 0x34, 0xe1, 0xce, 0x28, 0x67, 0x39, 0x1a, 0x3a, 0xf4, 0x30, 0x00, 0x79, - 0xd1, 0xcb, 0x70, 0xca, 0x52, 0x20, 0x96, 0xe6, 0x14, 0x3c, 0xf4, 0xcc, 0x97, 0xd0, 0xc4, 0x03, - 0x81, 0x8c, 0x09, 0x47, 0x5d, 0x64, 0x03, 0x1f, 0x40, 0xc5, 0xf7, 0xf0, 0x2c, 0x51, 0x29, 0x60, - 0x4b, 0x8b, 0x49, 0x82, 0x58, 0x65, 0xdf, 0xc3, 0x9e, 0xf7, 0x00, 0x62, 0x27, 0x49, 0x7d, 0x3a, - 0xa2, 0x94, 0xab, 0xce, 0x71, 0xe6, 0x18, 0x4c, 0x01, 0xf5, 0xec, 0x24, 0xfa, 0x5f, 0xcc, 0xfa, - 0x03, 0xa8, 0x90, 0xae, 0xf5, 0x8c, 0xab, 0xf9, 0x63, 0x4e, 0xaf, 0xca, 0x52, 0x3c, 0xe6, 0x11, - 0xd4, 0x74, 0x1c, 0xf8, 0x8e, 0x87, 0x8c, 0x8c, 0x9a, 0x45, 0x1d, 0x35, 0xcd, 0x3d, 0x68, 0xef, - 0xaa, 0x04, 0x74, 0x8f, 0x32, 0x5d, 0xcc, 0x1e, 0xdd, 0x71, 0x92, 0xf0, 0x30, 0x55, 0x19, 0xaa, - 0x6e, 0x22, 0x25, 0x91, 0xb5, 0x00, 0x0d, 0x5a, 0xb2, 0x74, 0xd3, 0xfc, 0x67, 0x03, 0xca, 0xb2, - 0x77, 0x17, 0x8a, 0x23, 0x71, 0xaa, 0x36, 0x02, 0xff, 0xb2,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0x91, 0x84, 0x17, 0x83, 0x7d, 0x09, 0xe7, 0x96, - 0x55, 0x5a, 0xbc, 0xac, 0x72, 0x7e, 0x59, 0x73, 0xfa, 0xae, 0x5c, 0xd0, 0xf7, 0xbb, 0x50, 0x57, - 0x37, 0xa8, 0xbe, 0x47, 0xea, 0x2b, 0x5a, 0x35, 0x09, 0xcc, 0xdf, 0x96, 0xd5, 0x2e, 0x3f, 0x10, - 0xeb, 0x0b, 0xae, 0x9e, 0xa7, 0x0f, 0x76, 0x1f, 0x40, 0x89, 0x8a, 0xfa, 0x06, 0x19, 0x47, 0x37, - 0x7f, 0x3e, 0x52, 0x35, 0x4f, 0x54, 0x1c, 0xce, 0x17, 0x36, 0x1a, 0x09, 0x95, 0x22, 0x35, 0xab, - 0xe2, 0x0b, 0xfa, 0x98, 0xe2, 0x1d, 0xa8, 0xc9, 0x2b, 0x04, 0x55, 0x86, 0x14, 0xad, 0x2a, 0xb5, - 0x0f, 0xbd, 0x9c, 0x32, 0xda, 0x79, 0x65, 0xb0, 0xff, 0x0f, 0x6b, 0xb8, 0x47, 0x7d, 0x7e, 0x4a, - 0x3b, 0x65, 0xfb, 0xa1, 0xed, 0xf1, 0x81, 0x33, 0x0e, 0x52, 0xdb, 0x1d, 0x50, 0xe1, 0x51, 0xb2, - 0xae, 0x8d, 0xfc, 0x70, 0x07, 0x19, 0x4e, 0xc4, 0x61, 0xb8, 0x27, 0xa9, 0xbb, 0x03, 0x8a, 0x6f, - 0xf4, 0xdc, 0x1f, 0x0d, 0x06, 0x82, 0xa7, 0x54, 0x85, 0x94, 0xac, 0x06, 0x61, 0x2f, 0x08, 0x9a, - 0xb2, 0xa8, 0xb9, 0x97, 0x73, 0x2c, 0x32, 0x22, 0x2c, 0xbc, 0xd3, 0x60, 0x6f, 0x79, 0xa7, 0x91, - 0x7f, 0x14, 0x5a, 0x99, 0x7b, 0x14, 0xda, 0x80, 0xae, 0xd2, 0xda, 0x54, 0x3f, 0xab, 0xa4, 0x84, - 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d2, 0xa3, - 0xdd, 0xb8, 0x80, 0x6b, 0x49, 0xb1, 0xb7, 0x2b, 0x2f, 0x77, 0x58, 0xee, 0x73, 0x8a, 0xfc, 0xe5, - 0xd0, 0xb4, 0xf7, 0xdc, 0x2d, 0x90, 0xb9, 0x74, 0xff, 0x6f, 0x0c, 0xe8, 0xcc, 0x95, 0xa8, 0xec, - 0x4b, 0xa8, 0xaa, 0xaa, 0x9d, 0x65, 0xab, 0xb8, 0xf2, 0x76, 0x61, 0xed, 0xee, 0xeb, 0xd8, 0x32, - 0x69, 0x7f, 0x07, 0x4a, 0xc2, 0x99, 0x70, 0x66, 0x5e, 0xd2, 0x23, 0x57, 0xc6, 0xaf, 0xdd, 0xb9, - 0x92, 0x47, 0x0f, 0xb9, 0x73, 0xf7, 0xdf, 0xfe, 0xbc, 0x66, 0xfc, 0xea, 0xdb, 0x5b, 0xc6, 0xaf, - 0xbf, 0xbd, 0x65, 0xfc, 0xfb, 0xb7, 0xb7, 0x8c, 0x3f, 0xfd, 0x8f, 0x5b, 0x4b, 0xd0, 0x8d, 0x92, - 0xd3, 0xad, 0xd4, 0x3f, 0x9b, 0x6c, 0x9d, 0x4d, 0xe8, 0x83, 0xf8, 0x7e, 0x85, 0x7e, 0x1e, 0xfc, - 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xaf, 0x80, 0x9a, 0x94, 0x2f, 0x00, 0x00, + proto.RegisterEnum("backup.PrepareSnapshotBackupRequestType", PrepareSnapshotBackupRequestType_name, PrepareSnapshotBackupRequestType_value) + proto.RegisterEnum("backup.PrepareSnapshotBackupEventType", PrepareSnapshotBackupEventType_name, PrepareSnapshotBackupEventType_value) + 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. @@ -5279,9 +3623,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. @@ -5308,7 +3651,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 } @@ -5340,7 +3683,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 } @@ -5372,7 +3715,7 @@ func (x *backupCheckPendingAdminOpClient) Recv() (*CheckAdminResponse, error) { } func (c *backupClient) PrepareSnapshotBackup(ctx context.Context, opts ...grpc.CallOption) (Backup_PrepareSnapshotBackupClient, error) { - stream, err := c.cc.NewStream(ctx, &_Backup_serviceDesc.Streams[2], "/backup.Backup/PrepareSnapshotBackup", opts...) + stream, err := grpc.NewClientStream(ctx, &_Backup_serviceDesc.Streams[2], c.cc, "/backup.Backup/PrepareSnapshotBackup", opts...) if err != nil { return nil, err } @@ -5404,7 +3747,7 @@ func (x *backupPrepareSnapshotBackupClient) Recv() (*PrepareSnapshotBackupRespon 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 } @@ -5413,14 +3756,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. @@ -5438,26 +3782,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) PrepareSnapshotBackup(srv Backup_PrepareSnapshotBackupServer) error { - return status.Errorf(codes.Unimplemented, "method PrepareSnapshotBackup 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) } @@ -5600,9 +3924,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) @@ -5620,7 +3943,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 } @@ -5629,14 +3952,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) @@ -5644,17 +3968,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) } @@ -5715,7 +4028,7 @@ var _ExternalStorage_serviceDesc = grpc.ServiceDesc{ func (m *PrepareSnapshotBackupRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5723,50 +4036,39 @@ func (m *PrepareSnapshotBackupRequest) Marshal() (dAtA []byte, err error) { } func (m *PrepareSnapshotBackupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareSnapshotBackupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.LeaseInSeconds != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.LeaseInSeconds)) - i-- - dAtA[i] = 0x18 + if m.Ty != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Ty)) } 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 = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { 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.Ty != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Ty)) - i-- - dAtA[i] = 0x8 + if m.LeaseInSeconds != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.LeaseInSeconds)) } - return len(dAtA) - i, nil + return i, nil } func (m *PrepareSnapshotBackupResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -5774,65 +4076,52 @@ func (m *PrepareSnapshotBackupResponse) Marshal() (dAtA []byte, err error) { } func (m *PrepareSnapshotBackupResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrepareSnapshotBackupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Ty != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Ty)) } - if m.LastLeaseIsValid { - i-- - if m.LastLeaseIsValid { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Region.Size())) + n1, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n1 } 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] = 0x1a - } - 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++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) + n2, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n2 } - if m.Ty != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Ty)) - i-- - dAtA[i] = 0x8 + if m.LastLeaseIsValid { + dAtA[i] = 0x20 + i++ + if m.LastLeaseIsValid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - return len(dAtA) - i, nil + return i, nil } 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 } @@ -5840,268 +4129,234 @@ 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.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) } - if m.BackupSize != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.BackupSize)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc8 + 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.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)) + 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] = 0xc2 + i += n } } - if m.Mode != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb8 + if m.StartVersion != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) } - 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)) + if m.EndVersion != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + } + 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-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 + i += n } } - if m.IsTxnKv { - i-- - if m.IsTxnKv { + if m.IsRawKv { + dAtA[i] = 0x40 + i++ + if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa8 + i++ } - 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.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.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-- - 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 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.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 len(m.BrVersion) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.BrVersion))) + i += copy(dAtA[i:], m.BrVersion) } - if m.DdlIndexes != nil { - { - size, err := m.DdlIndexes.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 m.Version != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) } - 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.FileIndex != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.FileIndex.Size())) + n3, err := m.FileIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x7a + i += n3 } if m.SchemaIndex != nil { - { - size, err := m.SchemaIndex.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x72 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.SchemaIndex.Size())) + n4, err := m.SchemaIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - 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)) + if m.RawRangeIndex != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RawRangeIndex.Size())) + n5, err := m.RawRangeIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x6a + i += n5 } - if m.Version != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x60 + if m.DdlIndexes != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.DdlIndexes.Size())) + n6, err := m.DdlIndexes.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - 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.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 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.ApiVersion != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) } - 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.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] = 0x4a + i += n } } - if m.IsRawKv { - i-- - if m.IsRawKv { + 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++ + dAtA[i] = 0x1 + i++ + if m.IsTxnKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 + i++ } - 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.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] = 0x3a + i += n } } - 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.Mode != 0 { + dAtA[i] = 0xb8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) } - 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.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 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.BackupSize != 0 { + dAtA[i] = 0xc8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.BackupSize)) } - return len(dAtA) - i, nil + return i, nil } func (m *BackupRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6109,54 +4364,41 @@ func (m *BackupRange) Marshal() (dAtA []byte, err error) { } 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) + var 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 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.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.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 err != nil { + return 0, err + } + i += n + } } - 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 } @@ -6164,98 +4406,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 } @@ -6263,105 +4490,85 @@ 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.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)) + 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-- - dAtA[i] = 0x32 - } - } - 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 + 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)) + 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.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 } - i-- - dAtA[i] = 0xa + i += n } } - 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 } @@ -6369,33 +4576,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 *StatsBlock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6403,38 +4600,28 @@ func (m *StatsBlock) Marshal() (dAtA []byte, err error) { } func (m *StatsBlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatsBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.PhysicalId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.PhysicalId)) } if len(m.JsonTable) > 0 { - i -= len(m.JsonTable) - copy(dAtA[i:], m.JsonTable) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.JsonTable))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.JsonTable))) + i += copy(dAtA[i:], m.JsonTable) } - if m.PhysicalId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.PhysicalId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *StatsFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6442,40 +4629,29 @@ func (m *StatsFile) Marshal() (dAtA []byte, err error) { } func (m *StatsFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatsFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.Blocks) > 0 { - for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Blocks { 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 } } - return len(dAtA) - i, nil + return i, nil } func (m *StatsFileIndex) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6483,64 +4659,51 @@ func (m *StatsFileIndex) Marshal() (dAtA []byte, err error) { } func (m *StatsFileIndex) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatsFileIndex) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.InlineData) > 0 { - i -= len(m.InlineData) - copy(dAtA[i:], m.InlineData) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.InlineData))) - i-- - dAtA[i] = 0x32 + if len(m.Sha256) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) + i += copy(dAtA[i:], m.Sha256) } - 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] = 0x2a + if m.SizeEnc != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.SizeEnc)) } if m.SizeOri != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.SizeOri)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.SizeOri)) } - if m.SizeEnc != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.SizeEnc)) - i-- - dAtA[i] = 0x18 - } - 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.CipherIv) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherIv))) + i += copy(dAtA[i:], m.CipherIv) } - 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.InlineData) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.InlineData))) + i += copy(dAtA[i:], m.InlineData) } - 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 } @@ -6548,81 +4711,67 @@ 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.Db) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Db))) + i += copy(dAtA[i:], m.Db) } - if len(m.StatsIndex) > 0 { - for iNdEx := len(m.StatsIndex) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.StatsIndex[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } + 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.TotalKvs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) } if m.TotalBytes != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) - i-- dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) } - if m.TotalKvs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) - i-- - dAtA[i] = 0x20 - } - 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 + if len(m.StatsIndex) > 0 { + for _, msg := range m.StatsIndex { + dAtA[i] = 0x42 + i++ + i = encodeVarintBrpb(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 *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 } @@ -6630,36 +4779,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 } @@ -6667,59 +4807,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())) + n7, err := m.IdMap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n7 } - 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 } @@ -6727,59 +4853,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.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 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 { - { - size, err := m.IdMap.MarshalToSizedBuffer(dAtA[:i]) + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.IdMap.Size())) + n8, err := m.IdMap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + } + 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 } @@ -6787,47 +4899,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 } @@ -6835,36 +4935,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 } @@ -6872,105 +4963,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 - } + nn9, err := m.Detail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn9 } - 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())) + n10, err := m.ClusterIdError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - 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())) + n11, err := m.KvError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - 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())) + n12, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - return len(dAtA) - i, nil + return i, nil } func (m *StreamBackupTaskSecurityConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -6978,77 +5036,52 @@ func (m *StreamBackupTaskSecurityConfig) Marshal() (dAtA []byte, err error) { } func (m *StreamBackupTaskSecurityConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamBackupTaskSecurityConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Encryption != nil { - { - size := m.Encryption.Size() - i -= size - if _, err := m.Encryption.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } + nn13, err := m.Encryption.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn13 } - return len(dAtA) - i, nil + return i, nil } func (m *StreamBackupTaskSecurityConfig_PlaintextDataKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamBackupTaskSecurityConfig_PlaintextDataKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PlaintextDataKey != nil { - { - size, err := m.PlaintextDataKey.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.PlaintextDataKey.Size())) + n14, err := m.PlaintextDataKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 } - return len(dAtA) - i, nil + return i, nil } func (m *StreamBackupTaskSecurityConfig_MasterKeyConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamBackupTaskSecurityConfig_MasterKeyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.MasterKeyConfig != nil { - { - size, err := m.MasterKeyConfig.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.MasterKeyConfig.Size())) + n15, err := m.MasterKeyConfig.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - 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 } @@ -7056,38 +5089,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 *MasterKeyConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -7095,45 +5118,34 @@ func (m *MasterKeyConfig) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKeyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.EncryptionType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EncryptionType)) } if len(m.MasterKeys) > 0 { - for iNdEx := len(m.MasterKeys) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MasterKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.MasterKeys { 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.EncryptionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EncryptionType)) - 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 } @@ -7141,179 +5153,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 { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.EndVersion != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) } - 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 m.RateLimit != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) } - if m.DstApiVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.DstApiVersion)) - i-- - dAtA[i] = 0x78 + if m.Concurrency != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) } - if m.CipherInfo != nil { - { - size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if m.StorageBackend != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) + n16, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - 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 + i += n16 } if m.IsRawKv { - i-- + dAtA[i] = 0x50 + i++ if m.IsRawKv { 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 len(m.Cf) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.Concurrency != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) - i-- - dAtA[i] = 0x40 + if m.CompressionType != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) } - if m.RateLimit != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) - i-- - dAtA[i] = 0x38 + 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())) + n17, err := m.CipherInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 + } + if m.DstApiVersion != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.DstApiVersion)) } - if m.EndVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) - i-- - dAtA[i] = 0x28 + 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 += n + } } - if m.StartVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x20 + if m.ReplicaRead { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + if m.ReplicaRead { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + 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] = 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())) + n18, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - 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 } @@ -7321,81 +5312,73 @@ 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.SecurityConfig != nil { - { - size, err := m.SecurityConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if m.Storage != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Storage.Size())) + n19, err := m.Storage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n19 } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x30 + if m.StartTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) } - 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.EndTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndTs)) } 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 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.EndTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndTs)) - i-- - dAtA[i] = 0x18 + 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++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } - if m.StartTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 + if m.CompressionType != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) } - if m.Storage != nil { - { - size, err := m.Storage.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if m.SecurityConfig != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.SecurityConfig.Size())) + n20, err := m.SecurityConfig.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n20 } - return len(dAtA) - i, nil + 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 } @@ -7403,182 +5386,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 - } + nn21, err := m.Backend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn21 } - 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())) + n22, err := m.Noop.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - 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())) + n23, err := m.Local.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } - 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())) + n24, err := m.S3.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 } - 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())) + n25, err := m.Gcs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 } - 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())) + n26, err := m.CloudDynamic.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 } - 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())) + n27, err := m.Hdfs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } - 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())) + n28, err := m.AzureBlobStorage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } - 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 } @@ -7586,26 +5509,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 } @@ -7613,33 +5527,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 } @@ -7647,155 +5551,131 @@ 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.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.Region) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Region))) + i += copy(dAtA[i:], m.Region) } - 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.Bucket) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) } - 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.Prefix) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) } - if m.ObjectLockEnabled { - i-- - if m.ObjectLockEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 + 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.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.Sse) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sse))) + i += copy(dAtA[i:], m.Sse) } - 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.Acl) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Acl))) + i += copy(dAtA[i:], m.Acl) } - 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.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.SseKmsKeyId) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SseKmsKeyId))) + i += copy(dAtA[i:], m.SseKmsKeyId) } - 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.RoleArn) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.RoleArn))) + i += copy(dAtA[i:], m.RoleArn) } - 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.ExternalId) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ExternalId))) + i += copy(dAtA[i:], m.ExternalId) } - 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 m.ObjectLockEnabled { + dAtA[i] = 0x70 + i++ + if m.ObjectLockEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - 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.SessionToken) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SessionToken))) + i += copy(dAtA[i:], m.SessionToken) } - 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.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.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.Profile) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Profile))) + i += copy(dAtA[i:], m.Profile) } - 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 } @@ -7803,68 +5683,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 } @@ -7872,40 +5737,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 } @@ -7913,94 +5767,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())) + n29, err := m.EncryptionKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 } - 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 } @@ -8008,61 +5843,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 } @@ -8070,64 +5891,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())) + n30, err := m.Bucket.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n30 } 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 } @@ -8135,33 +5942,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 } @@ -8169,71 +5966,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())) + n31, 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 += n31 } 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 } @@ -8241,33 +6023,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 } @@ -8275,48 +6047,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())) + n32, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n32 } 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 } @@ -8324,36 +6085,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 } @@ -8361,55 +6113,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.Error != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) + n33, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 } - if m.CollectFileSize != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileSize)) - i-- - dAtA[i] = 0x20 + 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.CollectFileCount != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileCount)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileCount)) } - 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 + 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 } @@ -8417,26 +6157,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 } @@ -8444,60 +6175,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())) + n34, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 + } + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Region.Size())) + n35, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n35 } 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 } @@ -8505,57 +6223,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())) + n36, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 } - 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 } @@ -8563,26 +6268,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 } @@ -8590,50 +6286,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())) + n37, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n37 } 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 } @@ -8641,26 +6325,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 } @@ -8668,79 +6343,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 } @@ -8748,67 +6410,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 } @@ -8816,192 +6466,172 @@ 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) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.FileEncryptionInfo != nil { - { - size, err := m.FileEncryptionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba + var i int + _ = 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 len(m.RegionEpoch) > 0 { - for iNdEx := len(m.RegionEpoch) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RegionEpoch[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 len(m.Path) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } - if len(m.RegionEndKey) > 0 { - i -= len(m.RegionEndKey) - copy(dAtA[i:], m.RegionEndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.RegionEndKey))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa + if m.NumberOfEntries != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) } - if len(m.RegionStartKey) > 0 { - i -= len(m.RegionStartKey) - copy(dAtA[i:], m.RegionStartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.RegionStartKey))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 + if m.MinTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) } - if m.Crc64Xor != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x98 + if m.MaxTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.ResolvedTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) } - if m.RangeLength != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.RegionId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) } - if m.RangeOffset != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + 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.MinBeginTsInDefaultCf != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) - i-- - dAtA[i] = 0x78 + 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.Length != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x70 + 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 + i++ } - if m.Type != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x58 + if m.TableId != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) } - 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.Length != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) } - 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 m.MinBeginTsInDefaultCf != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) } - 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.RangeOffset != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) } - if m.RegionId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x38 + if m.RangeLength != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) } - if m.ResolvedTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) - i-- - dAtA[i] = 0x30 + if m.CompressionType != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) } - if m.MaxTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) - i-- - dAtA[i] = 0x28 + if m.Crc64Xor != 0 { + dAtA[i] = 0x98 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) } - if m.MinTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) - i-- - dAtA[i] = 0x20 + if len(m.RegionStartKey) > 0 { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.RegionStartKey))) + i += copy(dAtA[i:], m.RegionStartKey) } - if m.NumberOfEntries != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) - i-- - dAtA[i] = 0x18 + if len(m.RegionEndKey) > 0 { + dAtA[i] = 0xaa + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.RegionEndKey))) + i += copy(dAtA[i:], m.RegionEndKey) } - 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 len(m.RegionEpoch) > 0 { + for _, msg := range m.RegionEpoch { + 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 += n + } } - 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.FileEncryptionInfo != nil { + dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.FileEncryptionInfo.Size())) + n38, err := m.FileEncryptionInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 } - 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 } @@ -9009,50 +6639,39 @@ 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 (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 } @@ -9060,36 +6679,27 @@ 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.Offset != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Offset)) } if m.Length != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) } - if m.Offset != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + return i, nil } func (m *SpansOfFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9097,47 +6707,35 @@ func (m *SpansOfFile) Marshal() (dAtA []byte, err error) { } func (m *SpansOfFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SpansOfFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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 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 = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Spans { 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 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 len(dAtA) - i, nil + return i, nil } func (m *LogFileSubcompactionMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9145,101 +6743,87 @@ func (m *LogFileSubcompactionMeta) Marshal() (dAtA []byte, err error) { } func (m *LogFileSubcompactionMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogFileSubcompactionMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.Sources) > 0 { - for iNdEx := len(m.Sources) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Sources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - } - if m.TableId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) - i-- - dAtA[i] = 0x58 + if m.Size_ != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Size_)) } - if m.Ty != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Ty)) - i-- - dAtA[i] = 0x50 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) } - if len(m.MaxKey) > 0 { - i -= len(m.MaxKey) - copy(dAtA[i:], m.MaxKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.MaxKey))) - i-- - dAtA[i] = 0x4a + 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.MinKey) > 0 { - i -= len(m.MinKey) - copy(dAtA[i:], m.MinKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.MinKey))) - i-- - dAtA[i] = 0x42 + if m.InputMaxTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.InputMaxTs)) } - if m.CompactUntilTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompactUntilTs)) - i-- - dAtA[i] = 0x38 + if m.InputMinTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.InputMinTs)) } if m.CompactFromTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompactFromTs)) - i-- dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompactFromTs)) + } + if m.CompactUntilTs != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompactUntilTs)) } - if m.InputMinTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.InputMinTs)) - i-- - dAtA[i] = 0x28 + if len(m.MinKey) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.MinKey))) + i += copy(dAtA[i:], m.MinKey) } - if m.InputMaxTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.InputMaxTs)) - i-- - dAtA[i] = 0x20 + if len(m.MaxKey) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.MaxKey))) + i += copy(dAtA[i:], m.MaxKey) } - 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 m.Ty != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Ty)) } - if m.RegionId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 + if m.TableId != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) } - if m.Size_ != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Size_)) - i-- - dAtA[i] = 0x8 + if len(m.Sources) > 0 { + for _, msg := range m.Sources { + dAtA[i] = 0x62 + i++ + i = encodeVarintBrpb(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 *LogFileSubcompaction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9247,52 +6831,39 @@ func (m *LogFileSubcompaction) Marshal() (dAtA []byte, err error) { } func (m *LogFileSubcompaction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogFileSubcompaction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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 = encodeVarintBrpb(dAtA, i, uint64(m.Meta.Size())) + n39, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 } if len(m.SstOutputs) > 0 { - for iNdEx := len(m.SstOutputs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SstOutputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.SstOutputs { dAtA[i] = 0x12 - } - } - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + 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 + return i, nil } func (m *LogFileSubcompactions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9300,40 +6871,29 @@ func (m *LogFileSubcompactions) Marshal() (dAtA []byte, err error) { } func (m *LogFileSubcompactions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogFileSubcompactions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.Subcompactions) > 0 { - for iNdEx := len(m.Subcompactions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subcompactions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Subcompactions { 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 } } - return len(dAtA) - i, nil + return i, nil } func (m *LogFileCompaction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9341,69 +6901,56 @@ func (m *LogFileCompaction) Marshal() (dAtA []byte, err error) { } func (m *LogFileCompaction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LogFileCompaction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.GeneratedFiles) > 0 { - i -= len(m.GeneratedFiles) - copy(dAtA[i:], m.GeneratedFiles) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.GeneratedFiles))) - i-- - dAtA[i] = 0x3a + if m.CompactionFromTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompactionFromTs)) } - if m.ArtifactsHash != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ArtifactsHash)) - i-- - dAtA[i] = 0x30 + if m.CompactionUntilTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompactionUntilTs)) } - if len(m.Artifacts) > 0 { - i -= len(m.Artifacts) - copy(dAtA[i:], m.Artifacts) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Artifacts))) - i-- - dAtA[i] = 0x2a + if len(m.Name) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if len(m.Comments) > 0 { - i -= len(m.Comments) - copy(dAtA[i:], m.Comments) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Comments))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Comments))) + i += copy(dAtA[i:], m.Comments) } - 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] = 0x1a + if len(m.Artifacts) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Artifacts))) + i += copy(dAtA[i:], m.Artifacts) } - if m.CompactionUntilTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompactionUntilTs)) - i-- - dAtA[i] = 0x10 + if m.ArtifactsHash != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ArtifactsHash)) } - if m.CompactionFromTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompactionFromTs)) - i-- - dAtA[i] = 0x8 + if len(m.GeneratedFiles) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.GeneratedFiles))) + i += copy(dAtA[i:], m.GeneratedFiles) } - return len(dAtA) - i, nil + return i, nil } func (m *MetaEdit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9411,66 +6958,60 @@ func (m *MetaEdit) Marshal() (dAtA []byte, err error) { } func (m *MetaEdit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetaEdit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.DestructSelf { - i-- - if m.DestructSelf { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.DeletePhysicalFiles) > 0 { + for _, s := range m.DeletePhysicalFiles { + 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) } - i-- - dAtA[i] = 0x20 } if len(m.DeleteLogicalFiles) > 0 { - for iNdEx := len(m.DeleteLogicalFiles) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DeleteLogicalFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.DeleteLogicalFiles { 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.DeletePhysicalFiles) > 0 { - for iNdEx := len(m.DeletePhysicalFiles) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DeletePhysicalFiles[iNdEx]) - copy(dAtA[i:], m.DeletePhysicalFiles[iNdEx]) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.DeletePhysicalFiles[iNdEx]))) - i-- - dAtA[i] = 0x12 + if m.DestructSelf { + dAtA[i] = 0x20 + i++ + if m.DestructSelf { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - 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 len(dAtA) - i, nil + return i, nil } func (m *DeleteSpansOfFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9478,52 +7019,40 @@ func (m *DeleteSpansOfFile) Marshal() (dAtA []byte, err error) { } func (m *DeleteSpansOfFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteSpansOfFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.WholeFileLength != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.WholeFileLength)) - i-- - dAtA[i] = 0x18 + if len(m.Path) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } 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 = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Spans { 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 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.WholeFileLength != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.WholeFileLength)) } - return len(dAtA) - i, nil + return i, nil } func (m *Migration) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -9531,79 +7060,67 @@ func (m *Migration) Marshal() (dAtA []byte, err error) { } func (m *Migration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Migration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.DestructPrefix) > 0 { - for iNdEx := len(m.DestructPrefix) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DestructPrefix[iNdEx]) - copy(dAtA[i:], m.DestructPrefix[iNdEx]) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.DestructPrefix[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Compactions) > 0 { - for iNdEx := len(m.Compactions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Compactions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.EditMeta) > 0 { + for _, msg := range m.EditMeta { + 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] = 0x1a + i += n } } if m.TruncatedTo != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TruncatedTo)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TruncatedTo)) } - if len(m.EditMeta) > 0 { - for iNdEx := len(m.EditMeta) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EditMeta[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + if len(m.Compactions) > 0 { + for _, msg := range m.Compactions { + dAtA[i] = 0x1a + 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 + } + } + if len(m.DestructPrefix) > 0 { + for _, s := range m.DestructPrefix { + 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) } } - 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 *PrepareSnapshotBackupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Ty != 0 { @@ -9618,16 +7135,10 @@ func (m *PrepareSnapshotBackupRequest) Size() (n int) { if m.LeaseInSeconds != 0 { n += 1 + sovBrpb(uint64(m.LeaseInSeconds)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *PrepareSnapshotBackupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Ty != 0 { @@ -9644,16 +7155,10 @@ func (m *PrepareSnapshotBackupResponse) Size() (n int) { if m.LastLeaseIsValid { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BackupMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -9755,16 +7260,10 @@ func (m *BackupMeta) Size() (n int) { if m.BackupSize != 0 { n += 2 + sovBrpb(uint64(m.BackupSize)) } - 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) @@ -9781,16 +7280,10 @@ 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) @@ -9835,16 +7328,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 { @@ -9883,32 +7370,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 *StatsBlock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PhysicalId != 0 { @@ -9918,16 +7393,10 @@ func (m *StatsBlock) 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 *StatsFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Blocks) > 0 { @@ -9936,16 +7405,10 @@ func (m *StatsFile) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StatsFileIndex) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -9970,16 +7433,10 @@ func (m *StatsFileIndex) 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 *Schema) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Db) @@ -10012,16 +7469,10 @@ func (m *Schema) Size() (n int) { 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 { @@ -10030,16 +7481,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) @@ -10056,16 +7501,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) @@ -10082,16 +7521,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) @@ -10106,16 +7539,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 { @@ -10124,16 +7551,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) @@ -10143,16 +7564,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 { @@ -10162,9 +7577,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 { @@ -10174,9 +7586,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 { @@ -10186,24 +7595,15 @@ func (m *Error_RegionError) Size() (n int) { return n } func (m *StreamBackupTaskSecurityConfig) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Encryption != nil { n += m.Encryption.Size() } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *StreamBackupTaskSecurityConfig_PlaintextDataKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PlaintextDataKey != nil { @@ -10213,9 +7613,6 @@ func (m *StreamBackupTaskSecurityConfig_PlaintextDataKey) Size() (n int) { return n } func (m *StreamBackupTaskSecurityConfig_MasterKeyConfig) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MasterKeyConfig != nil { @@ -10225,9 +7622,6 @@ func (m *StreamBackupTaskSecurityConfig_MasterKeyConfig) Size() (n int) { return n } func (m *CipherInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CipherType != 0 { @@ -10237,16 +7631,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 *MasterKeyConfig) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.EncryptionType != 0 { @@ -10258,16 +7646,10 @@ func (m *MasterKeyConfig) Size() (n int) { 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 { @@ -10337,16 +7719,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 { @@ -10376,31 +7752,19 @@ func (m *StreamBackupTaskInfo) Size() (n int) { l = m.SecurityConfig.Size() n += 1 + l + sovBrpb(uint64(l)) } - 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 { @@ -10410,9 +7774,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 { @@ -10422,9 +7783,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 { @@ -10434,9 +7792,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 { @@ -10446,9 +7801,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 { @@ -10458,9 +7810,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 { @@ -10470,9 +7819,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 { @@ -10482,37 +7828,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) @@ -10581,16 +7912,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) @@ -10617,16 +7942,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) @@ -10637,16 +7956,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) @@ -10685,16 +7998,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) @@ -10717,16 +8024,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 { @@ -10745,32 +8046,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 { @@ -10794,32 +8083,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 { @@ -10829,31 +8106,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 { @@ -10870,28 +8135,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 { @@ -10905,16 +8158,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 { @@ -10932,28 +8179,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 { @@ -10967,28 +8202,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 { @@ -11018,16 +8241,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) @@ -11052,16 +8269,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) @@ -11144,16 +8355,10 @@ func (m *DataFileInfo) Size() (n int) { l = m.FileEncryptionInfo.Size() n += 2 + l + sovBrpb(uint64(l)) } - 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 { @@ -11170,16 +8375,10 @@ 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 (m *Span) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Offset != 0 { @@ -11188,16 +8387,10 @@ func (m *Span) 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 *SpansOfFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) @@ -11210,16 +8403,10 @@ func (m *SpansOfFile) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LogFileSubcompactionMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Size_ != 0 { @@ -11264,16 +8451,10 @@ func (m *LogFileSubcompactionMeta) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LogFileSubcompaction) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -11286,16 +8467,10 @@ func (m *LogFileSubcompaction) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LogFileSubcompactions) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Subcompactions) > 0 { @@ -11304,16 +8479,10 @@ func (m *LogFileSubcompactions) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *LogFileCompaction) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CompactionFromTs != 0 { @@ -11341,16 +8510,10 @@ func (m *LogFileCompaction) 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 *MetaEdit) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) @@ -11372,16 +8535,10 @@ func (m *MetaEdit) Size() (n int) { if m.DestructSelf { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *DeleteSpansOfFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) @@ -11397,16 +8554,10 @@ func (m *DeleteSpansOfFile) Size() (n int) { if m.WholeFileLength != 0 { n += 1 + sovBrpb(uint64(m.WholeFileLength)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *Migration) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.EditMeta) > 0 { @@ -11430,14 +8581,18 @@ func (m *Migration) Size() (n int) { n += 1 + l + sovBrpb(uint64(l)) } } - 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)))) @@ -11457,7 +8612,7 @@ func (m *PrepareSnapshotBackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11485,7 +8640,7 @@ func (m *PrepareSnapshotBackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ty |= PrepareSnapshotBackupRequestType(b&0x7F) << shift + m.Ty |= (PrepareSnapshotBackupRequestType(b) & 0x7F) << shift if b < 0x80 { break } @@ -11504,7 +8659,7 @@ func (m *PrepareSnapshotBackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11513,9 +8668,6 @@ func (m *PrepareSnapshotBackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11538,7 +8690,7 @@ func (m *PrepareSnapshotBackupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LeaseInSeconds |= uint64(b&0x7F) << shift + m.LeaseInSeconds |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11549,13 +8701,12 @@ func (m *PrepareSnapshotBackupRequest) 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 } } @@ -11580,7 +8731,7 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -11608,7 +8759,7 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ty |= PrepareSnapshotBackupEventType(b&0x7F) << shift + m.Ty |= (PrepareSnapshotBackupEventType(b) & 0x7F) << shift if b < 0x80 { break } @@ -11627,7 +8778,7 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11636,9 +8787,6 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11663,7 +8811,7 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11672,9 +8820,6 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11699,7 +8844,7 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -11711,13 +8856,12 @@ func (m *PrepareSnapshotBackupResponse) 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 } } @@ -11742,7 +8886,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 } @@ -11770,7 +8914,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 } @@ -11789,7 +8933,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 } @@ -11799,9 +8943,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11821,7 +8962,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 } @@ -11830,9 +8971,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11855,7 +8993,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 } @@ -11874,7 +9012,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 } @@ -11893,7 +9031,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 } @@ -11902,9 +9040,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11927,7 +9062,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 } @@ -11947,7 +9082,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 } @@ -11956,9 +9091,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11981,7 +9113,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 } @@ -11990,9 +9122,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12015,7 +9144,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 } @@ -12025,9 +9154,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12047,7 +9173,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 } @@ -12066,7 +9192,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 } @@ -12075,9 +9201,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12102,7 +9225,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 } @@ -12111,9 +9234,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12138,7 +9258,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 } @@ -12147,9 +9267,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12174,7 +9291,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 } @@ -12183,9 +9300,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12210,7 +9324,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 } @@ -12220,9 +9334,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12242,7 +9353,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 } @@ -12261,7 +9372,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 } @@ -12270,9 +9381,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12295,7 +9403,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 } @@ -12305,9 +9413,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12327,7 +9432,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 } @@ -12347,7 +9452,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 } @@ -12356,9 +9461,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12381,7 +9483,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 } @@ -12400,7 +9502,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 } @@ -12409,9 +9511,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12434,7 +9533,7 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BackupSize |= uint64(b&0x7F) << shift + m.BackupSize |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -12445,13 +9544,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 } } @@ -12476,7 +9574,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 } @@ -12504,7 +9602,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 } @@ -12513,9 +9611,6 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12538,7 +9633,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 } @@ -12547,9 +9642,6 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12572,7 +9664,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 } @@ -12581,9 +9673,6 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12598,13 +9687,12 @@ func (m *BackupRange) 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 } } @@ -12629,7 +9717,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 } @@ -12657,7 +9745,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 } @@ -12667,9 +9755,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12689,7 +9774,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 } @@ -12698,9 +9783,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12723,7 +9805,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 } @@ -12732,9 +9814,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12757,7 +9836,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 } @@ -12766,9 +9845,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12791,7 +9867,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 } @@ -12810,7 +9886,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 } @@ -12829,7 +9905,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 } @@ -12848,7 +9924,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 } @@ -12867,7 +9943,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 } @@ -12886,7 +9962,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 } @@ -12896,9 +9972,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12918,7 +9991,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 } @@ -12937,7 +10010,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 } @@ -12946,9 +10019,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12963,13 +10033,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 } } @@ -12994,7 +10063,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 } @@ -13022,7 +10091,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 } @@ -13031,9 +10100,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13056,7 +10122,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 } @@ -13065,9 +10131,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13090,7 +10153,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 } @@ -13099,9 +10162,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13124,7 +10184,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 } @@ -13133,9 +10193,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13158,7 +10215,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 } @@ -13167,9 +10224,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13190,7 +10244,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 } @@ -13199,9 +10253,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13216,13 +10267,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 } } @@ -13247,7 +10297,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 } @@ -13275,7 +10325,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 } @@ -13284,9 +10334,6 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13301,13 +10348,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 } } @@ -13332,7 +10378,7 @@ func (m *StatsBlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13360,7 +10406,7 @@ func (m *StatsBlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PhysicalId |= int64(b&0x7F) << shift + m.PhysicalId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13379,7 +10425,7 @@ func (m *StatsBlock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13388,9 +10434,6 @@ func (m *StatsBlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13405,13 +10448,12 @@ func (m *StatsBlock) 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 } } @@ -13436,7 +10478,7 @@ func (m *StatsFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13464,7 +10506,7 @@ func (m *StatsFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13473,9 +10515,6 @@ func (m *StatsFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13490,13 +10529,12 @@ func (m *StatsFile) 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 } } @@ -13521,7 +10559,7 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13549,7 +10587,7 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13559,9 +10597,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13581,7 +10616,7 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13590,9 +10625,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13615,7 +10647,7 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SizeEnc |= uint64(b&0x7F) << shift + m.SizeEnc |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13634,7 +10666,7 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SizeOri |= uint64(b&0x7F) << shift + m.SizeOri |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -13653,7 +10685,7 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13662,9 +10694,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13687,7 +10716,7 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13696,9 +10725,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13713,13 +10739,12 @@ func (m *StatsFileIndex) 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 } } @@ -13744,7 +10769,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 } @@ -13772,7 +10797,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 } @@ -13781,9 +10806,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13806,7 +10828,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 } @@ -13815,9 +10837,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13840,7 +10859,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 } @@ -13859,7 +10878,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 } @@ -13878,7 +10897,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 } @@ -13897,7 +10916,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 } @@ -13916,7 +10935,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 } @@ -13925,9 +10944,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13950,7 +10966,7 @@ func (m *Schema) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -13959,9 +10975,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13976,13 +10989,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 } } @@ -14007,7 +11019,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 } @@ -14035,7 +11047,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 } @@ -14054,7 +11066,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 } @@ -14065,13 +11077,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 } } @@ -14096,7 +11107,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 } @@ -14124,7 +11135,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 } @@ -14134,9 +11145,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14156,7 +11164,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 } @@ -14165,9 +11173,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14192,7 +11197,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 } @@ -14201,9 +11206,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14218,13 +11220,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 } } @@ -14249,7 +11250,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 } @@ -14277,7 +11278,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 } @@ -14287,9 +11288,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14309,7 +11307,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 } @@ -14318,9 +11316,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14345,7 +11340,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 } @@ -14354,9 +11349,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14371,13 +11363,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 } } @@ -14402,7 +11393,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 } @@ -14430,7 +11421,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 } @@ -14439,9 +11430,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14464,7 +11452,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 } @@ -14473,9 +11461,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14498,7 +11483,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 } @@ -14508,9 +11493,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14522,13 +11504,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 } } @@ -14553,7 +11534,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 } @@ -14581,7 +11562,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 } @@ -14600,7 +11581,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 } @@ -14611,13 +11592,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 } } @@ -14642,7 +11622,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 } @@ -14670,7 +11650,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 } @@ -14680,9 +11660,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14702,7 +11679,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 } @@ -14711,9 +11688,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14737,7 +11711,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 } @@ -14746,9 +11720,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14772,7 +11743,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 } @@ -14781,9 +11752,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14799,13 +11767,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 } } @@ -14830,7 +11797,7 @@ func (m *StreamBackupTaskSecurityConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -14858,7 +11825,7 @@ func (m *StreamBackupTaskSecurityConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14867,9 +11834,6 @@ func (m *StreamBackupTaskSecurityConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14893,7 +11857,7 @@ func (m *StreamBackupTaskSecurityConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -14902,9 +11866,6 @@ func (m *StreamBackupTaskSecurityConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14920,13 +11881,12 @@ func (m *StreamBackupTaskSecurityConfig) 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 } } @@ -14951,7 +11911,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 } @@ -14979,7 +11939,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 } @@ -14998,7 +11958,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 } @@ -15007,9 +11967,6 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15024,13 +11981,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 } } @@ -15055,7 +12011,7 @@ func (m *MasterKeyConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -15083,7 +12039,7 @@ func (m *MasterKeyConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EncryptionType |= encryptionpb.EncryptionMethod(b&0x7F) << shift + m.EncryptionType |= (encryptionpb.EncryptionMethod(b) & 0x7F) << shift if b < 0x80 { break } @@ -15102,7 +12058,7 @@ func (m *MasterKeyConfig) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -15111,9 +12067,6 @@ func (m *MasterKeyConfig) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15128,13 +12081,12 @@ func (m *MasterKeyConfig) 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 } } @@ -15159,7 +12111,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 } @@ -15187,7 +12139,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 } @@ -15206,7 +12158,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 } @@ -15215,9 +12167,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15240,7 +12189,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 } @@ -15249,9 +12198,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15274,7 +12220,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 } @@ -15293,7 +12239,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 } @@ -15312,7 +12258,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 } @@ -15331,7 +12277,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 } @@ -15350,7 +12296,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 } @@ -15359,9 +12305,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15386,7 +12329,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 } @@ -15406,7 +12349,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 } @@ -15416,9 +12359,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15438,7 +12378,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 } @@ -15457,7 +12397,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 } @@ -15476,7 +12416,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 } @@ -15485,9 +12425,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15512,7 +12449,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 } @@ -15531,7 +12468,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 } @@ -15540,9 +12477,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15565,7 +12499,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 } @@ -15585,7 +12519,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 } @@ -15604,7 +12538,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 } @@ -15614,9 +12548,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15636,7 +12567,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 } @@ -15645,9 +12576,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15664,13 +12592,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 } } @@ -15695,7 +12622,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 } @@ -15723,7 +12650,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 } @@ -15732,9 +12659,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15759,7 +12683,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 } @@ -15778,7 +12702,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 } @@ -15797,7 +12721,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 } @@ -15807,9 +12731,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15829,7 +12750,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 } @@ -15839,9 +12760,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15861,7 +12779,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 } @@ -15880,7 +12798,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 } @@ -15889,9 +12807,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15908,13 +12823,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 } } @@ -15939,7 +12853,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 } @@ -15967,7 +12881,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 } @@ -15976,9 +12890,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16002,7 +12913,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 } @@ -16011,9 +12922,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16037,7 +12945,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 } @@ -16046,9 +12954,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16072,7 +12977,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 } @@ -16081,9 +12986,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16107,7 +13009,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 } @@ -16116,9 +13018,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16142,7 +13041,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 } @@ -16151,9 +13050,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16177,7 +13073,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 } @@ -16186,9 +13082,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16204,13 +13097,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 } } @@ -16235,7 +13127,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 } @@ -16255,13 +13147,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 } } @@ -16286,7 +13177,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 } @@ -16314,7 +13205,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 } @@ -16324,9 +13215,6 @@ func (m *Local) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16338,13 +13226,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 } } @@ -16369,7 +13256,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 } @@ -16397,7 +13284,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 } @@ -16407,9 +13294,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16429,7 +13313,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 } @@ -16439,9 +13323,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16461,7 +13342,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 } @@ -16471,9 +13352,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16493,7 +13371,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 } @@ -16503,9 +13381,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16525,7 +13400,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 } @@ -16535,9 +13410,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16557,7 +13429,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 } @@ -16567,9 +13439,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16589,7 +13458,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 } @@ -16599,9 +13468,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16621,7 +13487,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 } @@ -16631,9 +13497,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16653,7 +13516,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 } @@ -16663,9 +13526,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16685,7 +13545,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 } @@ -16705,7 +13565,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 } @@ -16715,9 +13575,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16737,7 +13594,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 } @@ -16747,9 +13604,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16769,7 +13623,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 } @@ -16779,9 +13633,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16801,7 +13652,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 } @@ -16821,7 +13672,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 } @@ -16831,9 +13682,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16853,7 +13701,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 } @@ -16863,9 +13711,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16885,7 +13730,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 } @@ -16895,9 +13740,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16909,13 +13751,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 } } @@ -16940,7 +13781,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 } @@ -16968,7 +13809,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 } @@ -16978,9 +13819,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17000,7 +13838,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 } @@ -17010,9 +13848,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17032,7 +13867,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 } @@ -17042,9 +13877,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17064,7 +13896,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 } @@ -17074,9 +13906,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17096,7 +13925,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 } @@ -17106,9 +13935,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17128,7 +13954,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 } @@ -17138,9 +13964,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17152,13 +13975,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 } } @@ -17183,7 +14005,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 } @@ -17211,7 +14033,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 } @@ -17221,9 +14043,6 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17243,7 +14062,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 } @@ -17253,9 +14072,6 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17267,13 +14083,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 } } @@ -17298,7 +14113,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 } @@ -17326,7 +14141,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 } @@ -17336,9 +14151,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17358,7 +14170,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 } @@ -17368,9 +14180,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17390,7 +14199,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 } @@ -17400,9 +14209,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17422,7 +14228,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 } @@ -17432,9 +14238,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17454,7 +14257,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 } @@ -17464,9 +14267,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17486,7 +14286,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 } @@ -17496,9 +14296,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17518,7 +14315,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 } @@ -17528,9 +14325,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17550,7 +14344,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 } @@ -17560,9 +14354,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17582,7 +14373,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 } @@ -17591,9 +14382,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17610,13 +14398,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 } } @@ -17641,7 +14428,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 } @@ -17669,7 +14456,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 } @@ -17679,9 +14466,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17701,7 +14485,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 } @@ -17711,9 +14495,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17733,7 +14514,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 } @@ -17743,9 +14524,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17765,7 +14543,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 } @@ -17775,9 +14553,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17797,7 +14572,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 } @@ -17807,9 +14582,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17821,13 +14593,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 } } @@ -17852,7 +14623,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 } @@ -17880,7 +14651,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 } @@ -17889,9 +14660,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17916,7 +14684,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 } @@ -17926,9 +14694,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17948,7 +14713,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 } @@ -17957,9 +14722,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17980,7 +14742,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 } @@ -17997,7 +14759,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 } @@ -18007,9 +14769,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthBrpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -18026,7 +14785,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 } @@ -18036,9 +14795,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthBrpb - } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -18050,7 +14806,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 { @@ -18067,13 +14823,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 } } @@ -18098,7 +14853,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 } @@ -18126,7 +14881,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 } @@ -18136,9 +14891,6 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18150,13 +14902,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 } } @@ -18181,7 +14932,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 } @@ -18209,7 +14960,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 } @@ -18218,9 +14969,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18245,7 +14993,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 } @@ -18254,9 +15002,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18279,7 +15024,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 } @@ -18288,9 +15033,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18313,7 +15055,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 } @@ -18322,9 +15064,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18347,7 +15086,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 } @@ -18358,13 +15097,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 } } @@ -18389,7 +15127,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 } @@ -18417,7 +15155,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 } @@ -18427,9 +15165,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18441,13 +15176,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 } } @@ -18472,7 +15206,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 } @@ -18500,7 +15234,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 } @@ -18509,9 +15243,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18536,7 +15267,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 } @@ -18548,13 +15279,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 } } @@ -18579,7 +15309,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 } @@ -18607,7 +15337,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 } @@ -18619,13 +15349,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 } } @@ -18650,7 +15379,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 } @@ -18678,7 +15407,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 } @@ -18687,9 +15416,6 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18714,7 +15440,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 } @@ -18724,9 +15450,6 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18746,7 +15469,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 } @@ -18765,7 +15488,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 } @@ -18776,13 +15499,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 } } @@ -18807,7 +15529,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 } @@ -18827,13 +15549,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 } } @@ -18858,7 +15579,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 } @@ -18886,7 +15607,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 } @@ -18895,9 +15616,6 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18922,7 +15640,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 } @@ -18931,9 +15649,6 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18958,7 +15673,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 } @@ -18970,13 +15685,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 } } @@ -19001,7 +15715,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 } @@ -19029,7 +15743,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 } @@ -19038,9 +15752,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19065,7 +15776,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 } @@ -19075,9 +15786,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19097,7 +15805,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 } @@ -19107,9 +15815,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19129,7 +15834,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 } @@ -19140,13 +15845,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 } } @@ -19171,7 +15875,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 } @@ -19191,13 +15895,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 } } @@ -19222,7 +15925,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 } @@ -19250,7 +15953,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 } @@ -19259,9 +15962,6 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19286,7 +15986,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 } @@ -19296,9 +15996,6 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19318,7 +16015,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 } @@ -19329,13 +16026,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 } } @@ -19360,7 +16056,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 } @@ -19380,13 +16076,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 } } @@ -19411,7 +16106,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 } @@ -19439,7 +16134,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 } @@ -19448,9 +16143,6 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19473,7 +16165,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 } @@ -19492,7 +16184,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 } @@ -19511,7 +16203,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 } @@ -19530,7 +16222,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 } @@ -19549,7 +16241,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 } @@ -19558,9 +16250,6 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19583,7 +16272,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 } @@ -19594,13 +16283,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 } } @@ -19625,7 +16313,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 } @@ -19653,7 +16341,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 } @@ -19663,9 +16351,6 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19685,7 +16370,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 } @@ -19694,9 +16379,6 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19719,7 +16401,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 } @@ -19738,7 +16420,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 } @@ -19757,7 +16439,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 } @@ -19776,7 +16458,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 } @@ -19787,13 +16469,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 } } @@ -19818,7 +16499,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 } @@ -19846,7 +16527,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 } @@ -19855,9 +16536,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19880,7 +16558,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 } @@ -19890,9 +16568,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -19912,7 +16587,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 } @@ -19931,7 +16606,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 } @@ -19950,7 +16625,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 } @@ -19969,7 +16644,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 } @@ -19988,7 +16663,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 } @@ -20007,7 +16682,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 } @@ -20016,9 +16691,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20041,7 +16713,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 } @@ -20050,9 +16722,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20075,7 +16744,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 } @@ -20085,9 +16754,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20107,7 +16773,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 } @@ -20126,7 +16792,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 } @@ -20146,7 +16812,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 } @@ -20165,7 +16831,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 } @@ -20184,7 +16850,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 } @@ -20203,7 +16869,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 } @@ -20222,7 +16888,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 } @@ -20241,7 +16907,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 } @@ -20260,7 +16926,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Crc64Xor |= uint64(b&0x7F) << shift + m.Crc64Xor |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20279,7 +16945,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 } @@ -20288,9 +16954,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20313,7 +16976,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 } @@ -20322,9 +16985,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20347,7 +17007,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20356,9 +17016,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20381,7 +17038,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20390,9 +17047,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20409,13 +17063,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 } } @@ -20440,7 +17093,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 } @@ -20468,7 +17121,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 } @@ -20487,7 +17140,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 } @@ -20497,9 +17150,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20519,7 +17169,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 } @@ -20529,9 +17179,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20551,7 +17198,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 } @@ -20562,13 +17209,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 } } @@ -20593,7 +17239,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 } @@ -20621,7 +17267,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Offset |= uint64(b&0x7F) << shift + m.Offset |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20640,7 +17286,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Length |= uint64(b&0x7F) << shift + m.Length |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20651,13 +17297,12 @@ func (m *Span) 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 } } @@ -20682,7 +17327,7 @@ func (m *SpansOfFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20710,7 +17355,7 @@ func (m *SpansOfFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20720,9 +17365,6 @@ func (m *SpansOfFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20742,7 +17384,7 @@ func (m *SpansOfFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20751,9 +17393,6 @@ func (m *SpansOfFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20768,13 +17407,12 @@ func (m *SpansOfFile) 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 } } @@ -20799,7 +17437,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20827,7 +17465,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Size_ |= uint64(b&0x7F) << shift + m.Size_ |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20846,7 +17484,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20865,7 +17503,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20875,9 +17513,6 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20897,7 +17532,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.InputMaxTs |= uint64(b&0x7F) << shift + m.InputMaxTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20916,7 +17551,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.InputMinTs |= uint64(b&0x7F) << shift + m.InputMinTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20935,7 +17570,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactFromTs |= uint64(b&0x7F) << shift + m.CompactFromTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20954,7 +17589,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactUntilTs |= uint64(b&0x7F) << shift + m.CompactUntilTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -20973,7 +17608,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -20982,9 +17617,6 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21007,7 +17639,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21016,9 +17648,6 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21041,7 +17670,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ty |= FileType(b&0x7F) << shift + m.Ty |= (FileType(b) & 0x7F) << shift if b < 0x80 { break } @@ -21060,7 +17689,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TableId |= int64(b&0x7F) << shift + m.TableId |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21079,7 +17708,7 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21088,9 +17717,6 @@ func (m *LogFileSubcompactionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21105,13 +17731,12 @@ func (m *LogFileSubcompactionMeta) 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 } } @@ -21136,7 +17761,7 @@ func (m *LogFileSubcompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21164,7 +17789,7 @@ func (m *LogFileSubcompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21173,9 +17798,6 @@ func (m *LogFileSubcompaction) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21200,7 +17822,7 @@ func (m *LogFileSubcompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21209,9 +17831,6 @@ func (m *LogFileSubcompaction) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21226,13 +17845,12 @@ func (m *LogFileSubcompaction) 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 } } @@ -21257,7 +17875,7 @@ func (m *LogFileSubcompactions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21285,7 +17903,7 @@ func (m *LogFileSubcompactions) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21294,9 +17912,6 @@ func (m *LogFileSubcompactions) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21311,13 +17926,12 @@ func (m *LogFileSubcompactions) 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 } } @@ -21342,7 +17956,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21370,7 +17984,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactionFromTs |= uint64(b&0x7F) << shift + m.CompactionFromTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21389,7 +18003,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactionUntilTs |= uint64(b&0x7F) << shift + m.CompactionUntilTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21408,7 +18022,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21418,9 +18032,6 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21440,7 +18051,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21450,9 +18061,6 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21472,7 +18080,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21482,9 +18090,6 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21504,7 +18109,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ArtifactsHash |= uint64(b&0x7F) << shift + m.ArtifactsHash |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21523,7 +18128,7 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21533,9 +18138,6 @@ func (m *LogFileCompaction) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21547,13 +18149,12 @@ func (m *LogFileCompaction) 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 } } @@ -21578,7 +18179,7 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21606,7 +18207,7 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21616,9 +18217,6 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21638,7 +18236,7 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21648,9 +18246,6 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21670,7 +18265,7 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21679,9 +18274,6 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21704,7 +18296,7 @@ func (m *MetaEdit) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21716,13 +18308,12 @@ func (m *MetaEdit) 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 } } @@ -21747,7 +18338,7 @@ func (m *DeleteSpansOfFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21775,7 +18366,7 @@ func (m *DeleteSpansOfFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21785,9 +18376,6 @@ func (m *DeleteSpansOfFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21807,7 +18395,7 @@ func (m *DeleteSpansOfFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21816,9 +18404,6 @@ func (m *DeleteSpansOfFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21841,7 +18426,7 @@ func (m *DeleteSpansOfFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WholeFileLength |= uint64(b&0x7F) << shift + m.WholeFileLength |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21852,13 +18437,12 @@ func (m *DeleteSpansOfFile) 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 } } @@ -21883,7 +18467,7 @@ func (m *Migration) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21911,7 +18495,7 @@ func (m *Migration) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21920,9 +18504,6 @@ func (m *Migration) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21945,7 +18526,7 @@ func (m *Migration) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TruncatedTo |= uint64(b&0x7F) << shift + m.TruncatedTo |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -21964,7 +18545,7 @@ func (m *Migration) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21973,9 +18554,6 @@ func (m *Migration) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21998,7 +18576,7 @@ func (m *Migration) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -22008,9 +18586,6 @@ func (m *Migration) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22022,13 +18597,12 @@ func (m *Migration) 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 } } @@ -22041,7 +18615,6 @@ func (m *Migration) 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 { @@ -22073,8 +18646,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 { @@ -22091,34 +18666,339 @@ 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{ + // 4476 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x7a, 0x5b, 0x6f, 0x1c, 0x47, + 0x76, 0x3f, 0x7b, 0xee, 0x73, 0xe6, 0xca, 0x22, 0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x9e, 0x90, 0xfc, 0x25, 0xb1, 0x7f, 0x9e, 0x52, + 0xd0, 0xa0, 0x91, 0x09, 0xda, 0x41, 0x84, 0xb5, 0xa1, 0xe0, 0x0e, 0x28, 0x42, 0xd4, 0xad, 0x82, + 0x3b, 0x40, 0x89, 0x90, 0xa6, 0x1a, 0xc4, 0x49, 0xff, 0x71, 0x06, 0xd7, 0x8f, 0x87, 0x18, 0x6f, + 0x27, 0x14, 0x16, 0x9a, 0x56, 0x4d, 0x02, 0x87, 0x13, 0xf3, 0x9b, 0x02, 0xd4, 0xb4, 0x77, 0xb1, + 0x0f, 0x01, 0xf0, 0x5c, 0xb0, 0xa5, 0x06, 0x8c, 0x05, 0x1a, 0xa8, 0x8f, 0x14, 0xaf, 0x40, 0x66, + 0xcf, 0xc9, 0x98, 0x0b, 0x8b, 0x98, 0x91, 0x2e, 0x99, 0x73, 0x21, 0xb4, 0x78, 0x75, 0x08, 0x9d, + 0x0d, 0x93, 0xa5, 0xd7, 0x0f, 0x93, 0xe5, 0xf5, 0x62, 0x16, 0x26, 0x1f, 0x4e, 0x43, 0x83, 0x1c, + 0xa7, 0x72, 0xb9, 0xad, 0xeb, 0x78, 0x41, 0x8c, 0xe6, 0x07, 0xd0, 0x99, 0xf3, 0x70, 0x9c, 0xc0, + 0x0f, 0x07, 0x91, 0xb2, 0x61, 0xfa, 0x6f, 0x3e, 0x01, 0x38, 0x4e, 0x9d, 0x54, 0xec, 0x04, 0x91, + 0x7b, 0x86, 0x6a, 0x8a, 0x87, 0xe7, 0xc2, 0x77, 0x9d, 0x40, 0x9f, 0x69, 0x45, 0x0b, 0x34, 0x74, + 0xe8, 0x61, 0xd8, 0xfe, 0x85, 0x88, 0x42, 0x3b, 0x45, 0x9f, 0x57, 0x86, 0x59, 0x47, 0xe4, 0x04, + 0x01, 0xf3, 0xa7, 0x50, 0xa7, 0xd1, 0x48, 0x09, 0x9b, 0x50, 0xe9, 0xe3, 0xa8, 0x5a, 0x01, 0x99, + 0x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xf2, 0x23, 0x17, 0x6f, 0x54, 0x22, 0x26, + 0xc6, 0x7d, 0x95, 0x88, 0xbd, 0x8b, 0xf1, 0x86, 0xce, 0x4b, 0x3b, 0xe1, 0x8e, 0x47, 0xe5, 0x58, + 0x0d, 0xa3, 0x0b, 0x61, 0x16, 0x77, 0xbc, 0xac, 0x48, 0x61, 0xaf, 0x28, 0x52, 0xde, 0x86, 0xfa, + 0x38, 0xf4, 0x7f, 0x39, 0xe6, 0x68, 0xa7, 0x2b, 0x24, 0xf6, 0x9a, 0x04, 0x0e, 0x3d, 0xac, 0x8a, + 0xdc, 0x88, 0x62, 0x08, 0x15, 0x56, 0x98, 0x1e, 0xea, 0x65, 0xed, 0x4a, 0xdc, 0xd2, 0x0c, 0x9f, + 0x97, 0x6a, 0x95, 0x6e, 0x55, 0xd5, 0x27, 0xff, 0x55, 0x80, 0xd5, 0xf9, 0x80, 0x46, 0x72, 0xfa, + 0x08, 0xaa, 0xca, 0x16, 0x54, 0xec, 0xba, 0xcc, 0x64, 0x34, 0x1b, 0x65, 0x47, 0x64, 0xf3, 0xa9, + 0xd0, 0xa7, 0x00, 0xb5, 0x4f, 0x04, 0xbb, 0x06, 0xe8, 0x18, 0x48, 0x90, 0xc9, 0x4a, 0x99, 0x87, + 0xde, 0x89, 0xc8, 0x0e, 0xc7, 0x52, 0xee, 0x70, 0x7c, 0x17, 0x9a, 0x74, 0xa4, 0x61, 0x0a, 0x9d, + 0xf2, 0x84, 0x32, 0xd8, 0xba, 0xd5, 0x20, 0xec, 0x11, 0x41, 0x0b, 0x0d, 0xad, 0xf2, 0x86, 0x86, + 0xf6, 0x1c, 0x3a, 0x42, 0xc5, 0x6d, 0x1d, 0x5f, 0xab, 0xb4, 0xcd, 0x3b, 0xd3, 0x6d, 0x5e, 0x15, + 0xe6, 0xad, 0xb6, 0x98, 0x6b, 0xd3, 0xed, 0xcf, 0x38, 0xf6, 0xd0, 0x61, 0x53, 0xa1, 0xab, 0x45, + 0xab, 0x82,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b, 0xb6, 0xda, + 0xdf, 0x81, 0x92, 0x70, 0x26, 0x9c, 0x99, 0x97, 0xf4, 0xc8, 0x95, 0xf1, 0x6b, 0xef, 0x5d, 0xc9, + 0xa3, 0x87, 0xdc, 0xb9, 0xf3, 0x6f, 0x7f, 0x5e, 0x33, 0x7e, 0xf5, 0xdd, 0x2d, 0xe3, 0xd7, 0xdf, + 0xdd, 0x32, 0xfe, 0xfd, 0xbb, 0x5b, 0xc6, 0x9f, 0xfe, 0xc7, 0xad, 0x25, 0xe8, 0x46, 0xc9, 0xe9, + 0x56, 0xea, 0x9f, 0x4d, 0xb6, 0xce, 0x26, 0xf4, 0x41, 0x7c, 0xbf, 0x42, 0x3f, 0xf7, 0xff, 0x27, + 0x00, 0x00, 0xff, 0xff, 0x30, 0xd9, 0x2b, 0x24, 0x94, 0x2f, 0x00, 0x00, +} diff --git a/pkg/cdcpb/cdcpb.pb.go b/pkg/cdcpb/cdcpb.pb.go index 749c9d61c..d6599b338 100644 --- a/pkg/cdcpb/cdcpb.pb.go +++ b/pkg/cdcpb/cdcpb.pb.go @@ -1,24 +1,49 @@ // 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 + Congested + 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 +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 Event_LogType int32 @@ -51,7 +76,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 +88,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{8, 0} -} +func (Event_LogType) EnumDescriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{8, 0} } type Event_Row_OpType int32 @@ -82,7 +103,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 +112,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{8, 0, 0} -} +func (Event_Row_OpType) EnumDescriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{8, 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 +129,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 +138,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{11, 0} + return fileDescriptorCdcpb, []int{11, 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 +167,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 +183,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 +204,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 { @@ -339,44 +230,13 @@ func (m *ClusterIDMismatch) GetRequest() uint64 { // tells people that the TiKV-CDC is congested. type Congested struct { // The region ID that triggers the congestion. - 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 *Congested) Reset() { *m = Congested{} } -func (m *Congested) String() string { return proto.CompactTextString(m) } -func (*Congested) ProtoMessage() {} -func (*Congested) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{4} -} -func (m *Congested) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Congested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Congested.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Congested) XXX_Merge(src proto.Message) { - xxx_messageInfo_Congested.Merge(m, src) -} -func (m *Congested) XXX_Size() int { - return m.Size() -} -func (m *Congested) XXX_DiscardUnknown() { - xxx_messageInfo_Congested.DiscardUnknown(m) + RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` } -var xxx_messageInfo_Congested proto.InternalMessageInfo +func (m *Congested) Reset() { *m = Congested{} } +func (m *Congested) String() string { return proto.CompactTextString(m) } +func (*Congested) ProtoMessage() {} +func (*Congested) Descriptor() ([]byte, []int) { return fileDescriptorCdcpb, []int{4} } func (m *Congested) GetRegionId() uint64 { if m != nil { @@ -386,51 +246,20 @@ func (m *Congested) GetRegionId() 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"` - ServerIsBusy *errorpb.ServerIsBusy `protobuf:"bytes,7,opt,name=server_is_busy,json=serverIsBusy,proto3" json:"server_is_busy,omitempty"` - Congested *Congested `protobuf:"bytes,8,opt,name=congested,proto3" json:"congested,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{5} -} -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"` + ServerIsBusy *errorpb.ServerIsBusy `protobuf:"bytes,7,opt,name=server_is_busy,json=serverIsBusy" json:"server_is_busy,omitempty"` + Congested *Congested `protobuf:"bytes,8,opt,name=congested" json:"congested,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{5} } func (m *Error) GetNotLeader() *errorpb.NotLeader { if m != nil { @@ -489,45 +318,14 @@ func (m *Error) GetCongested() *Congested { } 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{6} -} -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{6} } func (m *TxnInfo) GetStartTs() uint64 { if m != nil { @@ -544,47 +342,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{7} -} -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{7} } func (m *TxnStatus) GetStartTs() uint64 { if m != nil { @@ -624,44 +391,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{8} -} -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{8} } type isEvent_Event interface { isEvent_Event() @@ -670,19 +406,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() {} @@ -740,7 +476,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 @@ -755,9 +490,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), @@ -766,6 +501,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"` @@ -781,44 +631,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{8, 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{8, 0} } func (m *Event_Row) GetStartTs() uint64 { if m != nil { @@ -891,44 +710,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{8, 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{8, 1} } func (m *Event_Entries) GetEntries() []*Event_Row { if m != nil { @@ -938,45 +726,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{8, 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{8, 2} } func (m *Event_Admin) GetAdminRequest() *raft_cmdpb.AdminRequest { if m != nil { @@ -993,44 +750,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{8, 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{8, 3} } func (m *Event_LongTxn) GetTxnInfo() []*TxnInfo { if m != nil { @@ -1041,45 +767,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{9} -} -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{9} } func (m *ChangeDataEvent) GetEvents() []*Event { if m != nil { @@ -1096,46 +791,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{10} -} -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{10} } func (m *ResolvedTs) GetRegions() []uint64 { if m != nil { @@ -1159,9 +823,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"` @@ -1177,44 +841,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{11} -} -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{11} } type isChangeDataRequest_Request interface { isChangeDataRequest_Request() @@ -1223,13 +856,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() {} @@ -1334,132 +967,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{11, 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 - } + return fileDescriptorCdcpb, []int{11, 0} } -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 fileDescriptor_911209a1d38ef245, []int{11, 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{11, 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{11, 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() + return fileDescriptorCdcpb, []int{11, 2} } -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 { @@ -1469,9 +1099,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") @@ -1491,109 +1118,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{ - // 1544 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4b, 0x73, 0x1b, 0x4f, - 0x11, 0xd7, 0xea, 0xad, 0xd6, 0xc3, 0xeb, 0x49, 0x48, 0x14, 0x51, 0x98, 0xa0, 0x24, 0xe0, 0x84, - 0x42, 0x49, 0x04, 0xe1, 0x10, 0x8a, 0x80, 0xf5, 0x08, 0x56, 0x59, 0x96, 0x53, 0xe3, 0xb5, 0x53, - 0xc5, 0x81, 0xad, 0xf5, 0xee, 0x58, 0xde, 0x92, 0xb4, 0xb3, 0xd9, 0x1d, 0x29, 0xd2, 0x8d, 0x23, - 0x17, 0x4e, 0x70, 0xe0, 0x23, 0xf0, 0x51, 0x38, 0x72, 0xe4, 0x48, 0x85, 0xef, 0x40, 0x71, 0xa4, - 0xa6, 0x67, 0x77, 0xf5, 0xc8, 0xdf, 0xfe, 0x57, 0xfd, 0x4f, 0x9a, 0xee, 0x5f, 0x4f, 0x4f, 0x4f, - 0x3f, 0x7e, 0xb3, 0x82, 0xb2, 0xed, 0xd8, 0xfe, 0x55, 0xcb, 0x0f, 0xb8, 0xe0, 0x24, 0x87, 0x42, - 0x43, 0x0f, 0xac, 0x6b, 0x61, 0xda, 0x33, 0x27, 0x06, 0x1a, 0x95, 0x19, 0x13, 0x56, 0x22, 0x55, - 0x59, 0x10, 0xf0, 0x60, 0x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92, 0x1d, - 0x97, 0xbc, 0x5e, 0xc4, 0x7d, 0x7a, 0x12, 0x7e, 0xa4, 0xa7, 0x6b, 0x93, 0xe6, 0x3b, 0x28, 0x18, - 0x4b, 0x6f, 0xe0, 0x5d, 0x73, 0xf2, 0x08, 0x8a, 0xa1, 0xb0, 0x02, 0x61, 0x8a, 0x30, 0x6e, 0x31, - 0x94, 0x8d, 0x50, 0xb6, 0x98, 0x1f, 0xb8, 0x33, 0x2b, 0x58, 0x61, 0x61, 0x2b, 0x34, 0x16, 0x9b, - 0x7f, 0xd6, 0xa0, 0x64, 0x2c, 0xbd, 0x73, 0x61, 0x89, 0x79, 0x78, 0x97, 0x8b, 0x26, 0x54, 0x67, - 0xae, 0x67, 0xda, 0x7c, 0x36, 0x73, 0x11, 0x57, 0xbd, 0x5a, 0x9e, 0xb9, 0x5e, 0x17, 0x75, 0x46, - 0x28, 0x5b, 0x74, 0x8d, 0x67, 0x54, 0x8b, 0xda, 0x31, 0xf8, 0x14, 0x6a, 0x6e, 0x68, 0x06, 0x7c, - 0x3a, 0x65, 0x8e, 0x79, 0x65, 0xd9, 0x13, 0xac, 0x6f, 0x91, 0x56, 0xdc, 0x90, 0xa2, 0xb2, 0x63, - 0xd9, 0x93, 0xe6, 0x5f, 0x8a, 0x90, 0xeb, 0x2f, 0xe4, 0x58, 0xdc, 0xd5, 0xef, 0xe4, 0x3e, 0xe4, - 0x5c, 0xcf, 0x61, 0xcb, 0x28, 0x0a, 0x25, 0x48, 0xa6, 0x88, 0x7a, 0x47, 0xee, 0x29, 0x28, 0xa6, - 0x88, 0x34, 0x03, 0x87, 0xbc, 0x82, 0x02, 0xf3, 0x44, 0xe0, 0xb2, 0x30, 0x6a, 0xce, 0xb8, 0x31, - 0xf0, 0xc0, 0x56, 0x5f, 0x61, 0xc7, 0x29, 0x1a, 0x9b, 0x91, 0x17, 0x90, 0xb3, 0x9c, 0x99, 0xeb, - 0x45, 0xad, 0x48, 0xb6, 0xec, 0x8f, 0x24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aa, - 0xe4, 0x6c, 0x53, 0x57, 0x62, 0xa5, 0xf8, 0x11, 0x97, 0xcd, 0x9f, 0x40, 0x0e, 0xc3, 0x21, 0x45, - 0xc8, 0x1a, 0x6e, 0xaf, 0xa3, 0xa7, 0x48, 0x09, 0x72, 0xd4, 0xfa, 0x7c, 0x72, 0xa9, 0x6b, 0x72, - 0x69, 0x2c, 0xbd, 0x93, 0x4b, 0x3d, 0xdd, 0x29, 0x25, 0x9f, 0xb7, 0xed, 0xbf, 0x6a, 0x00, 0xeb, - 0x5b, 0x91, 0x23, 0x28, 0xe1, 0xb4, 0xbe, 0x67, 0xcc, 0x21, 0xf5, 0xdb, 0x6e, 0xdd, 0x78, 0xf0, - 0x15, 0x82, 0xbb, 0x0e, 0xb5, 0x57, 0x1a, 0xe9, 0x42, 0x39, 0x71, 0x71, 0xd9, 0xfe, 0x6e, 0x4e, - 0x3a, 0x3f, 0xfe, 0xd7, 0xdf, 0x8b, 0xda, 0x3f, 0xbe, 0x1c, 0x68, 0xff, 0xfc, 0x72, 0xa0, 0xfd, - 0xfb, 0xcb, 0x81, 0xf6, 0xb7, 0xff, 0x1c, 0xa4, 0x40, 0xe7, 0xc1, 0xb8, 0x25, 0xdc, 0xc9, 0xa2, - 0x35, 0x59, 0xe0, 0x5f, 0x92, 0xab, 0x3c, 0xfe, 0xfc, 0xfc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x04, 0x23, 0x11, 0xea, 0x14, 0x0d, 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. @@ -1604,9 +1131,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: @@ -1625,7 +1151,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 } @@ -1656,7 +1182,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 } @@ -1686,7 +1212,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: @@ -1696,17 +1223,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) } @@ -1787,7 +1303,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 } @@ -1795,38 +1311,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 } @@ -1834,31 +1340,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 } @@ -1866,33 +1363,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 } @@ -1900,36 +1387,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 *Congested) Marshal() (dAtA []byte, err error) { 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,31 +1415,22 @@ func (m *Congested) Marshal() (dAtA []byte, err error) { } func (m *Congested) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Congested) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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 *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 } @@ -1969,122 +1438,97 @@ 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.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 += n1 } - if m.Congested != nil { - { - size, err := m.Congested.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] = 0x42 + i += n2 } - if m.ServerIsBusy != nil { - { - size, err := m.ServerIsBusy.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] = 0x3a + i += n3 } - 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.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] = 0x32 + i += n4 } 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-- 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++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Compatibility.Size())) + n5, err := m.Compatibility.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n5 } - 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.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] = 0x1a + i += n6 } - 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.ServerIsBusy != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ServerIsBusy.Size())) + n7, err := m.ServerIsBusy.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n7 } - 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.Congested != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Congested.Size())) + n8, err := m.Congested.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 *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 } @@ -2092,38 +1536,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 } @@ -2131,51 +1565,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 } @@ -2183,146 +1608,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 - } + nn9, err := m.Event.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn9 } 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())) + n10, err := m.Entries.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - 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())) + n11, err := m.Admin.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - 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())) + n12, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - 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())) + n13, err := m.LongTxn.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - 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 } @@ -2330,82 +1711,70 @@ 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.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) } - if m.Generation != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Generation)) - i-- - dAtA[i] = 0x50 + 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.Key) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintCdcpb(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 = encodeVarintCdcpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintCdcpb(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 = encodeVarintCdcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x2a - } - 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 + if m.Generation != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Generation)) } - 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 } @@ -2413,40 +1782,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 } @@ -2454,50 +1812,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())) + n14, err := m.AdminRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 } 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())) + n15, err := m.AdminResponse.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n15 } - 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 } @@ -2505,40 +1850,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 } @@ -2546,52 +1880,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())) + n16, err := m.ResolvedTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n16 } - 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 } @@ -2599,54 +1920,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 { - dAtA17 := make([]byte, len(m.Regions)*10) - var j16 int + dAtA18 := make([]byte, len(m.Regions)*10) + var j17 int for _, num := range m.Regions { for num >= 1<<7 { - dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80) + dAtA18[j17] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j16++ + j17++ } - dAtA17[j16] = uint8(num) - j16++ + dAtA18[j17] = uint8(num) + j17++ } - i -= j16 - copy(dAtA[i:], dAtA17[:j16]) - i = encodeVarintCdcpb(dAtA, i, uint64(j16)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(j17)) + i += copy(dAtA[i:], dAtA18[:j17]) } - return len(dAtA) - i, nil + 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 } 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 } @@ -2654,171 +1965,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())) + n19, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n19 } - 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())) + n20, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - 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.RequestId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) } - if m.CheckpointTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.CheckpointTs)) - i-- - dAtA[i] = 0x20 + if m.ExtraOp != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ExtraOp)) } - 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.Request != nil { + nn21, err := m.Request.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += nn21 } - 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())) + n22, err := m.Register.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - 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())) + n23, err := m.NotifyTxnStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } - 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())) + n24, err := m.Deregister.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 } - 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 } @@ -2826,26 +2099,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 } @@ -2853,26 +2117,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 } @@ -2880,51 +2135,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 { @@ -2934,47 +2173,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 { @@ -2983,31 +2204,19 @@ 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 *Congested) 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 *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NotLeader != nil { @@ -3042,16 +2251,10 @@ func (m *Error) Size() (n int) { l = m.Congested.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 { @@ -3061,16 +2264,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 { @@ -3085,16 +2282,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 { @@ -3109,16 +2300,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 { @@ -3128,9 +2313,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 { @@ -3140,9 +2322,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 { @@ -3152,18 +2331,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 { @@ -3173,9 +2346,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 { @@ -3211,16 +2381,10 @@ func (m *Event_Row) Size() (n int) { if m.Generation != 0 { n += 1 + sovCdcpb(uint64(m.Generation)) } - 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 { @@ -3229,16 +2393,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 { @@ -3249,16 +2407,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 { @@ -3267,16 +2419,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 { @@ -3289,16 +2435,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 { @@ -3314,16 +2454,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 { @@ -3363,16 +2497,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 { @@ -3382,9 +2510,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 { @@ -3394,9 +2519,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 { @@ -3406,33 +2528,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 { @@ -3441,14 +2548,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)))) @@ -3468,7 +2579,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 } @@ -3496,7 +2607,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 } @@ -3515,7 +2626,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 } @@ -3525,9 +2636,6 @@ func (m *Header) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3539,13 +2647,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 } } @@ -3570,7 +2677,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 } @@ -3598,7 +2705,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 } @@ -3609,13 +2716,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 } } @@ -3640,7 +2746,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 } @@ -3668,7 +2774,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 } @@ -3678,9 +2784,6 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3692,13 +2795,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 } } @@ -3723,7 +2825,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 } @@ -3751,7 +2853,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 } @@ -3770,7 +2872,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 } @@ -3781,13 +2883,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 } } @@ -3812,7 +2913,7 @@ func (m *Congested) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3840,7 +2941,7 @@ func (m *Congested) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.RegionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3851,13 +2952,12 @@ func (m *Congested) 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 } } @@ -3882,7 +2982,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 } @@ -3910,7 +3010,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 } @@ -3919,9 +3019,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3946,7 +3043,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 } @@ -3955,9 +3052,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3982,7 +3076,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 } @@ -3991,9 +3085,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4018,7 +3109,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 } @@ -4027,9 +3118,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4054,7 +3142,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 } @@ -4063,9 +3151,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4090,7 +3175,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 } @@ -4099,9 +3184,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4126,7 +3208,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 } @@ -4135,9 +3217,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4162,7 +3241,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 } @@ -4171,9 +3250,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4190,13 +3266,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 } } @@ -4221,7 +3296,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 } @@ -4249,7 +3324,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 } @@ -4268,7 +3343,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 } @@ -4277,9 +3352,6 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4294,13 +3366,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 } } @@ -4325,7 +3396,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 } @@ -4353,7 +3424,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 } @@ -4372,7 +3443,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 } @@ -4391,7 +3462,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 } @@ -4410,7 +3481,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 } @@ -4422,13 +3493,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 } } @@ -4453,7 +3523,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 } @@ -4481,7 +3551,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 } @@ -4500,7 +3570,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 } @@ -4519,7 +3589,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 } @@ -4528,9 +3598,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4554,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 } @@ -4563,9 +3630,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4589,7 +3653,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 } @@ -4598,9 +3662,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4624,7 +3685,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 } @@ -4644,7 +3705,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 } @@ -4663,7 +3724,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 } @@ -4672,9 +3733,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4690,13 +3748,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 } } @@ -4721,7 +3778,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 } @@ -4749,7 +3806,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 } @@ -4768,7 +3825,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 } @@ -4787,7 +3844,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 } @@ -4806,7 +3863,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 } @@ -4825,7 +3882,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 } @@ -4834,9 +3891,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 } @@ -4859,7 +3913,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 } @@ -4868,9 +3922,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 } @@ -4893,7 +3944,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 } @@ -4902,9 +3953,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 } @@ -4927,7 +3975,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 } @@ -4946,7 +3994,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 } @@ -4965,7 +4013,7 @@ func (m *Event_Row) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Generation |= uint64(b&0x7F) << shift + m.Generation |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4976,13 +4024,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 } } @@ -5007,7 +4054,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 } @@ -5035,7 +4082,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 } @@ -5044,9 +4091,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 } @@ -5061,13 +4105,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 } } @@ -5092,7 +4135,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 } @@ -5120,7 +4163,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 } @@ -5129,9 +4172,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 } @@ -5156,7 +4196,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 } @@ -5165,9 +4205,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 } @@ -5184,13 +4221,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 } } @@ -5215,7 +4251,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 } @@ -5243,7 +4279,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 } @@ -5252,9 +4288,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 } @@ -5269,13 +4302,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 } } @@ -5300,7 +4332,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 } @@ -5328,7 +4360,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 } @@ -5337,9 +4369,6 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5362,7 +4391,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 } @@ -5371,9 +4400,6 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5390,13 +4416,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 } } @@ -5421,7 +4446,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 } @@ -5447,7 +4472,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 } @@ -5464,7 +4489,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 } @@ -5473,23 +4498,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 { @@ -5501,7 +4512,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 } @@ -5525,7 +4536,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 } @@ -5544,7 +4555,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 } @@ -5555,13 +4566,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 } } @@ -5586,7 +4596,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 } @@ -5614,7 +4624,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 } @@ -5623,9 +4633,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5650,7 +4657,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 } @@ -5669,7 +4676,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 } @@ -5678,9 +4685,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5705,7 +4709,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 } @@ -5724,7 +4728,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 } @@ -5733,9 +4737,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5758,7 +4759,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 } @@ -5767,9 +4768,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5792,7 +4790,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 } @@ -5811,7 +4809,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 } @@ -5830,7 +4828,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 } @@ -5839,9 +4837,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5865,7 +4860,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 } @@ -5874,9 +4869,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5900,7 +4892,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 } @@ -5919,7 +4911,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 } @@ -5939,7 +4931,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 } @@ -5948,9 +4940,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5966,13 +4955,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 } } @@ -5997,7 +4985,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 } @@ -6017,13 +5005,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 } } @@ -6048,7 +5035,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 } @@ -6068,13 +5055,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 } } @@ -6099,7 +5085,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 } @@ -6127,7 +5113,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 } @@ -6136,9 +5122,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 } @@ -6153,13 +5136,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 } } @@ -6172,7 +5154,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 { @@ -6204,8 +5185,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 { @@ -6222,34 +5205,156 @@ 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{ + // 1539 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4b, 0x73, 0x1b, 0x4f, + 0x11, 0xd7, 0xea, 0xad, 0xd6, 0xc3, 0xeb, 0x49, 0x48, 0x14, 0x51, 0x98, 0xa0, 0x24, 0xe0, 0x84, + 0x42, 0x49, 0x04, 0xe1, 0x10, 0x8a, 0x80, 0xf5, 0x08, 0x56, 0x59, 0x96, 0x53, 0xe3, 0xb5, 0x53, + 0xc5, 0x81, 0xad, 0xf5, 0xee, 0x58, 0xde, 0x92, 0xb4, 0xb3, 0xd9, 0x1d, 0x29, 0xd2, 0x8d, 0x23, + 0x17, 0x4e, 0x70, 0xe0, 0x23, 0xf0, 0x51, 0x38, 0x72, 0xe4, 0x48, 0x85, 0xef, 0x40, 0x71, 0xa4, + 0xa6, 0x67, 0x77, 0xf5, 0xc8, 0xdf, 0xfe, 0x57, 0xfd, 0x4f, 0x9a, 0xee, 0x5f, 0x4f, 0x6f, 0xbf, + 0x7b, 0x04, 0x65, 0xdb, 0xb1, 0xfd, 0xab, 0x96, 0x1f, 0x70, 0xc1, 0x49, 0x0e, 0x89, 0x86, 0x1e, + 0x58, 0xd7, 0xc2, 0xb4, 0x67, 0x4e, 0x0c, 0x34, 0x2a, 0x33, 0x26, 0xac, 0x84, 0xaa, 0xb2, 0x20, + 0xe0, 0xc1, 0x9a, 0x9c, 0x2c, 0x02, 0x3f, 0x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x97, 0x51, 0x27, + 0xaf, 0x01, 0x3c, 0x2e, 0xcc, 0x29, 0xc6, 0x0e, 0xe5, 0xca, 0x6d, 0xd2, 0x8a, 0x33, 0x32, 0xe2, + 0x62, 0x88, 0x08, 0x2d, 0x79, 0xf1, 0x91, 0x1c, 0x49, 0xd7, 0x50, 0xb3, 0xbc, 0x79, 0xcd, 0xe7, + 0x9e, 0x83, 0x96, 0x94, 0xdb, 0x0f, 0x93, 0x8b, 0x14, 0x05, 0x46, 0x5c, 0xbc, 0x97, 0x30, 0xad, + 0x05, 0x5b, 0x34, 0x79, 0x07, 0x7b, 0xcc, 0xe7, 0xf6, 0x0d, 0x6a, 0x40, 0x87, 0xeb, 0x19, 0xd4, + 0xf0, 0x20, 0xd1, 0xd0, 0x97, 0xf8, 0x88, 0x8b, 0x53, 0x89, 0xd2, 0x2a, 0xdb, 0x24, 0x49, 0x0f, + 0xf6, 0x9d, 0x38, 0x3f, 0x66, 0x1c, 0x8d, 0x6c, 0x64, 0x83, 0x2a, 0xc1, 0xdd, 0xfc, 0x51, 0xdd, + 0xd9, 0xcd, 0xe8, 0x5b, 0xa8, 0xda, 0x9b, 0x49, 0xab, 0xe7, 0x50, 0xc3, 0xfd, 0x48, 0xc3, 0x56, + 0x42, 0xe9, 0xb6, 0x28, 0x39, 0x86, 0x7b, 0xeb, 0x2a, 0x33, 0x67, 0x51, 0xda, 0xea, 0x79, 0xd4, + 0x50, 0x8f, 0x35, 0xec, 0xa6, 0x95, 0xee, 0x27, 0x85, 0x98, 0x64, 0xfa, 0x57, 0x50, 0x0b, 0x59, + 0xb0, 0x90, 0x8a, 0x42, 0xf3, 0x6a, 0x1e, 0xae, 0xea, 0x05, 0x54, 0xf2, 0xbd, 0x24, 0x14, 0xe7, + 0x08, 0x0f, 0xc2, 0xce, 0x3c, 0x5c, 0xd1, 0x4a, 0xb8, 0x41, 0x91, 0x16, 0x94, 0xec, 0x38, 0xe5, + 0xf5, 0x22, 0xde, 0xd3, 0x13, 0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0x72, 0xe8, 0x15, 0x29, 0x42, 0xd6, 0x70, 0x7b, 0x1d, + 0x3d, 0x45, 0x4a, 0x90, 0xa3, 0xd6, 0xe7, 0x93, 0x4b, 0x5d, 0x93, 0x47, 0x63, 0xe9, 0x9d, 0x5c, + 0xea, 0xe9, 0x4e, 0x29, 0x79, 0xde, 0xb6, 0xff, 0xaa, 0x01, 0xac, 0x1d, 0x20, 0x47, 0x50, 0xc2, + 0x6e, 0x7d, 0xcf, 0x98, 0x43, 0xea, 0xb7, 0x39, 0xd8, 0x78, 0xf0, 0x15, 0x82, 0xb7, 0x0e, 0xb5, + 0x57, 0x1a, 0xe9, 0x42, 0x39, 0x51, 0x71, 0xd9, 0xfe, 0x6e, 0x4a, 0x3a, 0x3f, 0xfe, 0xd7, 0xdf, + 0x8b, 0xda, 0x3f, 0xbe, 0x1c, 0x68, 0xff, 0xfc, 0x72, 0xa0, 0xfd, 0xfb, 0xcb, 0x81, 0xf6, 0xb7, + 0xff, 0x1c, 0xa4, 0x40, 0xe7, 0xc1, 0xb8, 0x25, 0xdc, 0xc9, 0xa2, 0x35, 0x59, 0xe0, 0x5f, 0x92, + 0xab, 0x3c, 0xfe, 0xfc, 0xfc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x90, 0xc6, 0xf8, 0x2f, 0x14, + 0x0d, 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, 0x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, 0xd5, 0xca, 0x5d, 0xe8, 0xe2, 0xf7, 0xf3, 0xc3, - 0x7f, 0x03, 0x00, 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, 0x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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 300620cf9..63793ac8c 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:"-"` + Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` } -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) -} - -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,46 +91,15 @@ 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"` - ConnectionId uint64 `protobuf:"varint,12,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - ConnectionAlias string `protobuf:"bytes,13,opt,name=connection_alias,json=connectionAlias,proto3" json:"connection_alias,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"` + ConnectionId uint64 `protobuf:"varint,12,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ConnectionAlias string `protobuf:"bytes,13,opt,name=connection_alias,json=connectionAlias,proto3" json:"connection_alias,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 { @@ -234,16 +194,16 @@ func (m *Request) GetConnectionAlias() string { 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"` @@ -251,44 +211,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:"-"` + BatchResponses []*StoreBatchTaskResponse `protobuf:"bytes,13,rep,name=batch_responses,json=batchResponses" json:"batch_responses,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 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) -} - -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 { @@ -368,46 +297,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 { @@ -431,45 +329,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:"-"` + 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"` } -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) -} - -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 { @@ -486,55 +353,24 @@ 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"` - ConnectionId uint64 `protobuf:"varint,9,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - ConnectionAlias string `protobuf:"bytes,10,opt,name=connection_alias,json=connectionAlias,proto3" json:"connection_alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + 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"` + ConnectionId uint64 `protobuf:"varint,9,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ConnectionAlias string `protobuf:"bytes,10,opt,name=connection_alias,json=connectionAlias,proto3" json:"connection_alias,omitempty"` } -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) -} - -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 { @@ -607,47 +443,16 @@ func (m *BatchRequest) GetConnectionAlias() 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:"-"` + 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"` } -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) -} - -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 { @@ -671,48 +476,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 { @@ -750,49 +524,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) -} -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) + return fileDescriptorCoprocessor, []int{8} } -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 { @@ -840,83 +585,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{ - // 1051 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0xcd, 0x6e, 0x1b, 0x37, - 0x10, 0xce, 0xea, 0x77, 0x3d, 0xbb, 0x92, 0x65, 0xc6, 0x71, 0x36, 0x09, 0x6a, 0x0b, 0x0a, 0x50, - 0x28, 0x69, 0x2b, 0xc3, 0x72, 0x91, 0xde, 0x0c, 0x54, 0xa9, 0x81, 0xaa, 0x75, 0x81, 0x82, 0x36, - 0x7c, 0x5d, 0x50, 0x5c, 0x7a, 0xb5, 0x90, 0xbc, 0xdc, 0x92, 0xb4, 0x61, 0xe7, 0xd6, 0x37, 0xe8, - 0xb1, 0x8f, 0xd0, 0x07, 0xe9, 0x21, 0xb7, 0xf6, 0x58, 0xf4, 0x10, 0x14, 0xee, 0x03, 0x14, 0xc8, - 0x13, 0x14, 0x24, 0x77, 0xf5, 0xe3, 0x38, 0x85, 0x73, 0xf0, 0xa5, 0xa7, 0xe5, 0x7c, 0x33, 0x9c, - 0x19, 0x0e, 0x3f, 0x7e, 0x0b, 0x6b, 0x94, 0x67, 0x82, 0x53, 0x26, 0x25, 0x17, 0xbd, 0x4c, 0x70, - 0xc5, 0x91, 0xb7, 0x00, 0x3d, 0x6e, 0x30, 0x21, 0xb8, 0xc8, 0x46, 0xd6, 0xf7, 0xb8, 0x31, 0x39, - 0x17, 0x19, 0x9d, 0x99, 0xeb, 0x31, 0x8f, 0xb9, 0x59, 0x6e, 0xeb, 0x55, 0x8e, 0xae, 0x8a, 0x33, - 0xa9, 0xcc, 0x32, 0x07, 0xfc, 0x53, 0xa6, 0x48, 0xb1, 0xa9, 0xd3, 0x07, 0xf7, 0x5b, 0x76, 0x89, - 0x49, 0x1a, 0x33, 0xb4, 0x0e, 0x55, 0xa9, 0x88, 0x50, 0x81, 0xd3, 0x76, 0xba, 0x3e, 0xb6, 0x06, - 0x6a, 0x41, 0x99, 0xa5, 0x51, 0x50, 0x32, 0x98, 0x5e, 0x76, 0xfe, 0x29, 0x43, 0x1d, 0xb3, 0x1f, - 0xce, 0x98, 0x54, 0xe8, 0x39, 0xd4, 0x29, 0x4f, 0x15, 0xbb, 0xb0, 0xbb, 0xbc, 0x7e, 0xab, 0x57, - 0x74, 0xf5, 0xd2, 0xe2, 0xb8, 0x08, 0x40, 0x4d, 0x28, 0xa9, 0xcc, 0x24, 0x2a, 0xe3, 0x92, 0xca, - 0x10, 0x82, 0x4a, 0x44, 0x14, 0x09, 0xca, 0x26, 0xb5, 0x59, 0xa3, 0x47, 0xe0, 0x9a, 0xb2, 0xa1, - 0x92, 0x41, 0xbd, 0xed, 0x74, 0x2b, 0xb8, 0x6e, 0xec, 0x23, 0x89, 0x3e, 0x83, 0x9a, 0xd0, 0x7d, - 0xca, 0xa0, 0xd2, 0x2e, 0x77, 0xbd, 0xfe, 0x83, 0xde, 0xe2, 0xb8, 0x8a, 0x53, 0xe0, 0x3c, 0x08, - 0x75, 0xa1, 0x95, 0xc8, 0x90, 0x12, 0x3a, 0x66, 0x21, 0x4b, 0xc9, 0x68, 0xca, 0xa2, 0xa0, 0xda, - 0x76, 0xba, 0x2e, 0x6e, 0x26, 0xf2, 0xa5, 0x86, 0xf7, 0x2d, 0x8a, 0x76, 0x61, 0xc3, 0x86, 0x25, - 0x27, 0xe1, 0x29, 0x51, 0x74, 0x1c, 0x9e, 0x33, 0x21, 0x13, 0x9e, 0x06, 0x35, 0xd3, 0xc1, 0x7d, - 0xe3, 0x1d, 0x9e, 0x7c, 0xa7, 0x7d, 0xc7, 0xd6, 0x85, 0x3e, 0x02, 0x90, 0x74, 0xcc, 0x4e, 0x89, - 0x0e, 0x0e, 0x5c, 0x73, 0xa8, 0x15, 0x8b, 0x1c, 0x33, 0x91, 0x57, 0x57, 0x82, 0xd0, 0x79, 0xf5, - 0x95, 0xa2, 0xfa, 0x91, 0x86, 0x8b, 0xea, 0x5b, 0xe0, 0x65, 0x24, 0x4e, 0xd2, 0x38, 0x94, 0xc9, - 0x2b, 0x16, 0x80, 0x29, 0x09, 0x16, 0x3a, 0x4c, 0x5e, 0x31, 0xb4, 0x03, 0x55, 0x45, 0xe4, 0x44, - 0x06, 0x9e, 0x39, 0xf6, 0x93, 0xa5, 0x63, 0x1f, 0x2a, 0x2e, 0xd8, 0x40, 0x37, 0x76, 0x44, 0xe4, - 0x04, 0xdb, 0x48, 0xf4, 0x14, 0x1a, 0x94, 0xa7, 0x29, 0xa3, 0x2a, 0xe1, 0x69, 0x98, 0x44, 0x81, - 0x6f, 0xb2, 0xfa, 0x73, 0x70, 0x18, 0xa1, 0x67, 0xd0, 0x5a, 0x08, 0x22, 0xd3, 0x84, 0xc8, 0xa0, - 0xd1, 0x76, 0xba, 0x2b, 0x78, 0x75, 0x8e, 0x7f, 0xa9, 0xe1, 0xce, 0x8f, 0x55, 0x70,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x33, 0x46, 0x8f, 0x13, 0x65, 0xde, 0x87, 0x8b, 0x21, 0x67, 0xf3, 0xd7, 0x89, - 0x42, 0x9f, 0x02, 0xb2, 0xee, 0x29, 0x91, 0x6a, 0xc6, 0x62, 0xd7, 0x5c, 0x7e, 0xcb, 0x78, 0x0e, - 0x88, 0x54, 0x05, 0x85, 0x3b, 0xd0, 0xa0, 0x24, 0x0d, 0x47, 0xcc, 0xe6, 0x2c, 0x08, 0xea, 0x51, - 0x92, 0x0e, 0x98, 0xc9, 0x19, 0xa1, 0xcf, 0x61, 0x63, 0x4a, 0x14, 0x93, 0x2a, 0x1c, 0x9d, 0xd1, - 0x09, 0x53, 0x72, 0x96, 0xd5, 0x52, 0x6a, 0xdd, 0x7a, 0x07, 0xd6, 0x59, 0x64, 0x3e, 0x80, 0xd5, - 0x91, 0x79, 0x48, 0x22, 0x27, 0x8d, 0x66, 0x96, 0x26, 0xef, 0xd3, 0xff, 0x22, 0x6f, 0x1e, 0x8b, - 0x9b, 0x66, 0x6f, 0x61, 0xca, 0x6f, 0x2a, 0x2e, 0xb4, 0xbc, 0xce, 0x4f, 0x0e, 0x00, 0x36, 0xf7, - 0xaf, 0xef, 0x16, 0x3d, 0x81, 0x95, 0x9c, 0x31, 0x49, 0x64, 0xa8, 0x58, 0xc1, 0xae, 0x05, 0x86, - 0x11, 0x7a, 0x31, 0xa7, 0x53, 0xc6, 0xe9, 0x38, 0xa7, 0xd3, 0xfd, 0x5e, 0x2e, 0x7d, 0x36, 0xcd, - 0xbe, 0x76, 0xcd, 0x38, 0xa5, 0x8d, 0x05, 0x89, 0x29, 0xdf, 0x42, 0x62, 0x3a, 0xa7, 0xe0, 0x1f, - 0xe9, 0x47, 0x6c, 0xf3, 0x49, 0xf4, 0x1c, 0xd6, 0xb2, 0xf1, 0xa5, 0x4c, 0x28, 0x99, 0x86, 0x4a, - 0x3b, 0x8a, 0xde, 0xca, 0x78, 0xb5, 0x70, 0x98, 0x0d, 0xc3, 0x08, 0x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, 0x0c, - 0x37, 0xfd, 0x82, 0x6a, 0x1f, 0xf0, 0x0b, 0x1a, 0x7c, 0xfc, 0xc7, 0x2f, 0xae, 0xf3, 0xfa, 0x6a, - 0xd3, 0xf9, 0xfd, 0x6a, 0xd3, 0xf9, 0xeb, 0x6a, 0xd3, 0xf9, 0xf9, 0xef, 0xcd, 0x7b, 0xd0, 0xe2, - 0x22, 0xee, 0xa9, 0x64, 0x72, 0xde, 0xcb, 0x27, 0x34, 0xaa, 0x99, 0xcf, 0xee, 0xbf, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x4d, 0x1f, 0xa1, 0x59, 0xd2, 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 } @@ -924,40 +596,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 } @@ -965,130 +626,113 @@ 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.ConnectionAlias) > 0 { - i -= len(m.ConnectionAlias) - copy(dAtA[i:], m.ConnectionAlias) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.ConnectionAlias))) - i-- - dAtA[i] = 0x6a + if m.Tp != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) } - if m.ConnectionId != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.ConnectionId)) - i-- - dAtA[i] = 0x60 + 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.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 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 - } - 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 + i++ } - 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 + if m.ConnectionId != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ConnectionId)) + } + if len(m.ConnectionAlias) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.ConnectionAlias))) + i += copy(dAtA[i:], m.ConnectionAlias) + } + 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 } @@ -1096,147 +740,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 - } - 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 + i++ } - 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 - } - 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 += n7 } - 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 += n } - 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 *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 } @@ -1244,57 +864,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 } @@ -1302,45 +909,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 } @@ -1348,107 +944,89 @@ 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.ConnectionAlias) > 0 { - i -= len(m.ConnectionAlias) - copy(dAtA[i:], m.ConnectionAlias) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.ConnectionAlias))) - i-- - dAtA[i] = 0x52 - } - if m.ConnectionId != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.ConnectionId)) - i-- - dAtA[i] = 0x48 - } - 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.Tp != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) } - if m.StartTs != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x28 + 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 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] = 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.Tp != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.Tp)) - i-- - dAtA[i] = 0x10 + if m.StartTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.StartTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if m.SchemaVer != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.SchemaVer)) + } + 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) + } + if m.ConnectionId != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ConnectionId)) + } + if len(m.ConnectionAlias) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.ConnectionAlias))) + i += copy(dAtA[i:], m.ConnectionAlias) + } + 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 } @@ -1456,69 +1034,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-- - 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 += n } - 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 } @@ -1526,74 +1088,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 } @@ -1601,95 +1148,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) @@ -1700,16 +1224,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 { @@ -1760,16 +1278,10 @@ func (m *Request) 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 *Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -1816,16 +1328,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 { @@ -1841,16 +1347,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 { @@ -1862,16 +1362,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 { @@ -1914,16 +1408,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() @@ -1942,16 +1430,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 { @@ -1974,16 +1456,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() @@ -2007,14 +1483,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)))) @@ -2034,7 +1514,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 } @@ -2062,7 +1542,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 } @@ -2071,9 +1551,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2096,7 +1573,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 } @@ -2105,9 +1582,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2122,13 +1596,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 } } @@ -2153,7 +1626,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 } @@ -2181,7 +1654,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 } @@ -2190,9 +1663,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2217,7 +1687,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 } @@ -2236,7 +1706,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 } @@ -2245,9 +1715,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2270,7 +1737,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 } @@ -2279,9 +1746,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2304,7 +1768,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 } @@ -2324,7 +1788,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 } @@ -2343,7 +1807,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 } @@ -2362,7 +1826,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 } @@ -2381,7 +1845,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 } @@ -2401,7 +1865,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 } @@ -2420,7 +1884,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 } @@ -2429,9 +1893,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2454,7 +1915,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConnectionId |= uint64(b&0x7F) << shift + m.ConnectionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2473,7 +1934,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2483,9 +1944,6 @@ func (m *Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2497,13 +1955,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 } } @@ -2528,7 +1985,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 } @@ -2556,7 +2013,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 } @@ -2565,9 +2022,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2589,7 +2043,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 } @@ -2598,9 +2052,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2625,7 +2076,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 } @@ -2634,9 +2085,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2661,7 +2109,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 } @@ -2671,9 +2119,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2693,7 +2138,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 } @@ -2702,9 +2147,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2729,7 +2171,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 } @@ -2738,9 +2180,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2765,7 +2204,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 } @@ -2785,7 +2224,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 } @@ -2804,7 +2243,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 } @@ -2824,7 +2263,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 } @@ -2833,9 +2272,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2860,7 +2296,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 } @@ -2879,7 +2315,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 } @@ -2888,9 +2324,6 @@ func (m *Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2905,13 +2338,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 } } @@ -2936,7 +2368,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 } @@ -2964,7 +2396,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 } @@ -2983,7 +2415,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 } @@ -2992,9 +2424,6 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3019,7 +2448,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 } @@ -3028,9 +2457,6 @@ func (m *RegionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3045,13 +2471,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 } } @@ -3076,7 +2501,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 } @@ -3104,7 +2529,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 } @@ -3123,7 +2548,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 } @@ -3132,9 +2557,6 @@ func (m *TableRegions) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3149,13 +2571,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 } } @@ -3180,7 +2601,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 } @@ -3208,7 +2629,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 } @@ -3217,9 +2638,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3244,7 +2662,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 } @@ -3263,7 +2681,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 } @@ -3272,9 +2690,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3297,7 +2712,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 } @@ -3306,9 +2721,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3331,7 +2743,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 } @@ -3350,7 +2762,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 } @@ -3369,7 +2781,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 } @@ -3378,9 +2790,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3403,7 +2812,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 } @@ -3413,9 +2822,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3435,7 +2841,7 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConnectionId |= uint64(b&0x7F) << shift + m.ConnectionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3454,7 +2860,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 } @@ -3464,9 +2870,6 @@ func (m *BatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3478,13 +2881,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 } } @@ -3509,7 +2911,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 } @@ -3537,7 +2939,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 } @@ -3546,9 +2948,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3570,7 +2969,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 } @@ -3580,9 +2979,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3602,7 +2998,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 } @@ -3611,9 +3007,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3638,7 +3031,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 } @@ -3647,9 +3040,6 @@ func (m *BatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3664,13 +3054,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 } } @@ -3695,7 +3084,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 } @@ -3723,7 +3112,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 } @@ -3742,7 +3131,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 } @@ -3751,9 +3140,6 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3778,7 +3164,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 } @@ -3787,9 +3173,6 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3814,7 +3197,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 } @@ -3823,9 +3206,6 @@ func (m *StoreBatchTask) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3848,7 +3228,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 } @@ -3859,13 +3239,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 } } @@ -3890,7 +3269,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 } @@ -3918,7 +3297,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 } @@ -3927,9 +3306,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3951,7 +3327,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 } @@ -3960,9 +3336,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3987,7 +3360,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 } @@ -3996,9 +3369,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4023,7 +3393,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 } @@ -4033,9 +3403,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4055,7 +3422,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 } @@ -4074,7 +3441,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 } @@ -4083,9 +3450,6 @@ func (m *StoreBatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCoprocessor } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCoprocessor - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4102,13 +3466,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 } } @@ -4121,7 +3484,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 { @@ -4153,8 +3515,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 { @@ -4171,34 +3535,125 @@ 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{ + // 1051 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0xcb, 0x6e, 0x1b, 0x37, + 0x17, 0xce, 0xe8, 0x3a, 0x3e, 0x33, 0x92, 0x65, 0xc6, 0x71, 0x26, 0x09, 0x7e, 0x5b, 0x50, 0x80, + 0x1f, 0x4a, 0xda, 0xca, 0xb0, 0x5c, 0xa4, 0x3b, 0x03, 0x55, 0x6a, 0xa0, 0x6a, 0x5d, 0xa0, 0xa0, + 0x0d, 0x6f, 0x07, 0x14, 0x87, 0x1e, 0x0d, 0x24, 0x0f, 0xa7, 0x24, 0x6d, 0xd8, 0xd9, 0xf5, 0x0d, + 0xba, 0xec, 0x23, 0xf4, 0x41, 0xba, 0xc8, 0xae, 0x5d, 0x16, 0x5d, 0x04, 0x85, 0xfb, 0x00, 0x05, + 0xf2, 0x04, 0x05, 0xc9, 0x19, 0x5d, 0x1c, 0x27, 0x70, 0x16, 0xde, 0x74, 0x25, 0x9e, 0xcb, 0x9c, + 0xf3, 0xf1, 0xf0, 0xe3, 0x47, 0xc1, 0x1a, 0xe5, 0x99, 0xe0, 0x94, 0x49, 0xc9, 0x45, 0x2f, 0x13, + 0x5c, 0x71, 0xe4, 0x2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0f, 0x5a, 0x5c, + 0xc4, 0x3d, 0x95, 0x4c, 0xce, 0x7b, 0xf9, 0x84, 0x46, 0x35, 0xf3, 0xb3, 0xfb, 0x6f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x6d, 0x9a, 0xbf, 0x9d, 0xd2, 0x0a, 0x00, 0x00, +} diff --git a/pkg/deadlock/deadlock.pb.go b/pkg/deadlock/deadlock.pb.go index 7690fc667..3898265bc 100644 --- a/pkg/deadlock/deadlock.pb.go +++ b/pkg/deadlock/deadlock.pb.go @@ -1,20 +1,36 @@ // 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 + ReplaceLockByKeyItem + ReplaceLocksByKeysRequest + 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 +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 DeadlockRequestType int32 @@ -43,7 +59,6 @@ var DeadlockRequestType_name = map[int32]string{ 1: "CleanUpWaitFor", 2: "CleanUp", } - var DeadlockRequestType_value = map[string]int32{ "Detect": 0, "CleanUpWaitFor": 1, @@ -53,89 +68,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 +106,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,47 +157,16 @@ func (m *WaitForEntry) GetWaitTime() uint64 { } type ReplaceLockByKeyItem struct { - KeyHash uint64 `protobuf:"varint,1,opt,name=key_hash,json=keyHash,proto3" json:"key_hash,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - OldLockTs uint64 `protobuf:"varint,3,opt,name=old_lock_ts,json=oldLockTs,proto3" json:"old_lock_ts,omitempty"` - NewLockTs uint64 `protobuf:"varint,4,opt,name=new_lock_ts,json=newLockTs,proto3" json:"new_lock_ts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReplaceLockByKeyItem) Reset() { *m = ReplaceLockByKeyItem{} } -func (m *ReplaceLockByKeyItem) String() string { return proto.CompactTextString(m) } -func (*ReplaceLockByKeyItem) ProtoMessage() {} -func (*ReplaceLockByKeyItem) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{3} -} -func (m *ReplaceLockByKeyItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplaceLockByKeyItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplaceLockByKeyItem.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReplaceLockByKeyItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplaceLockByKeyItem.Merge(m, src) -} -func (m *ReplaceLockByKeyItem) XXX_Size() int { - return m.Size() -} -func (m *ReplaceLockByKeyItem) XXX_DiscardUnknown() { - xxx_messageInfo_ReplaceLockByKeyItem.DiscardUnknown(m) + KeyHash uint64 `protobuf:"varint,1,opt,name=key_hash,json=keyHash,proto3" json:"key_hash,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + OldLockTs uint64 `protobuf:"varint,3,opt,name=old_lock_ts,json=oldLockTs,proto3" json:"old_lock_ts,omitempty"` + NewLockTs uint64 `protobuf:"varint,4,opt,name=new_lock_ts,json=newLockTs,proto3" json:"new_lock_ts,omitempty"` } -var xxx_messageInfo_ReplaceLockByKeyItem proto.InternalMessageInfo +func (m *ReplaceLockByKeyItem) Reset() { *m = ReplaceLockByKeyItem{} } +func (m *ReplaceLockByKeyItem) String() string { return proto.CompactTextString(m) } +func (*ReplaceLockByKeyItem) ProtoMessage() {} +func (*ReplaceLockByKeyItem) Descriptor() ([]byte, []int) { return fileDescriptorDeadlock, []int{3} } func (m *ReplaceLockByKeyItem) GetKeyHash() uint64 { if m != nil { @@ -309,45 +197,16 @@ func (m *ReplaceLockByKeyItem) GetNewLockTs() uint64 { } type ReplaceLocksByKeysRequest struct { - Items []*ReplaceLockByKeyItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Items []*ReplaceLockByKeyItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` } func (m *ReplaceLocksByKeysRequest) Reset() { *m = ReplaceLocksByKeysRequest{} } func (m *ReplaceLocksByKeysRequest) String() string { return proto.CompactTextString(m) } func (*ReplaceLocksByKeysRequest) ProtoMessage() {} func (*ReplaceLocksByKeysRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{4} -} -func (m *ReplaceLocksByKeysRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplaceLocksByKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplaceLocksByKeysRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReplaceLocksByKeysRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplaceLocksByKeysRequest.Merge(m, src) -} -func (m *ReplaceLocksByKeysRequest) XXX_Size() int { - return m.Size() -} -func (m *ReplaceLocksByKeysRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReplaceLocksByKeysRequest.DiscardUnknown(m) + return fileDescriptorDeadlock, []int{4} } -var xxx_messageInfo_ReplaceLocksByKeysRequest proto.InternalMessageInfo - func (m *ReplaceLocksByKeysRequest) GetItems() []*ReplaceLockByKeyItem { if m != nil { return m.Items @@ -356,46 +215,15 @@ func (m *ReplaceLocksByKeysRequest) GetItems() []*ReplaceLockByKeyItem { } 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"` - ReplaceLocksByKeys *ReplaceLocksByKeysRequest `protobuf:"bytes,3,opt,name=replace_locks_by_keys,json=replaceLocksByKeys,proto3" json:"replace_locks_by_keys,omitempty"` - 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{5} -} -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"` + ReplaceLocksByKeys *ReplaceLocksByKeysRequest `protobuf:"bytes,3,opt,name=replace_locks_by_keys,json=replaceLocksByKeys" json:"replace_locks_by_keys,omitempty"` } -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{5} } func (m *DeadlockRequest) GetTp() DeadlockRequestType { if m != nil { @@ -420,51 +248,20 @@ func (m *DeadlockRequest) GetReplaceLocksByKeys() *ReplaceLocksByKeysRequest { 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. The hash of the `deadlock_key` field. 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"` + WaitChain []*WaitForEntry `protobuf:"bytes,3,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` // The key of the lock that is hold by the waiting transaction. - DeadlockKey []byte `protobuf:"bytes,4,opt,name=deadlock_key,json=deadlockKey,proto3" json:"deadlock_key,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{6} -} -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) + DeadlockKey []byte `protobuf:"bytes,4,opt,name=deadlock_key,json=deadlockKey,proto3" json:"deadlock_key,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{6} } func (m *DeadlockResponse) GetEntry() WaitForEntry { if m != nil { @@ -495,7 +292,6 @@ func (m *DeadlockResponse) GetDeadlockKey() []byte { } 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") @@ -503,49 +299,7 @@ func init() { proto.RegisterType((*ReplaceLocksByKeysRequest)(nil), "deadlock.ReplaceLocksByKeysRequest") proto.RegisterType((*DeadlockRequest)(nil), "deadlock.DeadlockRequest") proto.RegisterType((*DeadlockResponse)(nil), "deadlock.DeadlockResponse") -} - -func init() { proto.RegisterFile("deadlock.proto", fileDescriptor_1995e4345c820a37) } - -var fileDescriptor_1995e4345c820a37 = []byte{ - // 588 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x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, 0xe9, 0x6a, 0x97, 0x33, 0x83, 0x7c, 0x9f, - 0x19, 0xe4, 0xe7, 0xcc, 0x20, 0x9f, 0x7f, 0x19, 0x85, 0xf3, 0x75, 0xf9, 0x52, 0x3d, 0xfa, 0x1d, - 0x00, 0x00, 0xff, 0xff, 0x77, 0x7a, 0x20, 0xcc, 0xdb, 0x04, 0x00, 0x00, + proto.RegisterEnum("deadlock.DeadlockRequestType", DeadlockRequestType_name, DeadlockRequestType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -556,9 +310,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. @@ -579,7 +332,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 } @@ -587,7 +340,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 } @@ -617,7 +370,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. @@ -628,17 +382,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) } @@ -710,7 +453,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 } @@ -718,26 +461,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 } @@ -745,40 +479,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 } @@ -786,60 +509,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 *ReplaceLockByKeyItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -847,48 +559,38 @@ func (m *ReplaceLockByKeyItem) Marshal() (dAtA []byte, err error) { } func (m *ReplaceLockByKeyItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplaceLockByKeyItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.KeyHash != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.KeyHash)) } - if m.NewLockTs != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.NewLockTs)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.OldLockTs != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.OldLockTs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.OldLockTs)) } - 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] = 0x12 - } - if m.KeyHash != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.KeyHash)) - i-- - dAtA[i] = 0x8 + if m.NewLockTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.NewLockTs)) } - return len(dAtA) - i, nil + return i, nil } func (m *ReplaceLocksByKeysRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -896,40 +598,29 @@ func (m *ReplaceLocksByKeysRequest) Marshal() (dAtA []byte, err error) { } func (m *ReplaceLocksByKeysRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplaceLocksByKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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 = encodeVarintDeadlock(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Items { 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 *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 } @@ -937,53 +628,40 @@ 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) + if m.Tp != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Tp)) + } + 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 if m.ReplaceLocksByKeys != nil { - { - size, err := m.ReplaceLocksByKeys.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a - } - { - size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.ReplaceLocksByKeys.Size())) + n2, err := m.ReplaceLocksByKeys.MarshalTo(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 += n2 } - return len(dAtA) - i, nil + 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 } @@ -991,85 +669,60 @@ 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) + dAtA[i] = 0xa + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Entry.Size())) + n3, err := m.Entry.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if len(m.DeadlockKey) > 0 { - i -= len(m.DeadlockKey) - copy(dAtA[i:], m.DeadlockKey) - i = encodeVarintDeadlock(dAtA, i, uint64(len(m.DeadlockKey))) - i-- - dAtA[i] = 0x22 + i += n3 + if m.DeadlockKeyHash != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.DeadlockKeyHash)) } 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-- + 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 } } - if m.DeadlockKeyHash != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.DeadlockKeyHash)) - i-- - dAtA[i] = 0x10 - } - { - size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) + if len(m.DeadlockKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(len(m.DeadlockKey))) + i += copy(dAtA[i:], m.DeadlockKey) } - 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 { @@ -1078,16 +731,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 { @@ -1110,16 +757,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 *ReplaceLockByKeyItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyHash != 0 { @@ -1135,16 +776,10 @@ func (m *ReplaceLockByKeyItem) Size() (n int) { if m.NewLockTs != 0 { n += 1 + sovDeadlock(uint64(m.NewLockTs)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ReplaceLocksByKeysRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Items) > 0 { @@ -1153,16 +788,10 @@ func (m *ReplaceLocksByKeysRequest) Size() (n int) { n += 1 + l + sovDeadlock(uint64(l)) } } - 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 { @@ -1174,16 +803,10 @@ func (m *DeadlockRequest) Size() (n int) { l = m.ReplaceLocksByKeys.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() @@ -1201,14 +824,18 @@ func (m *DeadlockResponse) Size() (n int) { if l > 0 { 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)))) @@ -1228,7 +855,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 } @@ -1248,13 +875,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 } } @@ -1279,7 +905,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 } @@ -1307,7 +933,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 } @@ -1316,9 +942,6 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1333,13 +956,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 } } @@ -1364,7 +986,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 } @@ -1392,7 +1014,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 } @@ -1411,7 +1033,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 } @@ -1430,7 +1052,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 } @@ -1449,7 +1071,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 } @@ -1458,9 +1080,6 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1483,7 +1102,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 } @@ -1492,9 +1111,6 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1517,7 +1133,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 } @@ -1528,13 +1144,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 } } @@ -1559,7 +1174,7 @@ func (m *ReplaceLockByKeyItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1587,7 +1202,7 @@ func (m *ReplaceLockByKeyItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyHash |= uint64(b&0x7F) << shift + m.KeyHash |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1606,7 +1221,7 @@ func (m *ReplaceLockByKeyItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1615,9 +1230,6 @@ func (m *ReplaceLockByKeyItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1640,7 +1252,7 @@ func (m *ReplaceLockByKeyItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OldLockTs |= uint64(b&0x7F) << shift + m.OldLockTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1659,7 +1271,7 @@ func (m *ReplaceLockByKeyItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewLockTs |= uint64(b&0x7F) << shift + m.NewLockTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1670,13 +1282,12 @@ func (m *ReplaceLockByKeyItem) 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 } } @@ -1701,7 +1312,7 @@ func (m *ReplaceLocksByKeysRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1729,7 +1340,7 @@ func (m *ReplaceLocksByKeysRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1738,9 +1349,6 @@ func (m *ReplaceLocksByKeysRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1755,13 +1363,12 @@ func (m *ReplaceLocksByKeysRequest) 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 } } @@ -1786,7 +1393,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 } @@ -1814,7 +1421,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 } @@ -1833,7 +1440,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 } @@ -1842,9 +1449,6 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1866,7 +1470,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 } @@ -1875,9 +1479,6 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1894,13 +1495,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 } } @@ -1925,7 +1525,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 } @@ -1953,7 +1553,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 } @@ -1962,9 +1562,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1986,7 +1583,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 } @@ -2005,7 +1602,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 } @@ -2014,9 +1611,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2039,7 +1633,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2048,9 +1642,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2065,13 +1656,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 } } @@ -2084,7 +1674,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 { @@ -2116,8 +1705,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 { @@ -2134,34 +1725,96 @@ 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{ + // 588 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x5b, 0x6e, 0xd3, 0x40, + 0x14, 0xcd, 0x24, 0x69, 0x9b, 0xde, 0x44, 0xa9, 0x3b, 0xb4, 0xc5, 0x09, 0xc2, 0x0d, 0xe6, 0x27, + 0xaa, 0xa0, 0xa0, 0xf0, 0x58, 0x40, 0xda, 0x52, 0x50, 0xf9, 0x00, 0x2b, 0x3c, 0xfe, 0x2c, 0xd7, + 0xb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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, 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 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, 0x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x68, 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, + 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,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xbb, 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 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,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x67, - 0x52, 0xd1, 0x74, 0xf1, 0xd4, 0x8a, 0x16, 0x46, 0xa6, 0xe6, 0x64, 0xf5, 0xbf, 0x21, 0x68, 0xee, - 0x5d, 0xb6, 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, 0xf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, 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, +} diff --git a/pkg/disaggregated/disaggregated.pb.go b/pkg/disaggregated/disaggregated.pb.go index 17022f3e5..ca978a86b 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,53 +399,22 @@ 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"` - ConnectionId uint64 `protobuf:"varint,10,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - ConnectionAlias string `protobuf:"bytes,11,opt,name=connection_alias,json=connectionAlias,proto3" json:"connection_alias,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) -} - -var xxx_messageInfo_DisaggTaskMeta proto.InternalMessageInfo + 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"` + ConnectionId uint64 `protobuf:"varint,10,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ConnectionAlias string `protobuf:"bytes,11,opt,name=connection_alias,json=connectionAlias,proto3" json:"connection_alias,omitempty"` +} + +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 { @@ -741,45 +494,14 @@ func (m *DisaggTaskMeta) GetConnectionAlias() string { } 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 { @@ -800,44 +522,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 - } + return fileDescriptorDisaggregated, []int{13} } -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() @@ -846,13 +539,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() {} @@ -887,56 +580,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 } - return b[:n], nil + 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 + } + 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 { @@ -955,44 +701,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 { @@ -1009,45 +724,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 { @@ -1064,56 +748,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) + return fileDescriptorDisaggregated, []int{17} } -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 { @@ -1165,53 +820,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 @@ -1241,44 +867,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) -} -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() + return fileDescriptorDisaggregated, []int{19} } -func (m *CancelDisaggTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CancelDisaggTaskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CancelDisaggTaskRequest proto.InternalMessageInfo func (m *CancelDisaggTaskRequest) GetMeta() *DisaggTaskMeta { if m != nil { @@ -1288,89 +885,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 - } + return fileDescriptorDisaggregated, []int{21} } -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 { @@ -1401,52 +940,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 { @@ -1501,92 +1009,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{ - // 1189 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5b, 0x72, 0x1b, 0x45, - 0x17, 0xf6, 0x44, 0xb2, 0x34, 0x3a, 0x23, 0xe7, 0xd2, 0xc9, 0x1f, 0x8f, 0x9d, 0x3f, 0xc6, 0x0c, - 0x54, 0xa1, 0xbc, 0xb8, 0x2a, 0x76, 0x80, 0xaa, 0x14, 0x84, 0xca, 0x15, 0x0b, 0x1c, 0x62, 0xda, - 0x26, 0xc5, 0xd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xb9, 0x16, 0xfc, 0xf2, 0x72, 0x2d, 0xf8, 0xf5, 0xe5, 0x5a, - 0xf0, 0xdd, 0x6f, 0x6b, 0x0b, 0x70, 0x59, 0xc8, 0xd1, 0x86, 0xce, 0x8b, 0xe3, 0x8d, 0xe2, 0xd8, - 0xfe, 0xb5, 0x3c, 0xe8, 0xd8, 0x9f, 0xad, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xd8, 0xe8, - 0x1d, 0xa9, 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 } @@ -1594,98 +1020,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 } @@ -1693,26 +1087,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 } @@ -1720,26 +1105,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 } @@ -1747,33 +1123,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 } @@ -1781,43 +1147,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 } @@ -1825,38 +1181,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 } @@ -1864,33 +1209,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 } @@ -1898,38 +1233,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 } @@ -1937,26 +1261,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 } @@ -1964,47 +1279,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 } @@ -2012,38 +1315,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 } @@ -2051,85 +1343,74 @@ 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 len(m.ConnectionAlias) > 0 { - i -= len(m.ConnectionAlias) - copy(dAtA[i:], m.ConnectionAlias) - i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.ConnectionAlias))) - i-- - dAtA[i] = 0x5a + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.StartTs)) } - if m.ConnectionId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ConnectionId)) - i-- - dAtA[i] = 0x50 + 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 m.TaskId != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.TaskId)) } 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 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.ExecutorId))) + i += copy(dAtA[i:], m.ExecutorId) } - if m.TaskId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x28 + if m.KeyspaceId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.KeyspaceId)) } - if m.LocalQueryId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.LocalQueryId)) - i-- - dAtA[i] = 0x20 + if m.ApiVersion != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ApiVersion)) } - if m.ServerId != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.ServerId)) - i-- - dAtA[i] = 0x18 + if m.GatherId != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.GatherId)) } - if m.QueryTs != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.QueryTs)) - i-- - dAtA[i] = 0x10 + if m.ConnectionId != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(m.ConnectionId)) } - if m.StartTs != 0 { - i = encodeVarintDisaggregated(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if len(m.ConnectionAlias) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(m.ConnectionAlias))) + i += copy(dAtA[i:], m.ConnectionAlias) } - 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 } @@ -2137,38 +1418,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 } @@ -2176,100 +1447,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 } @@ -2277,51 +1516,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 } @@ -2329,47 +1557,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 } @@ -2377,38 +1593,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 } @@ -2416,90 +1622,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 } @@ -2507,64 +1696,50 @@ 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 } @@ -2572,38 +1747,27 @@ func (m *CancelDisaggTaskRequest) Marshal() (dAtA []byte, err error) { } 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) + var i 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 } @@ -2611,26 +1775,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 } @@ -2638,66 +1793,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 } @@ -2705,91 +1848,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 { @@ -2799,9 +1917,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 { @@ -2811,9 +1926,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 { @@ -2823,49 +1935,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) @@ -2878,76 +1969,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) @@ -2962,32 +2023,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 { @@ -3025,16 +2074,10 @@ func (m *DisaggTaskMeta) 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 *DisaggReadError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -3044,31 +2087,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 { @@ -3078,9 +2109,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 { @@ -3090,9 +2118,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 { @@ -3102,9 +2127,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) @@ -3118,16 +2140,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) @@ -3140,16 +2156,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 { @@ -3159,16 +2169,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 { @@ -3201,16 +2205,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 { @@ -3230,44 +2228,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 { @@ -3287,16 +2267,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 { @@ -3321,14 +2295,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)))) @@ -3348,7 +2326,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 } @@ -3376,7 +2354,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 } @@ -3385,9 +2363,6 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3411,7 +2386,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 } @@ -3420,9 +2395,6 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3446,7 +2418,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 } @@ -3455,9 +2427,6 @@ func (m *S3LockResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3473,13 +2442,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 } } @@ -3504,7 +2472,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 } @@ -3524,13 +2492,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 } } @@ -3555,7 +2522,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 } @@ -3575,13 +2542,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 } } @@ -3606,7 +2572,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 } @@ -3634,7 +2600,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 } @@ -3644,9 +2610,6 @@ func (m *Conflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3658,13 +2621,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 } } @@ -3689,7 +2651,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 } @@ -3717,7 +2679,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 } @@ -3726,9 +2688,6 @@ func (m *TryAddLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3751,7 +2710,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 } @@ -3770,7 +2729,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 } @@ -3781,13 +2740,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 } } @@ -3812,7 +2770,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 } @@ -3840,7 +2798,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 } @@ -3849,9 +2807,6 @@ func (m *TryAddLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3868,13 +2823,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 } } @@ -3899,7 +2853,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 } @@ -3927,7 +2881,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 } @@ -3936,9 +2890,6 @@ func (m *TryMarkDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3953,13 +2904,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 } } @@ -3984,7 +2934,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 } @@ -4012,7 +2962,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 } @@ -4021,9 +2971,6 @@ func (m *TryMarkDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4040,13 +2987,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 } } @@ -4071,7 +3017,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 } @@ -4091,13 +3037,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 } } @@ -4122,7 +3067,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 } @@ -4150,7 +3095,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 } @@ -4160,9 +3105,6 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4182,7 +3124,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 } @@ -4192,9 +3134,6 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4214,7 +3153,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 } @@ -4224,9 +3163,6 @@ func (m *DisaggS3Config) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4238,13 +3174,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 } } @@ -4269,7 +3204,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 } @@ -4297,7 +3232,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 } @@ -4306,9 +3241,6 @@ func (m *GetDisaggConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4325,13 +3257,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 } } @@ -4356,7 +3287,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 } @@ -4384,7 +3315,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 } @@ -4403,7 +3334,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 } @@ -4422,7 +3353,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 } @@ -4441,7 +3372,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 } @@ -4460,7 +3391,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 } @@ -4479,7 +3410,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 } @@ -4489,9 +3420,6 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4511,7 +3439,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 } @@ -4530,7 +3458,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 } @@ -4549,7 +3477,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 } @@ -4568,7 +3496,7 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConnectionId |= uint64(b&0x7F) << shift + m.ConnectionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4587,7 +3515,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 } @@ -4597,9 +3525,6 @@ func (m *DisaggTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4611,13 +3536,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 } } @@ -4642,7 +3566,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 } @@ -4670,7 +3594,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 } @@ -4689,7 +3613,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 } @@ -4699,9 +3623,6 @@ func (m *DisaggReadError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4713,13 +3634,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 } } @@ -4744,7 +3664,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 } @@ -4772,7 +3692,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 } @@ -4781,9 +3701,6 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4807,7 +3724,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 } @@ -4816,9 +3733,6 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4842,7 +3756,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 } @@ -4851,9 +3765,6 @@ func (m *EstablishDisaggTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4869,13 +3780,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 } } @@ -4900,7 +3810,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 } @@ -4928,7 +3838,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 } @@ -4938,9 +3848,6 @@ func (m *ErrorRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4958,7 +3865,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 } @@ -4975,7 +3882,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 } @@ -4984,23 +3891,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 { @@ -5012,7 +3905,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 } @@ -5028,13 +3921,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 } } @@ -5059,7 +3951,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 } @@ -5087,7 +3979,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 } @@ -5097,9 +3989,6 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5119,7 +4008,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 } @@ -5128,9 +4017,6 @@ func (m *ErrorLocked) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5145,13 +4031,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 } } @@ -5176,7 +4061,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 } @@ -5204,7 +4089,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 } @@ -5223,7 +4108,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 } @@ -5233,9 +4118,6 @@ func (m *ErrorOther) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5247,13 +4129,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 } } @@ -5278,7 +4159,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 } @@ -5306,7 +4187,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 } @@ -5315,9 +4196,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5342,7 +4220,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 } @@ -5352,9 +4230,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5374,7 +4249,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 } @@ -5393,7 +4268,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 } @@ -5402,9 +4277,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5427,7 +4299,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 } @@ -5446,7 +4318,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 } @@ -5455,9 +4327,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5480,7 +4349,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 } @@ -5489,9 +4358,6 @@ func (m *EstablishDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5506,13 +4372,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 } } @@ -5537,7 +4402,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 } @@ -5565,7 +4430,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 } @@ -5574,9 +4439,6 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5601,7 +4463,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 } @@ -5620,7 +4482,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 } @@ -5629,9 +4491,6 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5656,7 +4515,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 } @@ -5665,9 +4524,6 @@ func (m *EstablishDisaggTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5680,13 +4536,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 } } @@ -5711,7 +4566,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 } @@ -5739,7 +4594,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 } @@ -5748,9 +4603,6 @@ func (m *CancelDisaggTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5767,13 +4619,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 } } @@ -5798,7 +4649,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 } @@ -5818,13 +4669,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 } } @@ -5849,7 +4699,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 } @@ -5877,7 +4727,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 } @@ -5886,9 +4736,6 @@ func (m *FetchDisaggPagesRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5913,7 +4760,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 } @@ -5932,7 +4779,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 } @@ -5949,7 +4796,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 } @@ -5966,7 +4813,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 } @@ -5975,23 +4822,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 { @@ -6003,7 +4836,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 } @@ -6019,13 +4852,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 } } @@ -6050,7 +4882,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 } @@ -6078,7 +4910,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 } @@ -6087,9 +4919,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6114,7 +4943,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 } @@ -6123,9 +4952,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6146,7 +4972,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 } @@ -6155,9 +4981,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6178,7 +5001,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 } @@ -6187,9 +5010,6 @@ func (m *PagesPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDisaggregated } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDisaggregated - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6202,13 +5022,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 } } @@ -6221,7 +5040,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 { @@ -6253,8 +5071,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 { @@ -6271,34 +5091,134 @@ 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{ + // 1190 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5b, 0x72, 0x1b, 0x45, + 0x17, 0xf6, 0x44, 0xb2, 0x34, 0x3a, 0x23, 0xe7, 0xd2, 0xc9, 0x1f, 0x8f, 0x9d, 0x3f, 0xc6, 0x0c, + 0x54, 0xa1, 0xbc, 0xb8, 0x2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0xd0, 0x85, 0x45, 0x94, 0x52, 0xc8, 0xa4, + 0x07, 0x5d, 0xef, 0x4d, 0x02, 0x10, 0x36, 0x57, 0x24, 0x09, 0x84, 0x8d, 0x1e, 0xb9, 0x0e, 0x1d, + 0x89, 0x4c, 0x89, 0xca, 0x46, 0xd3, 0xa3, 0x1e, 0x25, 0xc7, 0x70, 0x65, 0x5f, 0x9e, 0xdc, 0xe7, + 0xdc, 0x85, 0x7e, 0x34, 0x41, 0xa5, 0x49, 0x02, 0x4b, 0x9c, 0x69, 0x96, 0xbd, 0x28, 0x4a, 0xcc, + 0x46, 0x78, 0x62, 0x75, 0xfa, 0x34, 0x32, 0xe4, 0x93, 0xa2, 0xc4, 0x4f, 0xf1, 0xc4, 0xc8, 0x94, + 0x22, 0x1f, 0x65, 0x4a, 0x0b, 0x89, 0x59, 0xc1, 0xad, 0xe3, 0x6d, 0x1a, 0x19, 0x72, 0xcf, 0x70, + 0x29, 0x27, 0x2b, 0x10, 0x3a, 0x19, 0x3c, 0x8a, 0xdb, 0xf6, 0xb8, 0x6b, 0x8f, 0xf1, 0x28, 0x49, + 0x81, 0x9c, 0xbe, 0x57, 0xd5, 0xa2, 0x52, 0x48, 0xb6, 0x8c, 0x97, 0x26, 0xfd, 0x3e, 0xe7, 0x37, + 0xe6, 0x73, 0x7e, 0xaa, 0x42, 0xd4, 0x8b, 0x26, 0x77, 0xe1, 0xda, 0xbe, 0x3c, 0x79, 0xca, 0xe4, + 0xe8, 0x11, 0x96, 0xa8, 0xf1, 0x35, 0xa2, 0x48, 0x76, 0xe0, 0x7f, 0x73, 0xba, 0xff, 0xc6, 0x93, + 0x18, 0xae, 0x7f, 0x8c, 0xfa, 0x91, 0x15, 0x34, 0x99, 0x2f, 0x86, 0xde, 0x97, 0xe4, 0x4b, 0xb8, + 0xe8, 0xe8, 0xbd, 0x2d, 0x77, 0x60, 0x0a, 0x72, 0x30, 0xc9, 0x47, 0xa8, 0x9b, 0x82, 0x38, 0x44, + 0x08,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0, 0x53, 0x93, 0xf1, 0x98, 0xc9, 0x02, 0x9d, 0x3f, + 0x7d, 0x3a, 0x23, 0x1e, 0x24, 0x3f, 0xbd, 0x5c, 0x0b, 0x7e, 0x79, 0xb9, 0x16, 0xfc, 0xfa, 0x72, + 0x2d, 0xf8, 0xee, 0xb7, 0xb5, 0x05, 0xb8, 0x2c, 0xe4, 0x70, 0x43, 0x17, 0xa3, 0xe3, 0x8d, 0xd1, + 0xb1, 0xfd, 0x6b, 0x79, 0xd0, 0xb1, 0x3f, 0x5b, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0x3b, 0xee, + 0x70, 0x8d, 0xa9, 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 bd4fd2eda..fd5e6e06b 100644 --- a/pkg/encryptionpb/encryptionpb.pb.go +++ b/pkg/encryptionpb/encryptionpb.pb.go @@ -1,13 +1,38 @@ // 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 + AzureKms + GcpKms + AwsKms + EncryptedContent + FileEncryptionInfo + PlainTextDataKey + MasterKeyBased +*/ package encryptionpb import ( "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" @@ -22,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 EncryptionMethod int32 @@ -43,7 +68,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 +80,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 +116,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 +147,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 +171,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 +209,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 +239,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 +254,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 +295,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 + } + case *MasterKey_File: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.File); err != nil { + return err } - return b[:n], nil + 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 { @@ -571,48 +428,17 @@ type MasterKeyKms struct { // KMS endpoint. Normally not needed. Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // optional, used to set up azure master key backend - AzureKms *AzureKms `protobuf:"bytes,5,opt,name=azure_kms,json=azureKms,proto3" json:"azure_kms,omitempty"` + AzureKms *AzureKms `protobuf:"bytes,5,opt,name=azure_kms,json=azureKms" json:"azure_kms,omitempty"` // optional, used to set up gcp master key backend - GcpKms *GcpKms `protobuf:"bytes,6,opt,name=gcp_kms,json=gcpKms,proto3" json:"gcp_kms,omitempty"` + GcpKms *GcpKms `protobuf:"bytes,6,opt,name=gcp_kms,json=gcpKms" json:"gcp_kms,omitempty"` // optional, used to set up aws master key backend - AwsKms *AwsKms `protobuf:"bytes,7,opt,name=aws_kms,json=awsKms,proto3" json:"aws_kms,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) + AwsKms *AwsKms `protobuf:"bytes,7,opt,name=aws_kms,json=awsKms" json:"aws_kms,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 { @@ -670,48 +496,17 @@ type AzureKms struct { // Key vault to encrypt/decrypt data key. KeyVaultUrl string `protobuf:"bytes,4,opt,name=key_vault_url,json=keyVaultUrl,proto3" json:"key_vault_url,omitempty"` // optional hsm used to generate data key - HsmName string `protobuf:"bytes,5,opt,name=hsm_name,json=hsmName,proto3" json:"hsm_name,omitempty"` - HsmUrl string `protobuf:"bytes,6,opt,name=hsm_url,json=hsmUrl,proto3" json:"hsm_url,omitempty"` - ClientCertificate string `protobuf:"bytes,7,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` - ClientCertificatePath string `protobuf:"bytes,8,opt,name=client_certificate_path,json=clientCertificatePath,proto3" json:"client_certificate_path,omitempty"` - ClientCertificatePassword string `protobuf:"bytes,9,opt,name=client_certificate_password,json=clientCertificatePassword,proto3" json:"client_certificate_password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AzureKms) Reset() { *m = AzureKms{} } -func (m *AzureKms) String() string { return proto.CompactTextString(m) } -func (*AzureKms) ProtoMessage() {} -func (*AzureKms) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{9} -} -func (m *AzureKms) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AzureKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AzureKms.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AzureKms) XXX_Merge(src proto.Message) { - xxx_messageInfo_AzureKms.Merge(m, src) -} -func (m *AzureKms) XXX_Size() int { - return m.Size() -} -func (m *AzureKms) XXX_DiscardUnknown() { - xxx_messageInfo_AzureKms.DiscardUnknown(m) + HsmName string `protobuf:"bytes,5,opt,name=hsm_name,json=hsmName,proto3" json:"hsm_name,omitempty"` + HsmUrl string `protobuf:"bytes,6,opt,name=hsm_url,json=hsmUrl,proto3" json:"hsm_url,omitempty"` + ClientCertificate string `protobuf:"bytes,7,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` + ClientCertificatePath string `protobuf:"bytes,8,opt,name=client_certificate_path,json=clientCertificatePath,proto3" json:"client_certificate_path,omitempty"` + ClientCertificatePassword string `protobuf:"bytes,9,opt,name=client_certificate_password,json=clientCertificatePassword,proto3" json:"client_certificate_password,omitempty"` } -var xxx_messageInfo_AzureKms proto.InternalMessageInfo +func (m *AzureKms) Reset() { *m = AzureKms{} } +func (m *AzureKms) String() string { return proto.CompactTextString(m) } +func (*AzureKms) ProtoMessage() {} +func (*AzureKms) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{9} } func (m *AzureKms) GetTenantId() string { if m != nil { @@ -777,44 +572,13 @@ func (m *AzureKms) GetClientCertificatePassword() string { } type GcpKms struct { - Credential string `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GcpKms) Reset() { *m = GcpKms{} } -func (m *GcpKms) String() string { return proto.CompactTextString(m) } -func (*GcpKms) ProtoMessage() {} -func (*GcpKms) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{10} -} -func (m *GcpKms) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GcpKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GcpKms.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GcpKms) XXX_Merge(src proto.Message) { - xxx_messageInfo_GcpKms.Merge(m, src) -} -func (m *GcpKms) XXX_Size() int { - return m.Size() -} -func (m *GcpKms) XXX_DiscardUnknown() { - xxx_messageInfo_GcpKms.DiscardUnknown(m) + Credential string `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` } -var xxx_messageInfo_GcpKms proto.InternalMessageInfo +func (m *GcpKms) Reset() { *m = GcpKms{} } +func (m *GcpKms) String() string { return proto.CompactTextString(m) } +func (*GcpKms) ProtoMessage() {} +func (*GcpKms) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{10} } func (m *GcpKms) GetCredential() string { if m != nil { @@ -824,45 +588,14 @@ func (m *GcpKms) GetCredential() string { } type AwsKms struct { - AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AwsKms) Reset() { *m = AwsKms{} } -func (m *AwsKms) String() string { return proto.CompactTextString(m) } -func (*AwsKms) ProtoMessage() {} -func (*AwsKms) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{11} -} -func (m *AwsKms) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AwsKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AwsKms.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AwsKms) XXX_Merge(src proto.Message) { - xxx_messageInfo_AwsKms.Merge(m, src) -} -func (m *AwsKms) XXX_Size() int { - return m.Size() -} -func (m *AwsKms) XXX_DiscardUnknown() { - xxx_messageInfo_AwsKms.DiscardUnknown(m) + AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` } -var xxx_messageInfo_AwsKms proto.InternalMessageInfo +func (m *AwsKms) Reset() { *m = AwsKms{} } +func (m *AwsKms) String() string { return proto.CompactTextString(m) } +func (*AwsKms) ProtoMessage() {} +func (*AwsKms) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{11} } func (m *AwsKms) GetAccessKey() string { if m != nil { @@ -882,53 +615,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{12} -} -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{12} } func (m *EncryptedContent) GetMetadata() map[string][]byte { if m != nil { @@ -975,44 +677,13 @@ type FileEncryptionInfo struct { // iv to encrypt the file by data key FileIv []byte `protobuf:"bytes,4,opt,name=file_iv,json=fileIv,proto3" json:"file_iv,omitempty"` // file checksum after encryption, optional if using GCM - Checksum []byte `protobuf:"bytes,5,opt,name=checksum,proto3" json:"checksum,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FileEncryptionInfo) Reset() { *m = FileEncryptionInfo{} } -func (m *FileEncryptionInfo) String() string { return proto.CompactTextString(m) } -func (*FileEncryptionInfo) ProtoMessage() {} -func (*FileEncryptionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{13} -} -func (m *FileEncryptionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FileEncryptionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FileEncryptionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FileEncryptionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileEncryptionInfo.Merge(m, src) -} -func (m *FileEncryptionInfo) XXX_Size() int { - return m.Size() -} -func (m *FileEncryptionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_FileEncryptionInfo.DiscardUnknown(m) + Checksum []byte `protobuf:"bytes,5,opt,name=checksum,proto3" json:"checksum,omitempty"` } -var xxx_messageInfo_FileEncryptionInfo proto.InternalMessageInfo +func (m *FileEncryptionInfo) Reset() { *m = FileEncryptionInfo{} } +func (m *FileEncryptionInfo) String() string { return proto.CompactTextString(m) } +func (*FileEncryptionInfo) ProtoMessage() {} +func (*FileEncryptionInfo) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{13} } type isFileEncryptionInfo_Mode interface { isFileEncryptionInfo_Mode() @@ -1021,10 +692,10 @@ type isFileEncryptionInfo_Mode interface { } type FileEncryptionInfo_PlainTextDataKey struct { - PlainTextDataKey *PlainTextDataKey `protobuf:"bytes,1,opt,name=plain_text_data_key,json=plainTextDataKey,proto3,oneof" json:"plain_text_data_key,omitempty"` + PlainTextDataKey *PlainTextDataKey `protobuf:"bytes,1,opt,name=plain_text_data_key,json=plainTextDataKey,oneof"` } type FileEncryptionInfo_MasterKeyBased struct { - MasterKeyBased *MasterKeyBased `protobuf:"bytes,2,opt,name=master_key_based,json=masterKeyBased,proto3,oneof" json:"master_key_based,omitempty"` + MasterKeyBased *MasterKeyBased `protobuf:"bytes,2,opt,name=master_key_based,json=masterKeyBased,oneof"` } func (*FileEncryptionInfo_PlainTextDataKey) isFileEncryptionInfo_Mode() {} @@ -1072,95 +743,99 @@ func (m *FileEncryptionInfo) GetChecksum() []byte { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*FileEncryptionInfo) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*FileEncryptionInfo) 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 _FileEncryptionInfo_OneofMarshaler, _FileEncryptionInfo_OneofUnmarshaler, _FileEncryptionInfo_OneofSizer, []interface{}{ (*FileEncryptionInfo_PlainTextDataKey)(nil), (*FileEncryptionInfo_MasterKeyBased)(nil), } } -// not recommended in production. -// user needs to pass back the same data key for restore. -type PlainTextDataKey struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlainTextDataKey) Reset() { *m = PlainTextDataKey{} } -func (m *PlainTextDataKey) String() string { return proto.CompactTextString(m) } -func (*PlainTextDataKey) ProtoMessage() {} -func (*PlainTextDataKey) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{14} -} -func (m *PlainTextDataKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PlainTextDataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PlainTextDataKey.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func _FileEncryptionInfo_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*FileEncryptionInfo) + // mode + switch x := m.Mode.(type) { + case *FileEncryptionInfo_PlainTextDataKey: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PlainTextDataKey); err != nil { + return err } - return b[:n], nil + case *FileEncryptionInfo_MasterKeyBased: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.MasterKeyBased); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("FileEncryptionInfo.Mode has unexpected type %T", x) } + return nil } -func (m *PlainTextDataKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlainTextDataKey.Merge(m, src) -} -func (m *PlainTextDataKey) XXX_Size() int { - return m.Size() + +func _FileEncryptionInfo_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*FileEncryptionInfo) + switch tag { + case 1: // mode.plain_text_data_key + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(PlainTextDataKey) + err := b.DecodeMessage(msg) + m.Mode = &FileEncryptionInfo_PlainTextDataKey{msg} + return true, err + case 2: // mode.master_key_based + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyBased) + err := b.DecodeMessage(msg) + m.Mode = &FileEncryptionInfo_MasterKeyBased{msg} + return true, err + default: + return false, nil + } +} + +func _FileEncryptionInfo_OneofSizer(msg proto.Message) (n int) { + m := msg.(*FileEncryptionInfo) + // mode + switch x := m.Mode.(type) { + case *FileEncryptionInfo_PlainTextDataKey: + s := proto.Size(x.PlainTextDataKey) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *FileEncryptionInfo_MasterKeyBased: + s := proto.Size(x.MasterKeyBased) + 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 *PlainTextDataKey) XXX_DiscardUnknown() { - xxx_messageInfo_PlainTextDataKey.DiscardUnknown(m) + +// not recommended in production. +// user needs to pass back the same data key for restore. +type PlainTextDataKey struct { } -var xxx_messageInfo_PlainTextDataKey proto.InternalMessageInfo +func (m *PlainTextDataKey) Reset() { *m = PlainTextDataKey{} } +func (m *PlainTextDataKey) String() string { return proto.CompactTextString(m) } +func (*PlainTextDataKey) ProtoMessage() {} +func (*PlainTextDataKey) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{14} } type MasterKeyBased struct { // encrypted data key with metadata - DataKeyEncryptedContent []*EncryptedContent `protobuf:"bytes,1,rep,name=data_key_encrypted_content,json=dataKeyEncryptedContent,proto3" json:"data_key_encrypted_content,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MasterKeyBased) Reset() { *m = MasterKeyBased{} } -func (m *MasterKeyBased) String() string { return proto.CompactTextString(m) } -func (*MasterKeyBased) ProtoMessage() {} -func (*MasterKeyBased) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{15} -} -func (m *MasterKeyBased) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MasterKeyBased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MasterKeyBased.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MasterKeyBased) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterKeyBased.Merge(m, src) -} -func (m *MasterKeyBased) XXX_Size() int { - return m.Size() -} -func (m *MasterKeyBased) XXX_DiscardUnknown() { - xxx_messageInfo_MasterKeyBased.DiscardUnknown(m) + DataKeyEncryptedContent []*EncryptedContent `protobuf:"bytes,1,rep,name=data_key_encrypted_content,json=dataKeyEncryptedContent" json:"data_key_encrypted_content,omitempty"` } -var xxx_messageInfo_MasterKeyBased proto.InternalMessageInfo +func (m *MasterKeyBased) Reset() { *m = MasterKeyBased{} } +func (m *MasterKeyBased) String() string { return proto.CompactTextString(m) } +func (*MasterKeyBased) ProtoMessage() {} +func (*MasterKeyBased) Descriptor() ([]byte, []int) { return fileDescriptorEncryptionpb, []int{15} } func (m *MasterKeyBased) GetDataKeyEncryptedContent() []*EncryptedContent { if m != nil { @@ -1170,14 +845,11 @@ func (m *MasterKeyBased) GetDataKeyEncryptedContent() []*EncryptedContent { } 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") @@ -1186,97 +858,15 @@ func init() { proto.RegisterType((*GcpKms)(nil), "encryptionpb.GcpKms") proto.RegisterType((*AwsKms)(nil), "encryptionpb.AwsKms") proto.RegisterType((*EncryptedContent)(nil), "encryptionpb.EncryptedContent") - proto.RegisterMapType((map[string][]byte)(nil), "encryptionpb.EncryptedContent.MetadataEntry") proto.RegisterType((*FileEncryptionInfo)(nil), "encryptionpb.FileEncryptionInfo") proto.RegisterType((*PlainTextDataKey)(nil), "encryptionpb.PlainTextDataKey") proto.RegisterType((*MasterKeyBased)(nil), "encryptionpb.MasterKeyBased") + proto.RegisterEnum("encryptionpb.EncryptionMethod", EncryptionMethod_name, EncryptionMethod_value) } - -func init() { proto.RegisterFile("encryptionpb.proto", fileDescriptor_a483860494a778a2) } - -var fileDescriptor_a483860494a778a2 = []byte{ - // 1190 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xcf, 0x92, 0xdb, 0xc4, - 0x13, 0xb6, 0xb4, 0xb6, 0x6c, 0xb5, 0xff, 0xc4, 0x99, 0xdf, 0x26, 0xeb, 0x38, 0x3f, 0x8c, 0x4b, - 0x21, 0xe0, 0x0a, 0x89, 0xa9, 0x38, 0xb0, 0x24, 0x50, 0x50, 0xec, 0x26, 0x0b, 0x76, 0x99, 0x75, - 0xb6, 0xb4, 0x1b, 0xa0, 0x8a, 0x83, 0x6a, 0x56, 0xea, 0xd8, 0x2a, 0x5b, 0x92, 0x4b, 0x1a, 0x7b, - 0x63, 0xce, 0x3c, 0x04, 0x1c, 0xe1, 0xc4, 0x2b, 0x50, 0x5c, 0x38, 0x72, 0xe4, 0xc8, 0x91, 0x0a, - 0x17, 0x1e, 0x83, 0x9a, 0x19, 0x59, 0xb6, 0x76, 0xbd, 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f6, 0x2c, - 0xa1, 0xd2, 0x5b, 0x0a, 0x00, 0x00, -} - 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 } @@ -1284,38 +874,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 } @@ -1323,43 +903,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 } @@ -1367,52 +937,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 } @@ -1420,53 +983,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 } @@ -1474,55 +1027,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 } @@ -1530,98 +1077,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 } @@ -1629,26 +1144,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 } @@ -1656,33 +1162,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 } @@ -1690,90 +1186,71 @@ 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 m.AwsKms != nil { - { - size, err := m.AwsKms.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a + 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.GcpKms != nil { - { - size, err := m.GcpKms.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 + if len(m.KeyId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyId))) + i += copy(dAtA[i:], m.KeyId) } - if m.AzureKms != nil { - { - size, err := m.AzureKms.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if len(m.Region) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Region))) + i += copy(dAtA[i:], m.Region) } 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 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - 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 + if m.AzureKms != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.AzureKms.Size())) + n7, err := m.AzureKms.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } - 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 m.GcpKms != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.GcpKms.Size())) + n8, err := m.GcpKms.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } - 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 m.AwsKms != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.AwsKms.Size())) + n9, err := m.AwsKms.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - return len(dAtA) - i, nil + return i, nil } func (m *AzureKms) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1781,89 +1258,71 @@ func (m *AzureKms) Marshal() (dAtA []byte, err error) { } func (m *AzureKms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AzureKms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.ClientCertificatePassword) > 0 { - i -= len(m.ClientCertificatePassword) - copy(dAtA[i:], m.ClientCertificatePassword) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientCertificatePassword))) - i-- - dAtA[i] = 0x4a + if len(m.TenantId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.TenantId))) + i += copy(dAtA[i:], m.TenantId) } - if len(m.ClientCertificatePath) > 0 { - i -= len(m.ClientCertificatePath) - copy(dAtA[i:], m.ClientCertificatePath) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientCertificatePath))) - i-- - dAtA[i] = 0x42 + if len(m.ClientId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientId))) + i += copy(dAtA[i:], m.ClientId) } - if len(m.ClientCertificate) > 0 { - i -= len(m.ClientCertificate) - copy(dAtA[i:], m.ClientCertificate) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientCertificate))) - i-- - dAtA[i] = 0x3a + if len(m.ClientSecret) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientSecret))) + i += copy(dAtA[i:], m.ClientSecret) } - if len(m.HsmUrl) > 0 { - i -= len(m.HsmUrl) - copy(dAtA[i:], m.HsmUrl) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.HsmUrl))) - i-- - dAtA[i] = 0x32 + if len(m.KeyVaultUrl) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyVaultUrl))) + i += copy(dAtA[i:], m.KeyVaultUrl) } if len(m.HsmName) > 0 { - i -= len(m.HsmName) - copy(dAtA[i:], m.HsmName) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.HsmName))) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.HsmName))) + i += copy(dAtA[i:], m.HsmName) } - if len(m.KeyVaultUrl) > 0 { - i -= len(m.KeyVaultUrl) - copy(dAtA[i:], m.KeyVaultUrl) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyVaultUrl))) - i-- - dAtA[i] = 0x22 + if len(m.HsmUrl) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.HsmUrl))) + i += copy(dAtA[i:], m.HsmUrl) } - if len(m.ClientSecret) > 0 { - i -= len(m.ClientSecret) - copy(dAtA[i:], m.ClientSecret) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientSecret))) - i-- - dAtA[i] = 0x1a + if len(m.ClientCertificate) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientCertificate))) + i += copy(dAtA[i:], m.ClientCertificate) } - if len(m.ClientId) > 0 { - i -= len(m.ClientId) - copy(dAtA[i:], m.ClientId) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientId))) - i-- - dAtA[i] = 0x12 + if len(m.ClientCertificatePath) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientCertificatePath))) + i += copy(dAtA[i:], m.ClientCertificatePath) } - if len(m.TenantId) > 0 { - i -= len(m.TenantId) - copy(dAtA[i:], m.TenantId) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.TenantId))) - i-- - dAtA[i] = 0xa + if len(m.ClientCertificatePassword) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.ClientCertificatePassword))) + i += copy(dAtA[i:], m.ClientCertificatePassword) } - return len(dAtA) - i, nil + return i, nil } func (m *GcpKms) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1871,33 +1330,23 @@ func (m *GcpKms) Marshal() (dAtA []byte, err error) { } func (m *GcpKms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GcpKms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.Credential) > 0 { - i -= len(m.Credential) - copy(dAtA[i:], m.Credential) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Credential))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Credential))) + i += copy(dAtA[i:], m.Credential) } - return len(dAtA) - i, nil + return i, nil } func (m *AwsKms) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1905,40 +1354,29 @@ func (m *AwsKms) Marshal() (dAtA []byte, err error) { } func (m *AwsKms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AwsKms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.AccessKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.AccessKey))) + i += copy(dAtA[i:], m.AccessKey) } if len(m.SecretAccessKey) > 0 { - i -= len(m.SecretAccessKey) - copy(dAtA[i:], m.SecretAccessKey) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.SecretAccessKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.SecretAccessKey))) + i += copy(dAtA[i:], m.SecretAccessKey) } - if len(m.AccessKey) > 0 { - i -= len(m.AccessKey) - copy(dAtA[i:], m.AccessKey) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.AccessKey))) - i-- - dAtA[i] = 0xa - } - 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 } @@ -1946,80 +1384,68 @@ 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())) + n10, err := m.MasterKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n10 + } + 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 (m *FileEncryptionInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2027,96 +1453,69 @@ func (m *FileEncryptionInfo) Marshal() (dAtA []byte, err error) { } func (m *FileEncryptionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FileEncryptionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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 != nil { + nn11, err := m.Mode.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += nn11 } - if len(m.Checksum) > 0 { - i -= len(m.Checksum) - copy(dAtA[i:], m.Checksum) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Checksum))) - i-- - dAtA[i] = 0x2a + if m.EncryptionMethod != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.EncryptionMethod)) } if len(m.FileIv) > 0 { - i -= len(m.FileIv) - copy(dAtA[i:], m.FileIv) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.FileIv))) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.FileIv))) + i += copy(dAtA[i:], m.FileIv) } - if m.EncryptionMethod != 0 { - i = encodeVarintEncryptionpb(dAtA, i, uint64(m.EncryptionMethod)) - i-- - dAtA[i] = 0x18 - } - if m.Mode != nil { - { - size := m.Mode.Size() - i -= size - if _, err := m.Mode.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } + if len(m.Checksum) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Checksum))) + i += copy(dAtA[i:], m.Checksum) } - return len(dAtA) - i, nil + return i, nil } func (m *FileEncryptionInfo_PlainTextDataKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FileEncryptionInfo_PlainTextDataKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.PlainTextDataKey != nil { - { - size, err := m.PlainTextDataKey.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.PlainTextDataKey.Size())) + n12, err := m.PlainTextDataKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - return len(dAtA) - i, nil + return i, nil } func (m *FileEncryptionInfo_MasterKeyBased) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FileEncryptionInfo_MasterKeyBased) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.MasterKeyBased != nil { - { - size, err := m.MasterKeyBased.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.MasterKeyBased.Size())) + n13, err := m.MasterKeyBased.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - return len(dAtA) - i, nil + return i, nil } func (m *PlainTextDataKey) Marshal() (dAtA []byte, err error) { 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,26 +1523,17 @@ func (m *PlainTextDataKey) Marshal() (dAtA []byte, err error) { } func (m *PlainTextDataKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PlainTextDataKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + 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 *MasterKeyBased) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2151,51 +1541,35 @@ func (m *MasterKeyBased) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyBased) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKeyBased) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.DataKeyEncryptedContent) > 0 { - for iNdEx := len(m.DataKeyEncryptedContent) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DataKeyEncryptedContent[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.DataKeyEncryptedContent { dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(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 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 { @@ -2205,16 +1579,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 { @@ -2227,16 +1595,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 { @@ -2252,16 +1614,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) @@ -2277,16 +1633,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 { @@ -2305,31 +1655,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 { @@ -2339,9 +1677,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 { @@ -2351,9 +1686,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 { @@ -2363,37 +1695,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) @@ -2424,16 +1741,10 @@ func (m *MasterKeyKms) Size() (n int) { l = m.AwsKms.Size() n += 1 + l + sovEncryptionpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AzureKms) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.TenantId) @@ -2472,32 +1783,20 @@ func (m *AzureKms) 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 *GcpKms) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Credential) if l > 0 { n += 1 + l + sovEncryptionpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *AwsKms) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.AccessKey) @@ -2508,16 +1807,10 @@ func (m *AwsKms) 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 { @@ -2548,16 +1841,10 @@ 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 (m *FileEncryptionInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Mode != nil { @@ -2574,16 +1861,10 @@ func (m *FileEncryptionInfo) 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 *FileEncryptionInfo_PlainTextDataKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PlainTextDataKey != nil { @@ -2593,9 +1874,6 @@ func (m *FileEncryptionInfo_PlainTextDataKey) Size() (n int) { return n } func (m *FileEncryptionInfo_MasterKeyBased) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MasterKeyBased != nil { @@ -2605,21 +1883,12 @@ func (m *FileEncryptionInfo_MasterKeyBased) Size() (n int) { return n } func (m *PlainTextDataKey) 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 *MasterKeyBased) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.DataKeyEncryptedContent) > 0 { @@ -2628,14 +1897,18 @@ func (m *MasterKeyBased) Size() (n int) { 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)))) @@ -2655,7 +1928,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 } @@ -2683,7 +1956,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 } @@ -2702,7 +1975,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 } @@ -2711,9 +1984,6 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2728,13 +1998,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 } } @@ -2759,7 +2028,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 } @@ -2787,7 +2056,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 } @@ -2806,7 +2075,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 } @@ -2815,9 +2084,6 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2840,7 +2106,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 } @@ -2851,13 +2117,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 } } @@ -2882,7 +2147,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 } @@ -2910,7 +2175,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 } @@ -2919,9 +2184,6 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2942,7 +2204,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 } @@ -2959,7 +2221,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 } @@ -2969,9 +2231,6 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEncryptionpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -2988,7 +2247,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 } @@ -2997,7 +2256,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -3014,7 +2273,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 { @@ -3031,13 +2290,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 } } @@ -3062,7 +2320,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 } @@ -3090,7 +2348,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 } @@ -3099,9 +2357,6 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3124,7 +2379,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 } @@ -3143,7 +2398,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 } @@ -3162,7 +2417,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 } @@ -3174,13 +2429,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 } } @@ -3205,7 +2459,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 } @@ -3233,7 +2487,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 } @@ -3242,9 +2496,6 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3265,7 +2516,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 } @@ -3281,7 +2532,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 } @@ -3297,7 +2548,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 } @@ -3306,7 +2557,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -3323,7 +2574,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 { @@ -3348,7 +2599,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 } @@ -3359,13 +2610,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 } } @@ -3390,7 +2640,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 } @@ -3418,7 +2668,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 } @@ -3427,9 +2677,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3453,7 +2700,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 } @@ -3462,9 +2709,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3488,7 +2732,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 } @@ -3497,9 +2741,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3515,13 +2756,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 } } @@ -3546,7 +2786,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 } @@ -3566,13 +2806,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 } } @@ -3597,7 +2836,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 } @@ -3625,7 +2864,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 } @@ -3635,9 +2874,6 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3649,13 +2885,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 } } @@ -3680,7 +2915,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 } @@ -3708,7 +2943,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 } @@ -3718,9 +2953,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3740,7 +2972,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 } @@ -3750,9 +2982,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3772,7 +3001,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 } @@ -3782,9 +3011,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3804,7 +3030,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 } @@ -3814,9 +3040,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3836,7 +3059,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3845,9 +3068,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3872,7 +3092,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3881,9 +3101,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3908,7 +3125,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3917,9 +3134,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3936,13 +3150,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 } } @@ -3967,7 +3180,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3995,7 +3208,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4005,9 +3218,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4027,7 +3237,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4037,9 +3247,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4059,7 +3266,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4069,9 +3276,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4091,7 +3295,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4101,9 +3305,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4123,7 +3324,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4133,9 +3334,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4155,7 +3353,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4165,9 +3363,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4187,7 +3382,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4197,9 +3392,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4219,7 +3411,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4229,9 +3421,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4251,7 +3440,7 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4261,9 +3450,6 @@ func (m *AzureKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4275,13 +3461,12 @@ func (m *AzureKms) 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 } } @@ -4306,7 +3491,7 @@ func (m *GcpKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4334,7 +3519,7 @@ func (m *GcpKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4344,9 +3529,6 @@ func (m *GcpKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4358,13 +3540,12 @@ func (m *GcpKms) 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 } } @@ -4389,7 +3570,7 @@ func (m *AwsKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4417,7 +3598,7 @@ func (m *AwsKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4427,9 +3608,6 @@ func (m *AwsKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4449,7 +3627,7 @@ func (m *AwsKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4459,9 +3637,6 @@ func (m *AwsKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4473,13 +3648,12 @@ func (m *AwsKms) 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 } } @@ -4504,7 +3678,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 } @@ -4532,7 +3706,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 } @@ -4541,9 +3715,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4564,7 +3735,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 } @@ -4581,7 +3752,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 } @@ -4591,9 +3762,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEncryptionpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4610,7 +3778,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 } @@ -4620,9 +3788,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -4635,7 +3800,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 { @@ -4660,7 +3825,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 } @@ -4669,9 +3834,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4694,7 +3856,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 } @@ -4703,9 +3865,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4730,7 +3889,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 } @@ -4739,9 +3898,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4764,7 +3920,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 } @@ -4773,9 +3929,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4790,13 +3943,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 } } @@ -4821,7 +3973,7 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4849,7 +4001,7 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4858,9 +4010,6 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4884,7 +4033,7 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4893,9 +4042,6 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4919,7 +4065,7 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EncryptionMethod |= EncryptionMethod(b&0x7F) << shift + m.EncryptionMethod |= (EncryptionMethod(b) & 0x7F) << shift if b < 0x80 { break } @@ -4938,7 +4084,7 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4947,9 +4093,6 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4972,7 +4115,7 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4981,9 +4124,6 @@ func (m *FileEncryptionInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4998,13 +4138,12 @@ func (m *FileEncryptionInfo) 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 } } @@ -5029,7 +4168,7 @@ func (m *PlainTextDataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5049,13 +4188,12 @@ func (m *PlainTextDataKey) 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 } } @@ -5080,7 +4218,7 @@ func (m *MasterKeyBased) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -5108,7 +4246,7 @@ func (m *MasterKeyBased) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -5117,9 +4255,6 @@ func (m *MasterKeyBased) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5134,13 +4269,12 @@ func (m *MasterKeyBased) 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 } } @@ -5153,7 +4287,6 @@ func (m *MasterKeyBased) 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 { @@ -5185,8 +4318,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 { @@ -5203,34 +4338,134 @@ 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{ + // 1190 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xcf, 0x92, 0xdb, 0xc4, + 0x13, 0xb6, 0xb4, 0xb6, 0x6c, 0xb5, 0xff, 0xc4, 0x99, 0xdf, 0x26, 0xeb, 0x38, 0x3f, 0x8c, 0x4b, + 0x21, 0xe0, 0x0a, 0x89, 0xa9, 0x38, 0xb0, 0x24, 0x50, 0x50, 0xec, 0x26, 0x0b, 0x76, 0x99, 0x75, + 0xb6, 0xb4, 0x1b, 0xa0, 0x8a, 0x83, 0x6a, 0x56, 0xea, 0xd8, 0x2a, 0x5b, 0x92, 0x4b, 0x1a, 0x7b, + 0x63, 0xce, 0x3c, 0x04, 0x1c, 0xe1, 0xc4, 0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xe2, 0x6b, 0xfc, 0xad, 0x42, 0x61, + 0x39, 0x29, 0xb9, 0x09, 0x3a, 0x43, 0x9f, 0xfa, 0x6c, 0xd9, 0x71, 0x74, 0xb3, 0x20, 0x1d, 0x3d, + 0x87, 0x07, 0xed, 0x89, 0x8b, 0x32, 0x28, 0xa5, 0x28, 0x48, 0x47, 0x4f, 0xd6, 0x93, 0x0c, 0x46, + 0x68, 0x87, 0xc8, 0x62, 0x51, 0x4a, 0xd2, 0x79, 0x2c, 0x7c, 0xc4, 0x80, 0x32, 0x57, 0x72, 0x4e, + 0x67, 0x13, 0x66, 0xcd, 0xc2, 0x49, 0xac, 0x4f, 0x71, 0x8c, 0x8b, 0x2f, 0xb8, 0xef, 0x59, 0x38, + 0x21, 0x37, 0xa0, 0x30, 0x8a, 0x3c, 0xcb, 0xa7, 0x1e, 0x0a, 0x85, 0x74, 0x33, 0x3f, 0x8a, 0xbc, + 0x01, 0xf5, 0x90, 0xec, 0x00, 0x1f, 0x0a, 0xa2, 0x26, 0x25, 0x1f, 0x45, 0x1e, 0xe7, 0xdc, 0x03, + 0x12, 0x4f, 0x6e, 0x63, 0xc8, 0xdc, 0xe7, 0xae, 0x4d, 0x19, 0x8a, 0xdd, 0xeb, 0xe6, 0x55, 0x19, + 0x79, 0xbc, 0x0a, 0x90, 0x5d, 0xd8, 0xb9, 0x08, 0xb7, 0xc4, 0x05, 0x29, 0x08, 0xce, 0xb5, 0x0b, + 0x9c, 0x23, 0xca, 0x46, 0xe4, 0x63, 0xb8, 0xb9, 0x91, 0x17, 0x45, 0x67, 0x41, 0xe8, 0xd4, 0x74, + 0xc1, 0xbd, 0xb1, 0x81, 0x2b, 0x01, 0x46, 0x0b, 0x34, 0x79, 0x56, 0xa4, 0x01, 0x60, 0x87, 0xe8, + 0xa0, 0xcf, 0x5c, 0x3a, 0x89, 0x85, 0x5e, 0xf3, 0x18, 0xc7, 0xa0, 0xc9, 0x63, 0x22, 0xaf, 0x01, + 0x50, 0xdb, 0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3b, 0x9e, 0xb7, 0xc7, + 0x73, 0xf1, 0x27, 0x78, 0xaa, 0x89, 0xcf, 0x83, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x2c, + 0xa1, 0xd2, 0x5b, 0x0a, 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, 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 @@ -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, 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, 0x3a, 0x74, 0x1b, 0x4a, 0x63, 0xcf, 0xc1, 0x0b, 0x33, 0x2f, 0x1b, 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3, 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 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, 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, 0x69, 0x1e, 0xe3, 0x9d, - 0xd7, 0xd2, 0x60, 0xe9, 0x28, 0x66, 0x1c, 0xca,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x19, 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.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, 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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 0x0d, 0xa4, + 0x8d, 0x28, 0x41, 0x84, 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 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, 0x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b, 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, 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,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x00, 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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c3, 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, + 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, 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,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, 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, 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, 0x8c, 0xae,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8b, 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, + 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 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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 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 ec1a34755..b19425f06 100644 --- a/pkg/import_sstpb/import_sstpb.pb.go +++ b/pkg/import_sstpb/import_sstpb.pb.go @@ -1,25 +1,75 @@ // 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" - brpb "github.com/pingcap/kvproto/pkg/brpb" - encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" + 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" + + encryptionpb "github.com/pingcap/kvproto/pkg/encryptionpb" + + 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,7 +81,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 @@ -44,7 +94,6 @@ var SwitchMode_name = map[int32]string{ 0: "Normal", 1: "Import", } - var SwitchMode_value = map[string]int32{ "Normal": 0, "Import": 1, @@ -53,10 +102,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 @@ -71,7 +117,6 @@ var DownloadRequestType_name = map[int32]string{ 0: "Legacy", 1: "Keyspace", } - var DownloadRequestType_value = map[string]int32{ "Legacy": 0, "Keyspace": 1, @@ -80,9 +125,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 @@ -96,7 +140,6 @@ var Pair_OP_name = map[int32]string{ 0: "Put", 1: "Delete", } - var Pair_OP_value = map[string]int32{ "Put": 0, "Delete": 1, @@ -105,10 +148,7 @@ 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{21, 0} -} +func (Pair_OP) EnumDescriptor() ([]byte, []int) { return fileDescriptorImportSstpb, []int{21, 0} } type SuspendImportRPCRequest struct { // whether to suspend new imports. @@ -118,44 +158,15 @@ 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Caller string `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"` } func (m *SuspendImportRPCRequest) Reset() { *m = SuspendImportRPCRequest{} } func (m *SuspendImportRPCRequest) String() string { return proto.CompactTextString(m) } func (*SuspendImportRPCRequest) ProtoMessage() {} func (*SuspendImportRPCRequest) Descriptor() ([]byte, []int) { - 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() + return fileDescriptorImportSstpb, []int{0} } -func (m *SuspendImportRPCRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SuspendImportRPCRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SuspendImportRPCRequest proto.InternalMessageInfo func (m *SuspendImportRPCRequest) GetShouldSuspendImports() bool { if m != nil { @@ -180,45 +191,16 @@ 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AlreadySuspended bool `protobuf:"varint,1,opt,name=already_suspended,json=alreadySuspended,proto3" json:"already_suspended,omitempty"` } func (m *SuspendImportRPCResponse) Reset() { *m = SuspendImportRPCResponse{} } func (m *SuspendImportRPCResponse) String() string { return proto.CompactTextString(m) } func (*SuspendImportRPCResponse) ProtoMessage() {} func (*SuspendImportRPCResponse) Descriptor() ([]byte, []int) { - 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) + return fileDescriptorImportSstpb, []int{1} } -var xxx_messageInfo_SuspendImportRPCResponse proto.InternalMessageInfo - func (m *SuspendImportRPCResponse) GetAlreadySuspended() bool { if m != nil { return m.AlreadySuspended @@ -227,45 +209,14 @@ 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,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) + 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{2} } func (m *SwitchModeRequest) GetMode() SwitchMode { if m != nil { @@ -282,122 +233,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{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) } -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{3} } 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) } -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{4} } 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{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) + 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{5} } func (m *GetModeResponse) GetMode() SwitchMode { if m != nil { @@ -407,45 +265,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{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) + 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{6} } func (m *Range) GetStart() []byte { if m != nil { @@ -463,12 +290,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. @@ -477,44 +304,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{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) + 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{7} } func (m *SSTMeta) GetUuid() []byte { if m != nil { @@ -603,46 +399,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{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) + 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{8} } func (m *RewriteRule) GetOldKeyPrefix() []byte { if m != nil { @@ -669,44 +434,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{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) + 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{9} } type isUploadRequest_Chunk interface { isUploadRequest_Chunk() @@ -715,10 +449,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() {} @@ -745,93 +479,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{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 +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{10} } 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{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) + 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{11} } func (m *IngestRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -848,45 +582,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{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) + 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{12} } func (m *MultiIngestRequest) GetContext() *kvrpcpb.Context { if m != nil { @@ -903,44 +606,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{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) + 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{13} } func (m *IngestResponse) GetError() *errorpb.Error { if m != nil { @@ -953,46 +625,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{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) + 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{14} } func (m *CompactRequest) GetRange() *Range { if m != nil { @@ -1016,48 +657,17 @@ 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) } -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{15} } 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,proto3" json:"ssts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + 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"` // 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. @@ -1065,7 +675,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. @@ -1080,55 +690,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{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) + 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{16} } func (m *DownloadRequest) GetSsts() map[string]*SSTMeta { if m != nil { @@ -1165,7 +744,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 } @@ -1186,7 +765,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 } @@ -1212,44 +791,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{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) + 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{17} } func (m *Error) GetMessage() string { if m != nil { @@ -1268,12 +816,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,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"` @@ -1281,44 +829,13 @@ 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,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) + Ssts []*SSTMeta `protobuf:"bytes,6,rep,name=ssts" json:"ssts,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{18} } func (m *DownloadResponse) GetRange() Range { if m != nil { @@ -1364,45 +881,16 @@ 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"` - 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{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) + return fileDescriptorImportSstpb, []int{19} } -var xxx_messageInfo_SetDownloadSpeedLimitRequest proto.InternalMessageInfo - func (m *SetDownloadSpeedLimitRequest) GetSpeedLimit() uint64 { if m != nil { return m.SpeedLimit @@ -1411,85 +899,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{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() + return fileDescriptorImportSstpb, []int{20} } -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"` - 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) + 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{21} } func (m *Pair) GetKey() []byte { if m != nil { @@ -1513,45 +941,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{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) + 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{22} } func (m *WriteBatch) GetCommitTs() uint64 { if m != nil { @@ -1571,45 +968,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{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) + 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{23} } type isWriteRequest_Chunk interface { isWriteRequest_Chunk() @@ -1618,10 +984,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() {} @@ -1655,54 +1021,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{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 +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 } - return b[:n], nil + case *WriteRequest_Batch: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Batch); err != nil { + return err + } + 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{24} } func (m *WriteResponse) GetError() *Error { if m != nil { @@ -1720,50 +1121,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{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) + 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{25} } func (m *RawWriteBatch) GetTtl() uint64 { if m != nil { @@ -1790,45 +1160,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{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) + 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{26} } type isRawWriteRequest_Chunk interface { isRawWriteRequest_Chunk() @@ -1837,10 +1176,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() {} @@ -1874,54 +1213,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{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 +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 } - return b[:n], nil + case *RawWriteRequest_Batch: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Batch); err != nil { + return err + } + 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{27} } func (m *RawWriteResponse) GetError() *Error { if m != nil { @@ -1938,51 +1312,22 @@ 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{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) + return fileDescriptorImportSstpb, []int{28} } -var xxx_messageInfo_DuplicateDetectRequest proto.InternalMessageInfo - func (m *DuplicateDetectRequest) GetContext() *kvrpcpb.Context { if m != nil { return m.Context @@ -2019,46 +1364,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{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) + 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{29} } func (m *KvPair) GetKey() []byte { if m != nil { @@ -2082,8 +1396,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: // [ @@ -2094,44 +1408,15 @@ 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{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 - } + return fileDescriptorImportSstpb, []int{30} } -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 { @@ -2180,46 +1465,15 @@ 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"` + CompressionType backup.CompressionType `protobuf:"varint,13,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` // encryption information of the kv file, not set if encryption is not enabled. - FileEncryptionInfo *encryptionpb.FileEncryptionInfo `protobuf:"bytes,14,opt,name=file_encryption_info,json=fileEncryptionInfo,proto3" json:"file_encryption_info,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) + FileEncryptionInfo *encryptionpb.FileEncryptionInfo `protobuf:"bytes,14,opt,name=file_encryption_info,json=fileEncryptionInfo" json:"file_encryption_info,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{31} } func (m *KVMeta) GetName() string { if m != nil { @@ -2305,11 +1559,11 @@ 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 } func (m *KVMeta) GetFileEncryptionInfo() *encryptionpb.FileEncryptionInfo { @@ -2321,8 +1575,8 @@ func (m *KVMeta) GetFileEncryptionInfo() *encryptionpb.FileEncryptionInfo { 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: // @@ -2334,56 +1588,25 @@ 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"` // plaintext data key to decrypt kv file if configured during log backup. - CipherInfo *brpb.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` + CipherInfo *backup.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` // master keys config used to decrypt data keys in restore if configured during log backup. - MasterKeys []*encryptionpb.MasterKey `protobuf:"bytes,14,rep,name=master_keys,json=masterKeys,proto3" json:"master_keys,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) + MasterKeys []*encryptionpb.MasterKey `protobuf:"bytes,14,rep,name=master_keys,json=masterKeys" json:"master_keys,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{32} } func (m *ApplyRequest) GetMeta() *KVMeta { if m != nil { @@ -2420,7 +1643,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 } @@ -2434,7 +1657,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 } @@ -2451,45 +1674,14 @@ func (m *ApplyRequest) GetMasterKeys() []*encryptionpb.MasterKey { 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{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) + 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{33} } func (m *ApplyResponse) GetRange() Range { if m != nil { @@ -2507,44 +1699,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{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) 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{34} } func (m *ClearRequest) GetPrefix() string { if m != nil { @@ -2554,44 +1715,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{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) + 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{35} } func (m *ClearResponse) GetError() *Error { if m != nil { @@ -2601,9 +1731,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((*SuspendImportRPCRequest)(nil), "import_sstpb.SuspendImportRPCRequest") proto.RegisterType((*SuspendImportRPCResponse)(nil), "import_sstpb.SuspendImportRPCResponse") proto.RegisterType((*SwitchModeRequest)(nil), "import_sstpb.SwitchModeRequest") @@ -2621,7 +1748,6 @@ 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") @@ -2641,154 +1767,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{ - // 2264 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x73, 0xdb, 0xc8, - 0xf1, 0x17, 0xf8, 0x66, 0xf3, 0x21, 0x7a, 0xac, 0x95, 0x61, 0xfa, 0x8d, 0xbf, 0xd7, 0x2b, 0x4b, - 0xff, 0xd0, 0x8e, 0xbc, 0x71, 0x6d, 0x6d, 0xaa, 0xe2, 0x5a, 0x3d, 0x62, 0x2b, 0xb2, 0x6c, 0x05, - 0x54, 0x9c, 0x43, 0x0e, 0x28, 0x08, 0x1c, 0x4a, 0x08, 0x41, 0x00, 0xc1, 0x0c, 0x29, 0xf3, 0x92, - 0x0f, 0x90, 0x5b, 0x6e, 0xb9, 0x26, 0xa7, 0xad, 0x7c, 0x83, 0x7c, 0x83, 0x3d, 0xe6, 0x98, 0x53, - 0x2a, 0xe5, 0xdc, 0x73, 0xc9, 0x07, 0xd8, 0xd4, 0xf4, 0x0c, 0x48, 0x00, 0xa2, 0x44, 0x5b, 0x95, - 0x9c, 0x38, 0xd3, 0xd3, 0xe8, 0xe9, 0xe9, 0xe7, 0x6f, 0x86, 0x40, 0xdc, 0x61, 0x18, 0x44, 0xdc, - 0x62, 0x8c, 0x87, 0xc7, 0x9d, 0x30, 0x0a, 0x78, 0x40, 0xea, 0x49, 0x5a, 0xbb, 0x3e, 0xa4, 0xdc, - 0x8e, 0xd7, 0xda, 0x0d, 0x1a, 0x45, 0x41, 0x34, 0x9b, 0x0e, 0xc6, 0x51, 0xe8, 0x4c, 0xa7, 0x2b, - 0x27, 0xc1, 0x49, 0x80,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, 0x93, 0xf4, - 0xec, 0xbf, 0x66, 0xf0, 0x5f, 0x43, 0x6b, 0xa6, 0xe9, 0xff, 0xd8, 0xe6, 0x7f, 0xd1, 0x60, 0x75, - 0x67, 0x14, 0x7a, 0xae, 0x63, 0x73, 0xba, 0x43, 0x39, 0x75, 0xae, 0x84, 0x57, 0x6e, 0x41, 0x15, - 0x6f, 0x01, 0x02, 0x13, 0xaa, 0xcc, 0xab, 0x20, 0x61, 0x9f, 0x4e, 0x04, 0x1c, 0x57, 0x00, 0x19, - 0x8d, 0x50, 0x37, 0x4b, 0x12, 0x16, 0x8b, 0x32, 0x26, 0x30, 0x64, 0xe0, 0x7b, 0x13, 0xac, 0x41, - 0x15, 0xb3, 0x3c, 0xa0, 0x93, 0xb7, 0xbe, 0x37, 0x21, 0x06, 0x34, 0x86, 0xae, 0x6f, 0xcd, 0x92, - 0x4c, 0x16, 0xa3, 0xda, 0xd0, 0xf5, 0xb7, 0x55, 0x9e, 0x19, 0x07, 0x50, 0xda, 0x1f, 0x7f, 0x52, - 0x19, 0x48, 0xa5, 0x6d, 0x3e, 0x9d, 0xb6, 0xc6, 0x9f, 0x35, 0xb8, 0x71, 0xce, 0x14, 0xca, 0xfc, - 0x3f, 0x9c, 0xdd, 0x0d, 0x2e, 0x41, 0x56, 0xf1, 0xb5, 0x00, 0xdd, 0xf0, 0x14, 0xaa, 0x78, 0x25, - 0x48, 0x34, 0x86, 0xb9, 0x5e, 0x13, 0x26, 0x90, 0x5f, 0xac, 0xc7, 0xc1, 0x9d, 0x47, 0xc7, 0xad, - 0xa4, 0xb9, 0xe5, 0x51, 0xe3, 0xca, 0xf1, 0xef, 0x3c, 0x94, 0xf6, 0xdf, 0xc5, 0x57, 0x2b, 0xc4, - 0x21, 0x5a, 0x02, 0x87, 0x3c, 0x80, 0x3a, 0x76, 0x0a, 0x2b, 0xe8, 0xf7, 0x19, 0xe5, 0x78, 0x55, - 0x28, 0x98, 0x35, 0xa4, 0xbd, 0x45, 0x52,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, 0xef, 0xf0, 0x54, 0x23, 0x5b, 0x50, 0xc4, - 0xba, 0x95, 0xb5, 0x64, 0xb2, 0x79, 0x65, 0x2d, 0x99, 0x2a, 0x74, 0x98, 0x28, 0x80, 0x65, 0x46, - 0xf4, 0x46, 0x96, 0x15, 0x94, 0x2c, 0x54, 0x59, 0x41, 0xa9, 0xe2, 0x64, 0x2c, 0x11, 0x07, 0x5a, - 0xd9, 0xa7, 0x7d, 0x92, 0x39, 0xcb, 0x05, 0xff, 0x46, 0xb4, 0x1f, 0x2d, 0x62, 0x8b, 0x37, 0xd9, - 0x7a, 0xf4, 0xb7, 0x6f, 0x2b, 0xda, 0x77, 0x1f, 0xee, 0x6a, 0x7f, 0xfd, 0x70, 0x57, 0xfb, 0xc7, - 0x87, 0xbb, 0xda, 0x1f, 0xfe, 0x79, 0x77, 0x09, 0x5a, 0x41, 0x74, 0xd2, 0xe1, 0xee, 0x60, 0xdc, - 0x19, 0x8c, 0xf1, 0xbf, 0x8f, 0xe3, 0x12, 0xfe, 0x3c, 0xfb, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x99, 0xc4, 0x8b, 0x0d, 0x99, 0x19, 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. @@ -2799,9 +1780,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) @@ -2842,7 +1822,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 } @@ -2851,7 +1831,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 } @@ -2859,7 +1839,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 } @@ -2894,7 +1874,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 } @@ -2903,7 +1883,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 } @@ -2912,7 +1892,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 } @@ -2921,7 +1901,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 } @@ -2929,7 +1909,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 } @@ -2963,7 +1943,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 } @@ -2998,7 +1978,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 } @@ -3006,7 +1986,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 } @@ -3039,7 +2019,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 } @@ -3048,7 +2028,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 := 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 } @@ -3057,14 +2037,15 @@ 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 := c.cc.Invoke(ctx, "/import_sstpb.ImportSST/SuspendImportRPC", in, out, opts...) + err := grpc.Invoke(ctx, "/import_sstpb.ImportSST/SuspendImportRPC", 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) @@ -3095,53 +2076,6 @@ 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) } @@ -3498,7 +2432,7 @@ var _ImportSST_serviceDesc = grpc.ServiceDesc{ func (m *SuspendImportRPCRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3506,48 +2440,38 @@ func (m *SuspendImportRPCRequest) Marshal() (dAtA []byte, err error) { } func (m *SuspendImportRPCRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SuspendImportRPCRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.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 { - i-- + dAtA[i] = 0x8 + i++ if m.ShouldSuspendImports { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x8 + 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) } - return len(dAtA) - i, nil + return i, nil } func (m *SuspendImportRPCResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3555,36 +2479,27 @@ func (m *SuspendImportRPCResponse) Marshal() (dAtA []byte, err error) { } func (m *SuspendImportRPCResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SuspendImportRPCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.AlreadySuspended { - i-- + dAtA[i] = 0x8 + i++ if m.AlreadySuspended { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x8 + i++ } - return len(dAtA) - i, nil + return i, nil } 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 } @@ -3592,45 +2507,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 } @@ -3638,26 +2542,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 } @@ -3665,26 +2560,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 } @@ -3692,31 +2578,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 } @@ -3724,40 +2601,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 } @@ -3765,111 +2631,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 } @@ -3877,45 +2727,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 } @@ -3923,72 +2762,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 } @@ -3996,26 +2811,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 } @@ -4023,50 +2829,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 } @@ -4074,52 +2867,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 } @@ -4127,38 +2907,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 } @@ -4166,55 +2935,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.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.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-- - dAtA[i] = 0x1a + i += n9 } if m.OutputLevel != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.OutputLevel)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.OutputLevel)) } - 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)) + 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 } - 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 } @@ -4222,26 +2978,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 } @@ -4249,150 +2996,131 @@ 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 + 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 } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a } - if m.RequestType != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RequestType)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + 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 } - 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 += n12 + if m.ResolvedTs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.ResolvedTs)) } - 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 len(m.Name) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + 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 + } + 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 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n14 } 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())) + n15, err := m.CipherInfo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n15 } - 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) } - if m.ResolvedTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.ResolvedTs)) - i-- - dAtA[i] = 0x18 + if m.RequestType != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RequestType)) } - { - size, err := m.Sst.MarshalToSizedBuffer(dAtA[:i]) + 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:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - 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 - } + i += n16 } - 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 } @@ -4400,45 +3128,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())) + n17, err := m.StoreError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 } - 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 } @@ -4446,82 +3162,67 @@ 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 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 - } - } - 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())) + n18, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n18 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())) + n19, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n19 } - 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)) + } + 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 err != nil { + return 0, err + } + i += n + } + } + 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 } @@ -4529,31 +3230,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 } @@ -4561,26 +3253,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 } @@ -4588,45 +3271,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 } @@ -4634,45 +3306,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 } @@ -4680,89 +3341,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 { + nn20, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += nn20 } 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())) + n21, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n21 } - 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())) + n22, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - 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())) + n23, err := m.Batch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } - 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 } @@ -4770,52 +3404,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())) + n24, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 } 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 } @@ -4823,50 +3444,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 } @@ -4874,89 +3484,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 { + nn25, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += nn25 } 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())) + n26, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n26 } - 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())) + n27, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } - 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())) + n28, err := m.Batch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } - 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 } @@ -4964,52 +3547,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())) + n29, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 } 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 } @@ -5017,67 +3587,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.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 m.MinCommitTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x28 + if len(m.StartKey) > 0 { + 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.KeyOnly { - i-- + dAtA[i] = 0x20 + i++ if m.KeyOnly { 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 = encodeVarintImportSstpb(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 = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) - 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 = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + 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 } @@ -5085,45 +3642,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 } @@ -5131,64 +3677,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.KeyError != nil { - { - size, err := m.KeyError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + 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 } - i-- + 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 + } + i += n32 } - 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 } @@ -5196,118 +3727,102 @@ 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 len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.FileEncryptionInfo != nil { - { - size, err := m.FileEncryptionInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 + 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.EndKey) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } 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 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Sha256))) + i += copy(dAtA[i:], m.Sha256) } - 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 - } - 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 + if m.FileEncryptionInfo != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.FileEncryptionInfo.Size())) + n33, err := m.FileEncryptionInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 } - 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 } @@ -5315,133 +3830,107 @@ 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.MasterKeys) > 0 { - for iNdEx := len(m.MasterKeys) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MasterKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 + if m.Meta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) + n34, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n34 } - 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 - } + dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RewriteRule.Size())) + n35, err := m.RewriteRule.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.StorageBackend != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StorageBackend.Size())) + n36, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n36 } - 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())) + n37, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n37 } 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 m.CipherInfo != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CipherInfo.Size())) + n38, err := m.CipherInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 + } + 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 += n } - i-- - dAtA[i] = 0x22 } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.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-- - 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.MasterKeys) > 0 { + for _, msg := range m.MasterKeys { + dAtA[i] = 0x72 + 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 } @@ -5449,48 +3938,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())) + n39, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n39 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())) + n40, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n40 } - 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 } @@ -5498,33 +3974,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 } @@ -5532,49 +3998,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())) + n41, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n41 } - 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 *SuspendImportRPCRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ShouldSuspendImports { @@ -5587,31 +4037,19 @@ 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 { @@ -5623,55 +4061,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) @@ -5682,16 +4096,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) @@ -5735,16 +4143,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) @@ -5758,31 +4160,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 { @@ -5792,9 +4182,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 { @@ -5804,21 +4191,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 { @@ -5829,16 +4207,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 { @@ -5851,32 +4223,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 { @@ -5890,28 +4250,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 if len(m.Ssts) > 0 { @@ -5960,16 +4308,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) @@ -5980,16 +4322,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() @@ -6013,43 +4349,25 @@ 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) @@ -6063,16 +4381,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 { @@ -6084,16 +4396,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 { @@ -6103,16 +4409,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 { @@ -6122,9 +4422,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 { @@ -6134,9 +4431,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 { @@ -6149,16 +4443,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 { @@ -6173,16 +4461,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 { @@ -6192,16 +4474,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 { @@ -6211,9 +4487,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 { @@ -6223,9 +4496,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 { @@ -6238,16 +4508,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 { @@ -6268,16 +4532,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) @@ -6291,16 +4549,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 { @@ -6317,16 +4569,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) @@ -6377,16 +4623,10 @@ func (m *KVMeta) Size() (n int) { l = m.FileEncryptionInfo.Size() n += 1 + l + sovImportSstpb(uint64(l)) } - 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 { @@ -6429,16 +4669,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() @@ -6447,46 +4681,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)))) @@ -6506,7 +4732,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 } @@ -6534,7 +4760,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 } @@ -6554,7 +4780,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 } @@ -6573,7 +4799,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 } @@ -6583,9 +4809,6 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6597,13 +4820,12 @@ func (m *SuspendImportRPCRequest) 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 } } @@ -6628,7 +4850,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 } @@ -6656,7 +4878,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 } @@ -6668,13 +4890,12 @@ func (m *SuspendImportRPCResponse) 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 } } @@ -6699,7 +4920,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 } @@ -6727,7 +4948,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 } @@ -6746,7 +4967,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 } @@ -6755,9 +4976,6 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6772,13 +4990,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 } } @@ -6803,7 +5020,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 } @@ -6823,13 +5040,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 } } @@ -6854,7 +5070,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 } @@ -6874,13 +5090,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 } } @@ -6905,7 +5120,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 } @@ -6933,7 +5148,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 } @@ -6944,13 +5159,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 } } @@ -6975,7 +5189,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 } @@ -7003,7 +5217,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 } @@ -7012,9 +5226,6 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7037,7 +5248,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 } @@ -7046,9 +5257,6 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7063,13 +5271,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 } } @@ -7094,7 +5301,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 } @@ -7122,7 +5329,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 } @@ -7131,9 +5338,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7156,7 +5360,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 } @@ -7165,9 +5369,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7192,7 +5393,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 } @@ -7211,7 +5412,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 } @@ -7230,7 +5431,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 } @@ -7240,9 +5441,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7262,7 +5460,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 } @@ -7281,7 +5479,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 } @@ -7290,9 +5488,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7317,7 +5512,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 } @@ -7337,7 +5532,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 } @@ -7356,7 +5551,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 } @@ -7375,7 +5570,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 } @@ -7394,7 +5589,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 } @@ -7403,9 +5598,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7420,13 +5612,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 } } @@ -7451,7 +5642,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 } @@ -7479,7 +5670,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 } @@ -7488,9 +5679,6 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7513,7 +5701,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 } @@ -7522,9 +5710,6 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7547,7 +5732,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 } @@ -7558,13 +5743,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 } } @@ -7589,7 +5773,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 } @@ -7617,7 +5801,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 } @@ -7626,9 +5810,6 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7652,7 +5833,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 } @@ -7661,9 +5842,6 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7677,13 +5855,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 } } @@ -7708,7 +5885,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 } @@ -7728,13 +5905,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 } } @@ -7759,7 +5935,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 } @@ -7787,7 +5963,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 } @@ -7796,9 +5972,6 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7823,7 +5996,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 } @@ -7832,9 +6005,6 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7851,13 +6021,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 } } @@ -7882,7 +6051,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 } @@ -7910,7 +6079,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 } @@ -7919,9 +6088,6 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7946,7 +6112,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 } @@ -7955,9 +6121,6 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7972,13 +6135,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 } } @@ -8003,7 +6165,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 } @@ -8031,7 +6193,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 } @@ -8040,9 +6202,6 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8059,13 +6218,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 } } @@ -8090,7 +6248,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 } @@ -8118,7 +6276,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 } @@ -8127,9 +6285,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8154,7 +6309,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 } @@ -8173,7 +6328,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 } @@ -8182,9 +6337,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8201,13 +6353,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 } } @@ -8232,7 +6383,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 } @@ -8252,13 +6403,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 } } @@ -8283,7 +6433,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 } @@ -8311,7 +6461,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 } @@ -8320,9 +6470,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8343,7 +6490,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 } @@ -8360,7 +6507,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 } @@ -8370,9 +6517,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthImportSstpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8389,7 +6533,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 } @@ -8398,7 +6542,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthImportSstpb } if postmsgIndex > l { @@ -8415,7 +6559,7 @@ 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) > postIndex { @@ -8440,7 +6584,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 } @@ -8449,9 +6593,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8473,7 +6614,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 } @@ -8492,7 +6633,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 } @@ -8502,9 +6643,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8524,7 +6662,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 } @@ -8533,9 +6671,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8557,7 +6692,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 } @@ -8566,14 +6701,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 @@ -8593,7 +6725,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 } @@ -8613,7 +6745,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 } @@ -8622,14 +6754,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 @@ -8649,7 +6778,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 } @@ -8659,9 +6788,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8681,7 +6807,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 } @@ -8700,7 +6826,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 } @@ -8709,9 +6835,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8728,13 +6851,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 } } @@ -8759,7 +6881,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 } @@ -8787,7 +6909,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 } @@ -8797,9 +6919,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8819,7 +6938,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 } @@ -8828,9 +6947,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8847,13 +6963,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 } } @@ -8878,7 +6993,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 } @@ -8906,7 +7021,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 } @@ -8915,9 +7030,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8939,7 +7051,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 } @@ -8959,7 +7071,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 } @@ -8968,9 +7080,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8995,7 +7104,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 } @@ -9014,7 +7123,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 } @@ -9033,7 +7142,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 } @@ -9042,9 +7151,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9059,13 +7165,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 } } @@ -9090,7 +7195,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 } @@ -9118,7 +7223,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 } @@ -9129,13 +7234,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 } } @@ -9160,7 +7264,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 } @@ -9180,13 +7284,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 } } @@ -9211,7 +7314,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 } @@ -9239,7 +7342,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 } @@ -9248,9 +7351,6 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9273,7 +7373,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 } @@ -9282,9 +7382,6 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9307,7 +7404,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 } @@ -9318,13 +7415,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 } } @@ -9349,7 +7445,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 } @@ -9377,7 +7473,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 } @@ -9396,7 +7492,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 } @@ -9405,9 +7501,6 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9422,13 +7515,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 } } @@ -9453,7 +7545,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 } @@ -9481,7 +7573,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 } @@ -9490,9 +7582,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9516,7 +7605,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 } @@ -9525,9 +7614,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9551,7 +7637,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 } @@ -9560,9 +7646,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9579,13 +7662,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 } } @@ -9610,7 +7692,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 } @@ -9638,7 +7720,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 } @@ -9647,9 +7729,6 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9674,7 +7753,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 } @@ -9683,9 +7762,6 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9700,13 +7776,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 } } @@ -9731,7 +7806,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 } @@ -9759,7 +7834,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 } @@ -9778,7 +7853,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 } @@ -9787,9 +7862,6 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9812,7 +7884,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 } @@ -9823,13 +7895,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 } } @@ -9854,7 +7925,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 } @@ -9882,7 +7953,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 } @@ -9891,9 +7962,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9917,7 +7985,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 } @@ -9926,9 +7994,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9952,7 +8017,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 } @@ -9961,9 +8026,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9980,13 +8042,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 } } @@ -10011,7 +8072,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 } @@ -10039,7 +8100,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 } @@ -10048,9 +8109,6 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10075,7 +8133,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 } @@ -10084,9 +8142,6 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10101,13 +8156,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 } } @@ -10132,7 +8186,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 } @@ -10160,7 +8214,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 } @@ -10169,9 +8223,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10196,7 +8247,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 } @@ -10205,9 +8256,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10230,7 +8278,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 } @@ -10239,9 +8287,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10264,7 +8309,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 } @@ -10284,7 +8329,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 } @@ -10295,13 +8340,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 } } @@ -10326,7 +8370,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 } @@ -10354,7 +8398,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 } @@ -10363,9 +8407,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10388,7 +8429,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 } @@ -10397,9 +8438,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10422,7 +8460,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 } @@ -10433,13 +8471,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 } } @@ -10464,7 +8501,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 } @@ -10492,7 +8529,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 } @@ -10501,9 +8538,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10528,7 +8562,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 } @@ -10537,9 +8571,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10564,7 +8595,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 } @@ -10573,9 +8604,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10590,13 +8618,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 } } @@ -10621,7 +8648,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 } @@ -10649,7 +8676,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 } @@ -10659,9 +8686,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10681,7 +8705,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 } @@ -10700,7 +8724,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 } @@ -10710,9 +8734,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10732,7 +8753,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 } @@ -10752,7 +8773,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 } @@ -10771,7 +8792,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 } @@ -10780,9 +8801,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10805,7 +8823,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 } @@ -10814,9 +8832,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10839,7 +8854,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 } @@ -10848,9 +8863,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10873,7 +8885,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 } @@ -10892,7 +8904,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 } @@ -10911,7 +8923,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 } @@ -10930,7 +8942,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 } @@ -10949,7 +8961,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 } @@ -10968,7 +8980,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -10977,9 +8989,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10996,13 +9005,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 } } @@ -11027,7 +9035,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 } @@ -11055,7 +9063,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 } @@ -11064,9 +9072,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11091,7 +9096,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 } @@ -11100,9 +9105,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11124,7 +9126,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 } @@ -11133,14 +9135,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 @@ -11160,7 +9159,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 } @@ -11169,9 +9168,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11196,7 +9192,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 } @@ -11206,9 +9202,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11228,7 +9221,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 } @@ -11237,14 +9230,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 @@ -11264,7 +9254,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 } @@ -11273,9 +9263,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11298,7 +9285,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 } @@ -11307,9 +9294,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11332,7 +9316,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 } @@ -11341,9 +9325,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11358,13 +9339,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 } } @@ -11389,7 +9369,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 } @@ -11417,7 +9397,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 } @@ -11426,9 +9406,6 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11450,7 +9427,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 } @@ -11459,9 +9436,6 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11478,13 +9452,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 } } @@ -11509,7 +9482,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 } @@ -11537,7 +9510,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 } @@ -11547,9 +9520,6 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11561,13 +9531,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 } } @@ -11592,7 +9561,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 } @@ -11620,7 +9589,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 } @@ -11629,9 +9598,6 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11648,13 +9614,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 } } @@ -11667,7 +9632,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 { @@ -11699,8 +9663,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 { @@ -11717,34 +9683,201 @@ 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{ + // 2260 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, 0xf3, 0xe9, 0xb1, 0x56, 0x86, 0xe9, 0xe7, 0x22, 0x5e, 0xaf, 0x2c, 0x25, + 0xb4, 0x23, 0x6f, 0x5c, 0x5b, 0x9b, 0xaa, 0xb8, 0x56, 0x8f, 0xd8, 0x8a, 0x2c, 0x5b, 0x01, 0x15, + 0xe7, 0x90, 0x03, 0x0a, 0x02, 0x87, 0x12, 0x42, 0x10, 0x40, 0x30, 0x43, 0xca, 0xbc, 0xe4, 0x07, + 0xe4, 0x96, 0x5b, 0xae, 0xc9, 0x69, 0x2b, 0xff, 0x20, 0xff, 0x60, 0x8f, 0x39, 0xe6, 0x94, 0x4a, + 0x39, 0xf7, 0x5c, 0xf2, 0x03, 0x36, 0x35, 0x3d, 0x03, 0x12, 0x80, 0x29, 0xd1, 0x76, 0x6d, 0x4e, + 0x9c, 0xe9, 0x69, 0x4c, 0xf7, 0xf4, 0xf3, 0x9b, 0x21, 0x10, 0x77, 0x14, 0x06, 0x11, 0xb7, 0x18, + 0xe3, 0xe1, 0x49, 0x37, 0x8c, 0x02, 0x1e, 0x90, 0x7a, 0x92, 0xd6, 0xa9, 0x8f, 0x28, 0xb7, 0xe3, + 0xb5, 0x4e, 0x83, 0x46, 0x51, 0x10, 0xcd, 0xa7, 0xc3, 0x49, 0x14, 0x3a, 0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xb6, 0x7f, 0x4a, 0xc5, 0x19, 0xf2, 0xeb, 0xb5, 0xad, 0xab, 0x69, 0x7e, 0x53, + 0xac, 0x99, 0x8a, 0xc5, 0x58, 0x05, 0x92, 0x94, 0x27, 0x55, 0x36, 0xda, 0xd0, 0x7c, 0x46, 0x79, + 0x42, 0x05, 0xe3, 0x29, 0xb4, 0x66, 0x14, 0x75, 0xae, 0x0f, 0xd2, 0xca, 0x78, 0x08, 0x45, 0x94, + 0x4c, 0x56, 0xa1, 0xc8, 0xb8, 0x1d, 0x71, 0xfc, 0xae, 0x6e, 0xca, 0x09, 0x69, 0x43, 0x9e, 0xfa, + 0x7d, 0xb4, 0x7a, 0xdd, 0x14, 0x43, 0xe3, 0xcf, 0x79, 0x28, 0xf7, 0x7a, 0xc7, 0x87, 0x94, 0xdb, + 0x84, 0x40, 0x61, 0x3c, 0x76, 0xfb, 0xea, 0x13, 0x1c, 0x93, 0x07, 0x50, 0xc4, 0x33, 0xe0, 0x37, + 0x17, 0x9c, 0x52, 0x72, 0x08, 0x91, 0x4e, 0xe4, 0x3c, 0xde, 0x42, 0xa7, 0x35, 0x4c, 0x39, 0x11, + 0xbe, 0xf4, 0xa8, 0x7f, 0xca, 0xcf, 0xf4, 0x02, 0xfa, 0x5a, 0xcd, 0xc8, 0x35, 0x28, 0x3b, 0x03, + 0xcb, 0xb7, 0x47, 0x54, 0x2f, 0x2a, 0x27, 0x0f, 0x5e, 0xda, 0x23, 0x4a, 0x6e, 0x40, 0x35, 0xa2, + 0xa7, 0x18, 0x24, 0x7d, 0xbd, 0x84, 0xdf, 0x54, 0x24, 0x61, 0xbf, 0x4f, 0x9e, 0x40, 0x5d, 0x2d, + 0xd2, 0x30, 0x70, 0xce, 0xf4, 0xb2, 0xd2, 0x4a, 0xe5, 0x87, 0x89, 0x6b, 0x7b, 0x62, 0xc9, 0xac, + 0x45, 0xf3, 0x09, 0xd9, 0x80, 0x2b, 0x22, 0x4c, 0x87, 0x74, 0x6a, 0xd1,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 0x12, 0x1e, 0x69, 0x64, 0x1b, 0x8a, 0x58, 0xb7, 0xb2, 0x96, + 0x4c, 0x36, 0xaf, 0xac, 0x25, 0x53, 0x85, 0x0e, 0x13, 0x05, 0xb0, 0xcc, 0x88, 0xde, 0xc8, 0xb2, + 0x1b, 0x25, 0x0b, 0x55, 0x76, 0xa3, 0x54, 0x71, 0x32, 0x56, 0x88, 0x03, 0xed, 0xec, 0xd3, 0x3e, + 0xc9, 0x9c, 0xe5, 0x82, 0x7f, 0x23, 0x3a, 0xf7, 0x97, 0xb1, 0xc5, 0x42, 0xb6, 0xef, 0xff, 0xe3, + 0x9b, 0x8a, 0xf6, 0xed, 0xdb, 0xdb, 0xda, 0xdf, 0xdf, 0xde, 0xd6, 0xfe, 0xf5, 0xf6, 0xb6, 0xf6, + 0xa7, 0x7f, 0xdf, 0x5e, 0x81, 0x76, 0x10, 0x9d, 0x76, 0xb9, 0x3b, 0x9c, 0x74, 0x87, 0x13, 0xfc, + 0xef, 0xe3, 0xa4, 0x84, 0x3f, 0x8f, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xd2, 0x88, 0x7e, + 0x99, 0x19, 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, 0x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 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, + 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, 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c4, 0x4c, 0xb8, 0x0e, 0xf3, 0xc9, 0x0d, 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 d450ffe9c..af8149ac1 100644 --- a/pkg/kvrpcpb/kvrpcpb.pb.go +++ b/pkg/kvrpcpb/kvrpcpb.pb.go @@ -1,22 +1,175 @@ // 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 + FlushRequest + FlushResponse + BufferBatchGetRequest + BufferBatchGetResponse + GetHealthFeedbackRequest + GetHealthFeedbackResponse + HealthFeedback +*/ 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 +181,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 +203,6 @@ var PessimisticLockWakeUpMode_name = map[int32]string{ 0: "WakeUpModeNormal", 1: "WakeUpModeForceLock", } - var PessimisticLockWakeUpMode_value = map[string]int32{ "WakeUpModeNormal": 0, "WakeUpModeForceLock": 1, @@ -59,9 +211,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 +228,6 @@ var PessimisticLockKeyResultType_name = map[int32]string{ 1: "LockResultLockedWithConflict", 2: "LockResultFailed", } - var PessimisticLockKeyResultType_value = map[string]int32{ "LockResultNormal": 0, "LockResultLockedWithConflict": 1, @@ -87,9 +237,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 +303,6 @@ var APIVersion_name = map[int32]string{ 1: "V1TTL", 2: "V2", } - var APIVersion_value = map[string]int32{ "V1": 0, "V1TTL": 1, @@ -164,10 +312,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 +327,6 @@ var CommandPri_name = map[int32]string{ 1: "Low", 2: "High", } - var CommandPri_value = map[string]int32{ "Normal": 0, "Low": 1, @@ -192,10 +336,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 +351,6 @@ var IsolationLevel_name = map[int32]string{ 1: "RC", 2: "RCCheckTS", } - var IsolationLevel_value = map[string]int32{ "SI": 0, "RC": 1, @@ -220,10 +360,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 +376,6 @@ var DiskFullOpt_name = map[int32]string{ 1: "AllowedOnAlmostFull", 2: "AllowedOnAlreadyFull", } - var DiskFullOpt_value = map[string]int32{ "NotAllowedOnFull": 0, "AllowedOnAlmostFull": 1, @@ -249,10 +385,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 +409,6 @@ var Op_name = map[int32]string{ 5: "PessimisticLock", 6: "CheckNotExists", } - var Op_value = map[string]int32{ "Put": 0, "Del": 1, @@ -290,10 +422,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 +437,6 @@ var Assertion_name = map[int32]string{ 1: "Exist", 2: "NotExist", } - var Assertion_value = map[string]int32{ "None": 0, "Exist": 1, @@ -318,10 +446,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 +464,6 @@ var AssertionLevel_name = map[int32]string{ 1: "Fast", 2: "Strict", } - var AssertionLevel_value = map[string]int32{ "Off": 0, "Fast": 1, @@ -349,10 +473,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 +494,6 @@ var Action_name = map[int32]string{ 4: "TTLExpirePessimisticRollback", 5: "LockNotExistDoNothing", } - var Action_value = map[string]int32{ "NoAction": 0, "TTLExpireRollback": 1, @@ -386,10 +506,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 +520,6 @@ var ExtraOp_name = map[int32]string{ 0: "Noop", 1: "ReadOldValue", } - var ExtraOp_value = map[string]int32{ "Noop": 0, "ReadOldValue": 1, @@ -412,10 +528,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 +539,6 @@ const ( var ChecksumAlgorithm_name = map[int32]string{ 0: "Crc64_Xor", } - var ChecksumAlgorithm_value = map[string]int32{ "Crc64_Xor": 0, } @@ -434,10 +546,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 +565,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 +574,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 +597,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 +609,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 +650,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 +704,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 +717,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 +782,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 +821,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 +835,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 +846,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,46 +857,15 @@ 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"` + ForUpdateTsConstraints []*PrewriteRequest_ForUpdateTSConstraint `protobuf:"bytes,16,rep,name=for_update_ts_constraints,json=forUpdateTsConstraints" json:"for_update_ts_constraints,omitempty"` // Reserved for file based transaction. - TxnFileChunks []uint64 `protobuf:"varint,100,rep,packed,name=txn_file_chunks,json=txnFileChunks,proto3" json:"txn_file_chunks,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) + TxnFileChunks []uint64 `protobuf:"varint,100,rep,packed,name=txn_file_chunks,json=txnFileChunks" json:"txn_file_chunks,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 { @@ -1041,44 +991,15 @@ 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() + return fileDescriptorKvrpcpb, []int{4, 0} } -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 { @@ -1095,8 +1016,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. @@ -1106,44 +1027,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 { @@ -1182,9 +1072,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"` @@ -1201,7 +1091,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. @@ -1217,44 +1107,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 { @@ -1312,7 +1171,6 @@ func (m *PessimisticLockRequest) GetWaitTimeout() int64 { return 0 } -// Deprecated: Do not use. func (m *PessimisticLockRequest) GetForce() bool { if m != nil { return m.Force @@ -1369,44 +1227,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 { @@ -1444,61 +1271,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 { @@ -1514,7 +1310,6 @@ func (m *PessimisticLockResponse) GetErrors() []*KeyError { return nil } -// Deprecated: Do not use. func (m *PessimisticLockResponse) GetCommitTs() uint64 { if m != nil { return m.CommitTs @@ -1522,7 +1317,6 @@ func (m *PessimisticLockResponse) GetCommitTs() uint64 { return 0 } -// Deprecated: Do not use. func (m *PessimisticLockResponse) GetValue() []byte { if m != nil { return m.Value @@ -1560,47 +1354,18 @@ 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 - } + return fileDescriptorKvrpcpb, []int{9} } -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 { @@ -1631,47 +1396,18 @@ 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() + return fileDescriptorKvrpcpb, []int{10} } -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 { @@ -1696,7 +1432,7 @@ 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. @@ -1704,44 +1440,13 @@ type TxnHeartBeatRequest struct { // 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"` // Reserved for file based transaction. - IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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) + IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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 { @@ -1779,49 +1484,18 @@ func (m *TxnHeartBeatRequest) GetIsTxnFile() bool { } 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 { @@ -1857,7 +1531,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. @@ -1885,44 +1559,13 @@ type CheckTxnStatusRequest struct { // 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"` // Reserved for file based transaction. - IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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) + IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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 { @@ -1995,57 +1638,25 @@ func (m *CheckTxnStatusRequest) GetIsTxnFile() 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 { @@ -2100,48 +1711,19 @@ 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) -} -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) + return fileDescriptorKvrpcpb, []int{15} } -var xxx_messageInfo_CheckSecondaryLocksRequest proto.InternalMessageInfo - func (m *CheckSecondaryLocksRequest) GetContext() *Context { if m != nil { return m.Context @@ -2164,54 +1746,25 @@ 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) + return fileDescriptorKvrpcpb, []int{16} } -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 { @@ -2251,52 +1804,21 @@ 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"` // Reserved for file based transaction. - IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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) + IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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 { @@ -2334,49 +1856,18 @@ func (m *CommitRequest) GetIsTxnFile() bool { } 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 { @@ -2408,45 +1899,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 { @@ -2463,45 +1923,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 { @@ -2520,50 +1949,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 { @@ -2594,47 +1992,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 { @@ -2659,46 +2026,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 { @@ -2722,51 +2058,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 { @@ -2799,50 +2104,19 @@ 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"` + Keys [][]byte `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` // Reserved for file based transaction. - IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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) + IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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 { @@ -2873,47 +2147,16 @@ func (m *BatchRollbackRequest) GetIsTxnFile() bool { } 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 { @@ -2939,7 +2182,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. @@ -2947,44 +2190,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 { @@ -3022,49 +2234,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 { @@ -3097,53 +2278,22 @@ 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"` + Keys [][]byte `protobuf:"bytes,5,rep,name=keys" json:"keys,omitempty"` // Reserved for file based transaction. - IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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) + IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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 { @@ -3188,47 +2338,16 @@ func (m *ResolveLockRequest) GetIsTxnFile() bool { } 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 { @@ -3253,45 +2372,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 { @@ -3308,45 +2396,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 { @@ -3364,50 +2421,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 { @@ -3438,45 +2464,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 { @@ -3496,52 +2491,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 @@ -3578,46 +2544,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 @@ -3636,52 +2573,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 { @@ -3726,45 +2634,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 { @@ -3781,46 +2660,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 { @@ -3844,47 +2692,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 { @@ -3915,46 +2732,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 { @@ -3978,45 +2764,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 { @@ -4033,49 +2788,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 { @@ -4120,45 +2844,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 { @@ -4175,52 +2868,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 { @@ -4243,7 +2905,6 @@ func (m *RawBatchPutRequest) GetCf() string { return "" } -// Deprecated: Do not use. func (m *RawBatchPutRequest) GetTtl() uint64 { if m != nil { return m.Ttl @@ -4266,45 +2927,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 { @@ -4321,47 +2951,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 { @@ -4392,45 +2991,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 { @@ -4447,47 +3015,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 { @@ -4518,45 +3055,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 { @@ -4573,7 +3079,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"` @@ -4581,44 +3087,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 { @@ -4670,45 +3145,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 { @@ -4725,47 +3169,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 { @@ -4796,45 +3209,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 { @@ -4851,49 +3233,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 { @@ -4938,45 +3289,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 { @@ -4993,47 +3313,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 @@ -5056,45 +3347,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 { @@ -5111,46 +3373,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 @@ -5166,45 +3399,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 @@ -5213,45 +3417,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 { @@ -5268,46 +3443,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 { @@ -5331,46 +3477,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 @@ -5386,44 +3503,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 { @@ -5433,47 +3521,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 { @@ -5504,45 +3561,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 { @@ -5560,48 +3588,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 { @@ -5610,7 +3607,6 @@ func (m *SplitRegionRequest) GetContext() *Context { return nil } -// Deprecated: Do not use. func (m *SplitRegionRequest) GetSplitKey() []byte { if m != nil { return m.SplitKey @@ -5633,49 +3629,18 @@ 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"` + 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"` // Reserved for file based transaction. - Errors []*KeyError `protobuf:"bytes,100,rep,name=errors,proto3" json:"errors,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) + Errors []*KeyError `protobuf:"bytes,100,rep,name=errors" json:"errors,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 { @@ -5684,7 +3649,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 @@ -5692,7 +3656,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 @@ -5716,48 +3679,17 @@ func (m *SplitRegionResponse) GetErrors() []*KeyError { // 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 { @@ -5781,48 +3713,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 { @@ -5846,45 +3747,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 { @@ -5901,46 +3771,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 { @@ -5964,45 +3803,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 { @@ -6019,47 +3827,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 { @@ -6092,8 +3871,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"` @@ -6106,7 +3885,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. @@ -6127,9 +3906,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"` @@ -6139,7 +3918,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"` @@ -6148,46 +3927,15 @@ 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"` + SourceStmt *SourceStmt `protobuf:"bytes,34,opt,name=source_stmt,json=sourceStmt" json:"source_stmt,omitempty"` // The cluster id of the request - ClusterId uint64 `protobuf:"varint,35,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 *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) + ClusterId uint64 `protobuf:"varint,35,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,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 { @@ -6404,47 +4152,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 { @@ -6472,44 +4189,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 { @@ -6551,50 +4237,19 @@ 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"` // Reserved for file based transaction. - IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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) + IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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 { @@ -6681,54 +4336,23 @@ func (m *LockInfo) GetIsTxnFile() bool { } 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 { @@ -6808,49 +4432,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 { @@ -6895,44 +4488,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 { @@ -6946,46 +4508,15 @@ type Deadlock struct { LockKey []byte `protobuf:"bytes,2,opt,name=lock_key,json=lockKey,proto3" json:"lock_key,omitempty"` // The hash of `deadlock_key` field. 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"` + WaitChain []*deadlock.WaitForEntry `protobuf:"bytes,4,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` // The key that the current transaction has already acquired and blocks another transaction to form the deadlock. - DeadlockKey []byte `protobuf:"bytes,5,opt,name=deadlock_key,json=deadlockKey,proto3" json:"deadlock_key,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) + DeadlockKey []byte `protobuf:"bytes,5,opt,name=deadlock_key,json=deadlockKey,proto3" json:"deadlock_key,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 { @@ -7023,47 +4554,16 @@ func (m *Deadlock) GetDeadlockKey() []byte { } 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 { @@ -7094,45 +4594,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 { @@ -7149,44 +4618,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 { @@ -7196,48 +4634,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 { @@ -7275,44 +4682,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 { @@ -7334,44 +4710,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 { @@ -7420,44 +4765,13 @@ type TimeDetailV2 struct { // Time spent on the gRPC layer. KvGrpcProcessTimeNs uint64 `protobuf:"varint,6,opt,name=kv_grpc_process_time_ns,json=kvGrpcProcessTimeNs,proto3" json:"kv_grpc_process_time_ns,omitempty"` // Time spent on waiting for run again in grpc pool from other executor pool. - KvGrpcWaitTimeNs uint64 `protobuf:"varint,7,opt,name=kv_grpc_wait_time_ns,json=kvGrpcWaitTimeNs,proto3" json:"kv_grpc_wait_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) + KvGrpcWaitTimeNs uint64 `protobuf:"varint,7,opt,name=kv_grpc_wait_time_ns,json=kvGrpcWaitTimeNs,proto3" json:"kv_grpc_wait_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 { @@ -7509,46 +4823,15 @@ func (m *TimeDetailV2) GetKvGrpcWaitTimeNs() 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 { @@ -7573,46 +4856,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 { @@ -7671,44 +4923,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 { @@ -7803,46 +5024,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 { @@ -7861,50 +5051,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 { @@ -7968,44 +5127,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 { @@ -8127,46 +5255,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 { @@ -8190,47 +5287,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 { @@ -8261,52 +5327,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 { @@ -8372,45 +5407,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 { @@ -8435,47 +5439,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 { @@ -8562,46 +5535,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 { @@ -8628,44 +5570,13 @@ 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"` // Reserved for file based transaction. - IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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) + IsTxnFile bool `protobuf:"varint,100,opt,name=is_txn_file,json=isTxnFile,proto3" json:"is_txn_file,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 { @@ -8689,45 +5600,14 @@ func (m *TxnInfo) GetIsTxnFile() bool { } 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 { @@ -8744,48 +5624,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 { @@ -8823,45 +5672,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 { @@ -8878,45 +5696,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 { @@ -8933,45 +5720,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 { @@ -8990,44 +5746,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 { @@ -9037,44 +5762,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 { @@ -9084,46 +5778,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 { @@ -9147,47 +5810,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 { @@ -9218,50 +5850,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 { @@ -9313,49 +5914,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 { @@ -9393,44 +5963,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 { @@ -9440,46 +5979,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) -} -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() + return fileDescriptorKvrpcpb, []int{115} } -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 { @@ -9503,45 +6013,16 @@ 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() -} -func (m *GetLockWaitHistoryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLockWaitHistoryRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{116} } -var xxx_messageInfo_GetLockWaitHistoryRequest proto.InternalMessageInfo - func (m *GetLockWaitHistoryRequest) GetContext() *Context { if m != nil { return m.Context @@ -9550,46 +6031,17 @@ 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 - } + return fileDescriptorKvrpcpb, []int{117} } -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 { @@ -9613,49 +6065,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 { @@ -9693,48 +6114,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 { @@ -9758,46 +6148,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 { @@ -9821,48 +6180,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 { @@ -9901,49 +6229,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() @@ -9952,16 +6248,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() {} @@ -10004,9 +6300,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), @@ -10014,161 +6310,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() -} -func (m *CompactErrorInvalidStartKey) XXX_DiscardUnknown() { - xxx_messageInfo_CompactErrorInvalidStartKey.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{123} } -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() + return fileDescriptorKvrpcpb, []int{124} } -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 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 - } + return fileDescriptorKvrpcpb, []int{126} } -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. @@ -10191,44 +6473,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 { @@ -10266,49 +6517,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 { @@ -10339,45 +6559,16 @@ 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() -} -func (m *TiFlashSystemTableRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TiFlashSystemTableRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{129} } -var xxx_messageInfo_TiFlashSystemTableRequest proto.InternalMessageInfo - func (m *TiFlashSystemTableRequest) GetSql() string { if m != nil { return m.Sql @@ -10386,94 +6577,34 @@ 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} -} -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() + return fileDescriptorKvrpcpb, []int{130} } -func (m *TiFlashSystemTableResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TiFlashSystemTableResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TiFlashSystemTableResponse proto.InternalMessageInfo // Flush is introduced from the pipelined DML protocol. // A Flush request writes some keys and values to TiKV, storing in LOCK and DEFAULT CF, just like a Prewrite request. type FlushRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` PrimaryKey []byte `protobuf:"bytes,3,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` StartTs uint64 `protobuf:"varint,4,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` MinCommitTs uint64 `protobuf:"varint,5,opt,name=min_commit_ts,json=minCommitTs,proto3" json:"min_commit_ts,omitempty"` // generation of the flush request. It is a monotonically increasing number in each transaction. - Generation uint64 `protobuf:"varint,6,opt,name=generation,proto3" json:"generation,omitempty"` - LockTtl uint64 `protobuf:"varint,7,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` - AssertionLevel AssertionLevel `protobuf:"varint,8,opt,name=assertion_level,json=assertionLevel,proto3,enum=kvrpcpb.AssertionLevel" json:"assertion_level,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlushRequest) Reset() { *m = FlushRequest{} } -func (m *FlushRequest) String() string { return proto.CompactTextString(m) } -func (*FlushRequest) ProtoMessage() {} -func (*FlushRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{131} -} -func (m *FlushRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlushRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FlushRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlushRequest.Merge(m, src) -} -func (m *FlushRequest) XXX_Size() int { - return m.Size() -} -func (m *FlushRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FlushRequest.DiscardUnknown(m) + Generation uint64 `protobuf:"varint,6,opt,name=generation,proto3" json:"generation,omitempty"` + LockTtl uint64 `protobuf:"varint,7,opt,name=lock_ttl,json=lockTtl,proto3" json:"lock_ttl,omitempty"` + AssertionLevel AssertionLevel `protobuf:"varint,8,opt,name=assertion_level,json=assertionLevel,proto3,enum=kvrpcpb.AssertionLevel" json:"assertion_level,omitempty"` } -var xxx_messageInfo_FlushRequest proto.InternalMessageInfo +func (m *FlushRequest) Reset() { *m = FlushRequest{} } +func (m *FlushRequest) String() string { return proto.CompactTextString(m) } +func (*FlushRequest) ProtoMessage() {} +func (*FlushRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{131} } func (m *FlushRequest) GetContext() *Context { if m != nil { @@ -10532,46 +6663,15 @@ func (m *FlushRequest) GetAssertionLevel() AssertionLevel { } type FlushResponse 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"` - 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 *FlushResponse) Reset() { *m = FlushResponse{} } -func (m *FlushResponse) String() string { return proto.CompactTextString(m) } -func (*FlushResponse) ProtoMessage() {} -func (*FlushResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{132} -} -func (m *FlushResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FlushResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FlushResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlushResponse.Merge(m, src) -} -func (m *FlushResponse) XXX_Size() int { - return m.Size() -} -func (m *FlushResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FlushResponse.DiscardUnknown(m) + 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_FlushResponse proto.InternalMessageInfo +func (m *FlushResponse) Reset() { *m = FlushResponse{} } +func (m *FlushResponse) String() string { return proto.CompactTextString(m) } +func (*FlushResponse) ProtoMessage() {} +func (*FlushResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{132} } func (m *FlushResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -10597,46 +6697,15 @@ func (m *FlushResponse) GetExecDetailsV2() *ExecDetailsV2 { // BufferBatchGet is introduced from the pipelined DML protocol. // It is similar to a BatchGet request, except that it can only read the data that has been flushed by itself. type BufferBatchGetRequest 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 *BufferBatchGetRequest) Reset() { *m = BufferBatchGetRequest{} } -func (m *BufferBatchGetRequest) String() string { return proto.CompactTextString(m) } -func (*BufferBatchGetRequest) ProtoMessage() {} -func (*BufferBatchGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{133} -} -func (m *BufferBatchGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BufferBatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BufferBatchGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BufferBatchGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BufferBatchGetRequest.Merge(m, src) -} -func (m *BufferBatchGetRequest) XXX_Size() int { - return m.Size() -} -func (m *BufferBatchGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BufferBatchGetRequest.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_BufferBatchGetRequest proto.InternalMessageInfo +func (m *BufferBatchGetRequest) Reset() { *m = BufferBatchGetRequest{} } +func (m *BufferBatchGetRequest) String() string { return proto.CompactTextString(m) } +func (*BufferBatchGetRequest) ProtoMessage() {} +func (*BufferBatchGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{133} } func (m *BufferBatchGetRequest) GetContext() *Context { if m != nil { @@ -10660,48 +6729,17 @@ func (m *BufferBatchGetRequest) GetVersion() uint64 { } type BufferBatchGetResponse 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"` - Pairs []*KvPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,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"` + Pairs []*KvPair `protobuf:"bytes,3,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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BufferBatchGetResponse) Reset() { *m = BufferBatchGetResponse{} } -func (m *BufferBatchGetResponse) String() string { return proto.CompactTextString(m) } -func (*BufferBatchGetResponse) ProtoMessage() {} -func (*BufferBatchGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{134} -} -func (m *BufferBatchGetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BufferBatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BufferBatchGetResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BufferBatchGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BufferBatchGetResponse.Merge(m, src) -} -func (m *BufferBatchGetResponse) XXX_Size() int { - return m.Size() -} -func (m *BufferBatchGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BufferBatchGetResponse.DiscardUnknown(m) + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` } -var xxx_messageInfo_BufferBatchGetResponse proto.InternalMessageInfo +func (m *BufferBatchGetResponse) Reset() { *m = BufferBatchGetResponse{} } +func (m *BufferBatchGetResponse) String() string { return proto.CompactTextString(m) } +func (*BufferBatchGetResponse) ProtoMessage() {} +func (*BufferBatchGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{134} } func (m *BufferBatchGetResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -10736,45 +6774,16 @@ func (m *BufferBatchGetResponse) GetExecDetailsV2() *ExecDetailsV2 { // The health feedback information won't be replied in the response, but will be attached to `BatchCommandsResponse.health_feedback` field as usual. // Only works when batch RPC is enabled. type GetHealthFeedbackRequest 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 *GetHealthFeedbackRequest) Reset() { *m = GetHealthFeedbackRequest{} } func (m *GetHealthFeedbackRequest) String() string { return proto.CompactTextString(m) } func (*GetHealthFeedbackRequest) ProtoMessage() {} func (*GetHealthFeedbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{135} -} -func (m *GetHealthFeedbackRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetHealthFeedbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetHealthFeedbackRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetHealthFeedbackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetHealthFeedbackRequest.Merge(m, src) -} -func (m *GetHealthFeedbackRequest) XXX_Size() int { - return m.Size() -} -func (m *GetHealthFeedbackRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetHealthFeedbackRequest.DiscardUnknown(m) + return fileDescriptorKvrpcpb, []int{135} } -var xxx_messageInfo_GetHealthFeedbackRequest proto.InternalMessageInfo - func (m *GetHealthFeedbackRequest) GetContext() *Context { if m != nil { return m.Context @@ -10784,45 +6793,16 @@ func (m *GetHealthFeedbackRequest) GetContext() *Context { type GetHealthFeedbackResponse struct { // The error field is added for keeping consistent. This request won't meet any region error as it's store level rather than region level. - RegionError *errorpb.Error `protobuf:"bytes,1,opt,name=region_error,json=regionError,proto3" json:"region_error,omitempty"` - HealthFeedback *HealthFeedback `protobuf:"bytes,2,opt,name=health_feedback,json=healthFeedback,proto3" json:"health_feedback,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"` + HealthFeedback *HealthFeedback `protobuf:"bytes,2,opt,name=health_feedback,json=healthFeedback" json:"health_feedback,omitempty"` } func (m *GetHealthFeedbackResponse) Reset() { *m = GetHealthFeedbackResponse{} } func (m *GetHealthFeedbackResponse) String() string { return proto.CompactTextString(m) } func (*GetHealthFeedbackResponse) ProtoMessage() {} func (*GetHealthFeedbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{136} -} -func (m *GetHealthFeedbackResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetHealthFeedbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetHealthFeedbackResponse.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 fileDescriptorKvrpcpb, []int{136} } -func (m *GetHealthFeedbackResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetHealthFeedbackResponse.Merge(m, src) -} -func (m *GetHealthFeedbackResponse) XXX_Size() int { - return m.Size() -} -func (m *GetHealthFeedbackResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetHealthFeedbackResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetHealthFeedbackResponse proto.InternalMessageInfo func (m *GetHealthFeedbackResponse) GetRegionError() *errorpb.Error { if m != nil { @@ -10849,44 +6829,13 @@ type HealthFeedback struct { FeedbackSeqNo uint64 `protobuf:"varint,2,opt,name=feedback_seq_no,json=feedbackSeqNo,proto3" json:"feedback_seq_no,omitempty"` // The slow_score calculated in raftstore module. Due to some limitations of slow score, this would // be replaced by `SlowTrend` in the future. - SlowScore int32 `protobuf:"varint,3,opt,name=slow_score,json=slowScore,proto3" json:"slow_score,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HealthFeedback) Reset() { *m = HealthFeedback{} } -func (m *HealthFeedback) String() string { return proto.CompactTextString(m) } -func (*HealthFeedback) ProtoMessage() {} -func (*HealthFeedback) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{137} -} -func (m *HealthFeedback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HealthFeedback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HealthFeedback.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *HealthFeedback) XXX_Merge(src proto.Message) { - xxx_messageInfo_HealthFeedback.Merge(m, src) -} -func (m *HealthFeedback) XXX_Size() int { - return m.Size() -} -func (m *HealthFeedback) XXX_DiscardUnknown() { - xxx_messageInfo_HealthFeedback.DiscardUnknown(m) + SlowScore int32 `protobuf:"varint,3,opt,name=slow_score,json=slowScore,proto3" json:"slow_score,omitempty"` } -var xxx_messageInfo_HealthFeedback proto.InternalMessageInfo +func (m *HealthFeedback) Reset() { *m = HealthFeedback{} } +func (m *HealthFeedback) String() string { return proto.CompactTextString(m) } +func (*HealthFeedback) ProtoMessage() {} +func (*HealthFeedback) Descriptor() ([]byte, []int) { return fileDescriptorKvrpcpb, []int{137} } func (m *HealthFeedback) GetStoreId() uint64 { if m != nil { @@ -10910,20 +6859,6 @@ func (m *HealthFeedback) GetSlowScore() int32 { } 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") @@ -11063,521 +6998,64 @@ func init() { proto.RegisterType((*GetHealthFeedbackRequest)(nil), "kvrpcpb.GetHealthFeedbackRequest") proto.RegisterType((*GetHealthFeedbackResponse)(nil), "kvrpcpb.GetHealthFeedbackResponse") proto.RegisterType((*HealthFeedback)(nil), "kvrpcpb.HealthFeedback") + 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 (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("kvrpcpb.proto", fileDescriptor_1afe832be69693c7) } - -var fileDescriptor_1afe832be69693c7 = []byte{ - // 7232 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7d, 0x5b, 0x6c, 0x24, 0xc9, - 0x71, 0xe0, 0x54, 0x3f, 0xd8, 0xcd, 0x68, 0xb2, 0xbb, 0x58, 0x7c, 0x35, 0x39, 0x33, 0x3b, 0x9c, - 0x5a, 0xcd, 0xee, 0x88, 0xab, 0xe5, 0x68, 0xb9, 0x0f, 0x3d, 0x6f, 0xb5, 0x33, 0x9c, 0x17, 0x77, - 0x66, 0x48, 0xa2, 0xba, 0x77, 0xf6, 0x16, 0x77, 0x52, 0x29, 0x59, 0x9d, 0xec, 0x2e, 0x74, 0x75, - 0x55, 0x4d, 0x65, 0x36, 0xc9, 0x16, 0x70, 0xc0, 0x09, 0xf7, 0x00, 0x74, 0x38, 0xdc, 0xe9, 0x04, - 0x01, 0x3a, 0x40, 0xc2, 0xfd, 0x09, 0xb8, 0x3b, 0x40, 0x86, 0x0d, 0xff, 0xd8, 0xd6, 0x87, 0x61, - 0x40, 0x1f, 0x2b, 0xc3, 0x82, 0x64, 0x18, 0x86, 0x0c, 0xd9, 0x10, 0x8c, 0x35, 0xe0, 0x5f, 0xe9, - 0xc3, 0x86, 0xfd, 0x63, 0xd8, 0xc8, 0x57, 0x3d, 0xba, 0x7b, 0x48, 0x0e, 0x87, 0x33, 0x92, 0xfc, - 0xc5, 0xae, 0x88, 0xc8, 0xcc, 0xc8, 0x88, 0xc8, 0xc8, 0xc8, 0xcc, 0xc8, 0x24, 0x4c, 0x77, 0xf7, - 0xa3, 0xd0, 0x09, 0x77, 0xd7, 0xc2, 0x28, 0xa0, 0x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0x7b, 0x05, 0x8a, 0x21, 0x72, 0x23, 0x52, 0xcf, 0xad, 0xe4, 0xaf, 0x56, - 0xd6, 0x6b, 0x89, 0x76, 0xf7, 0x77, 0x90, 0x1b, 0x59, 0x02, 0x9b, 0x18, 0x41, 0xfe, 0x68, 0x23, - 0x30, 0x7f, 0x59, 0x82, 0xda, 0x4e, 0x84, 0x0f, 0x22, 0x97, 0xe2, 0xd3, 0xe8, 0xe3, 0x1a, 0x4c, - 0xf6, 0xfa, 0x14, 0x51, 0x37, 0xf0, 0x15, 0x4f, 0x49, 0x63, 0x0f, 0x24, 0xc6, 0x4a, 0x68, 0x8c, - 0xcb, 0x30, 0x15, 0x46, 0x6e, 0x0f, 0x45, 0x03, 0x9b, 0x0d, 0x42, 0x69, 0x7c, 0x15, 0x09, 0xbb, - 0x1f, 0x38, 0x5d, 0xe3, 0x45, 0x98, 0x16, 0x3a, 0xce, 0xaa, 0x6d, 0x8a, 0x03, 0x1f, 0x26, 0xba, - 0x63, 0xe5, 0x6d, 0x4a, 0x3d, 0xae, 0xbb, 0x82, 0x55, 0x62, 0xdf, 0x4d, 0xea, 0x19, 0xeb, 0x30, - 0x4f, 0xba, 0x6e, 0x68, 0x3b, 0x81, 0x4f, 0x68, 0x84, 0x5c, 0x9f, 0xda, 0x4e, 0x07, 0x3b, 0x5d, - 0xa9, 0xc9, 0x59, 0x86, 0xdc, 0x88, 0x71, 0x1b, 0x0c, 0x65, 0xfc, 0x3b, 0x98, 0x0d, 0x31, 0x21, - 0x6e, 0xcf, 0x25, 0xd4, 0x75, 0x6c, 0xe4, 0x88, 0x1e, 0x95, 0x56, 0xf2, 0x57, 0xab, 0xeb, 0xab, - 0x71, 0x8f, 0x86, 0x44, 0xb5, 0xb6, 0x93, 0x94, 0xb9, 0xce, 0x8b, 0x58, 0x46, 0x38, 0x0c, 0x22, - 0x8c, 0x57, 0x7a, 0xe8, 0xdb, 0xc4, 0xfd, 0x0a, 0xe6, 0x66, 0x51, 0xb0, 0x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0x08, 0x2c, 0xdd, 0x19, - 0x82, 0x18, 0x1b, 0xa0, 0x27, 0xf7, 0xf6, 0xf6, 0x90, 0xeb, 0xe1, 0x16, 0x0f, 0x5c, 0xd2, 0x1d, - 0x89, 0x2f, 0xee, 0xdd, 0xe6, 0x78, 0x2b, 0xb9, 0xe9, 0x27, 0x00, 0xac, 0x12, 0x35, 0x94, 0x7b, - 0x2e, 0xe9, 0x21, 0xea, 0x74, 0xb8, 0xad, 0xa5, 0x2b, 0x91, 0xe9, 0xc4, 0x0f, 0x24, 0xde, 0xaa, - 0x85, 0x59, 0x80, 0xf9, 0xe7, 0x39, 0x98, 0xce, 0xa8, 0xf6, 0x28, 0x67, 0x75, 0x09, 0x2a, 0xe9, - 0x2b, 0x2f, 0x32, 0x57, 0xc6, 0x49, 0x2e, 0xba, 0x8c, 0xfa, 0x85, 0x3a, 0x94, 0x54, 0xa6, 0xb3, - 0x38, 0x0a, 0x55, 0x9f, 0x2c, 0x0c, 0x89, 0x2b, 0x4b, 0xc6, 0x9f, 0x70, 0x10, 0xba, 0xc2, 0xc4, - 0x83, 0xf0, 0x4d, 0x98, 0x88, 0x30, 0x22, 0x81, 0x2f, 0xdd, 0xc4, 0xc5, 0xf1, 0x86, 0xb9, 0x66, - 0x71, 0x22, 0x4b, 0x12, 0x9b, 0x07, 0x30, 0x21, 0x20, 0x46, 0x05, 0x4a, 0xef, 0xf9, 0x5d, 0x3f, - 0x38, 0xf0, 0xf5, 0x73, 0x46, 0x15, 0x60, 0x3b, 0xa4, 0x32, 0x37, 0x5b, 0xd7, 0x8c, 0x39, 0xd0, - 0xd3, 0xd7, 0x2b, 0xd8, 0x30, 0xd1, 0x73, 0x86, 0x01, 0xd5, 0x06, 0xf6, 0xf6, 0xac, 0xc0, 0xf3, - 0x70, 0xeb, 0x06, 0x72, 0xba, 0x7a, 0xde, 0x98, 0x86, 0x49, 0xcb, 0x11, 0x89, 0xd7, 0x44, 0x2f, - 0x18, 0x8b, 0x30, 0x7b,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c6, 0x4a, 0xfc, 0x35, 0x98, 0x4f, 0xd7, 0x70, - 0x80, 0xbc, 0x8c, 0x77, 0x31, 0x92, 0x92, 0xef, 0x23, 0x4f, 0x14, 0xf9, 0x1c, 0x2c, 0xa7, 0x8b, - 0x0c, 0x89, 0x5b, 0xf8, 0x94, 0xc5, 0xa4, 0xdc, 0x88, 0xb4, 0xbd, 0x61, 0xe9, 0x89, 0x4d, 0xf7, - 0xaa, 0x97, 0x15, 0xdc, 0x8b, 0x30, 0xad, 0x02, 0x17, 0x41, 0x26, 0x37, 0xdb, 0x25, 0x50, 0x10, - 0xb1, 0x29, 0xb2, 0x13, 0x05, 0x94, 0xc6, 0xed, 0xeb, 0x72, 0x8a, 0x94, 0x50, 0x41, 0xf6, 0x6f, - 0xe0, 0xfc, 0xf0, 0xb5, 0xe0, 0x34, 0x03, 0x33, 0x32, 0x5e, 0x1b, 0x7e, 0xf8, 0x42, 0xb9, 0xc1, - 0x0f, 0x60, 0x42, 0x64, 0xa2, 0x24, 0x09, 0xf1, 0xda, 0x31, 0x57, 0x02, 0x4e, 0x98, 0xb0, 0x69, - 0x7e, 0x55, 0x83, 0xb2, 0xba, 0x8c, 0x67, 0x9c, 0x87, 0x5c, 0x10, 0xca, 0x47, 0x33, 0x32, 0x1b, - 0x6e, 0xb9, 0x20, 0x3c, 0x71, 0x0a, 0x68, 0x66, 0x9d, 0x52, 0x38, 0xc1, 0x3a, 0xc5, 0xfc, 0x69, - 0x0e, 0x26, 0x1f, 0xec, 0x3b, 0x0e, 0x57, 0x97, 0x71, 0x29, 0xf3, 0x76, 0x47, 0x86, 0x0d, 0xf1, - 0x42, 0xc7, 0x11, 0x27, 0xbc, 0xe7, 0x47, 0xde, 0xa9, 0x48, 0xdd, 0x41, 0xbd, 0x04, 0x15, 0xd2, - 0x09, 0x22, 0x6a, 0xa7, 0x5e, 0xaa, 0xb0, 0x80, 0x83, 0xf8, 0xab, 0x28, 0x2c, 0x4e, 0xea, 0x20, - 0x62, 0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x9b, 0xf7, 0x45, 0x96, 0x5c, 0xdc, 0x0b, 0x2e, 0x0f, 0x7e, 0xd2, 0x26, - 0x9b, 0x8c, 0x31, 0x39, 0x56, 0xe0, 0x41, 0x3c, 0x09, 0x35, 0x76, 0xfa, 0xa4, 0x83, 0x5b, 0x7a, - 0x9e, 0x59, 0x4f, 0x5c, 0xcf, 0x98, 0x67, 0xa1, 0xf5, 0x82, 0xb1, 0x04, 0xf3, 0xe9, 0x2a, 0x6f, - 0x06, 0x5b, 0x01, 0xed, 0xb8, 0x7e, 0x5b, 0x2f, 0xae, 0x5e, 0x81, 0xd2, 0xad, 0x43, 0x1a, 0xa1, - 0xed, 0x50, 0x74, 0x3e, 0x08, 0xf5, 0x73, 0x86, 0x0e, 0x53, 0x16, 0x46, 0xad, 0x6d, 0xaf, 0xc5, - 0xb7, 0x25, 0x74, 0x6d, 0xd5, 0x84, 0x99, 0x91, 0x85, 0x13, 0x33, 0x83, 0x8d, 0xc8, 0x79, 0xeb, - 0x0d, 0xfb, 0xdf, 0x06, 0x91, 0x7e, 0xee, 0xc6, 0x4b, 0x7f, 0xf1, 0x7f, 0xcb, 0xda, 0x87, 0x1f, - 0xbd, 0xa0, 0xfd, 0xe4, 0xa3, 0x17, 0xb4, 0xbf, 0xfe, 0xe8, 0x05, 0xed, 0x7f, 0xff, 0xcd, 0x0b, - 0xe7, 0x40, 0x0f, 0xa2, 0xf6, 0x1a, 0x75, 0xbb, 0xfb, 0x6b, 0x32, 0x58, 0xd8, 0x9d, 0xe0, 0x7f, - 0x5e, 0xff, 0x97, 0x00, 0x00, 0x00, 0xff, 0xff, 0xee, 0x06, 0x54, 0x9e, 0x6f, 0x68, 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 m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x18 - } - 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 len(dAtA) - i, nil -} +func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = 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 len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + } + if m.Version != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + } + 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 } @@ -11585,79 +7063,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 } @@ -11665,87 +7127,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 } @@ -11753,64 +7202,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 } @@ -11818,187 +7252,168 @@ 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.TxnFileChunks) > 0 { - dAtA9 := make([]byte, len(m.TxnFileChunks)*10) - var j8 int - for _, num := range m.TxnFileChunks { - for num >= 1<<7 { - dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j8++ - } - dAtA9[j8] = uint8(num) - j8++ + 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 -= j8 - copy(dAtA[i:], dAtA9[:j8]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j8)) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa2 + 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 len(m.PrimaryLock) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) + i += copy(dAtA[i:], m.PrimaryLock) } - if m.MaxCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxCommitTs)) - i-- - dAtA[i] = 0x70 + if m.StartVersion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if m.TryOnePc { - i-- - if m.TryOnePc { + if m.LockTtl != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) + } + if m.SkipConstraintCheck { + dAtA[i] = 0x30 + i++ + if m.SkipConstraintCheck { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x68 + i++ } - 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 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++ } + 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 { - i-- + dAtA[i] = 0x58 + i++ if m.UseAsyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x58 + i++ } - 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 { - dAtA11 := make([]byte, len(m.PessimisticActions)*10) - var j10 int - for _, num := range m.PessimisticActions { - for num >= 1<<7 { - dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j10++ - } - dAtA11[j10] = uint8(num) - j10++ + 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) } - i -= j10 - copy(dAtA[i:], dAtA11[:j10]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j10)) - i-- - dAtA[i] = 0x3a } - if m.SkipConstraintCheck { - i-- - if m.SkipConstraintCheck { + if m.TryOnePc { + dAtA[i] = 0x68 + i++ + if m.TryOnePc { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x30 - } - if m.LockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) - i-- - dAtA[i] = 0x28 + i++ } - if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x20 + if m.MaxCommitTs != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxCommitTs)) } - 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.AssertionLevel != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) } - 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)) + 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-- - dAtA[i] = 0x12 + i += n } } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.TxnFileChunks) > 0 { + dAtA12 := make([]byte, len(m.TxnFileChunks)*10) + var j11 int + for _, num := range m.TxnFileChunks { + for num >= 1<<7 { + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j11++ } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + dAtA12[j11] = uint8(num) + j11++ } - i-- - dAtA[i] = 0xa + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x6 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j11)) + i += copy(dAtA[i:], dAtA12[:j11]) } - 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 } @@ -12006,36 +7421,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 } @@ -12043,74 +7449,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())) + n13, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - 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())) + n14, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n14 } - 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 } @@ -12118,139 +7509,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())) + n15, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - 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 } @@ -12258,63 +7635,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 } @@ -12322,112 +7689,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())) + n16, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n16 } - 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())) + n17, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n17 } - 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 } @@ -12435,57 +7783,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())) + n18, 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 += n18 } 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 } @@ -12493,64 +7829,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())) + n19, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n19 } 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())) + n20, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 + } + 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 } @@ -12558,67 +7879,55 @@ 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.IsTxnFile { - i-- - if m.IsTxnFile { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n21, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa0 + i += n21 } - 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.AdviseLockTtl != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AdviseLockTtl)) } - 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.IsTxnFile { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x6 + i++ + if m.IsTxnFile { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - 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 } @@ -12626,67 +7935,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())) + n22, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - 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())) + n23, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n23 } 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())) + n24, err := m.ExecDetailsV2.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 *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 } @@ -12694,112 +7988,100 @@ 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.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n25, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 } - if m.IsTxnFile { - i-- - if m.IsTxnFile { + 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] = 0x6 - i-- - dAtA[i] = 0xa0 + i++ } - if m.VerifyIsPrimary { - i-- - if m.VerifyIsPrimary { + if m.ForceSyncCommit { + dAtA[i] = 0x38 + i++ + if m.ForceSyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x48 + i++ } if m.ResolvingPessimisticLock { - i-- + dAtA[i] = 0x40 + i++ if m.ResolvingPessimisticLock { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 + i++ } - if m.ForceSyncCommit { - i-- - if m.ForceSyncCommit { + if m.VerifyIsPrimary { + dAtA[i] = 0x48 + i++ + if m.VerifyIsPrimary { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 + i++ } - if m.RollbackIfNotExist { - i-- - if m.RollbackIfNotExist { + if m.IsTxnFile { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x6 + i++ + if m.IsTxnFile { 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 - } - 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 + 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 } @@ -12807,89 +8089,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())) + n26, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n26 } - 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())) + n27, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n27 } - 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())) + n28, err := m.LockInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n28 } - 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())) + n29, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n29 } - 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 } @@ -12897,52 +8162,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())) + n30, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 } 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 } @@ -12950,81 +8203,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())) + n31, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n31 } - 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())) + n32, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n32 } 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())) + n33, err := m.ExecDetailsV2.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 *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 } @@ -13032,69 +8268,57 @@ 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.IsTxnFile { - i-- - if m.IsTxnFile { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n34, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa0 + i += n34 } - if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- - dAtA[i] = 0x20 + 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-- + for _, b := range m.Keys { dAtA[i] = 0x1a + 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.CommitVersion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) } - 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.IsTxnFile { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x6 + i++ + if m.IsTxnFile { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - return len(dAtA) - i, nil + 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 } @@ -13102,67 +8326,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())) + n35, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n35 } - 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())) + n36, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n36 } 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())) + n37, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n37 } - 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 } @@ -13170,45 +8379,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 } @@ -13216,45 +8414,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())) + n38, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 } 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 } @@ -13262,55 +8448,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.CurrentTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) - i-- - dAtA[i] = 0x20 - } - 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())) + n39, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 } 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.StartVersion != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + } + 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 } @@ -13318,55 +8492,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())) + n40, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 } 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())) + n41, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n41 + } + 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 } @@ -13374,52 +8535,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())) + n42, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 } 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 } @@ -13427,76 +8576,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())) + n43, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n43 } - 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())) + n44, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n44 } - 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())) + n45, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n45 } - 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 } @@ -13504,64 +8636,52 @@ 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 m.IsTxnFile { - i-- - if m.IsTxnFile { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n46, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa0 + i += n46 + } + 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-- + for _, b := range m.Keys { dAtA[i] = 0x1a + 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)) + if m.IsTxnFile { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x6 + i++ + if m.IsTxnFile { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ } - 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 } @@ -13569,62 +8689,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())) + n47, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n47 } 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())) + n48, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 } - 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())) + n49, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n49 } - 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 } @@ -13632,62 +8737,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())) + n50, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 } - 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 } @@ -13695,76 +8787,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())) + n51, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n51 } - 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())) + n52, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n52 } 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())) + n53, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n53 } - 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 } @@ -13772,83 +8847,69 @@ 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 m.IsTxnFile { - i-- - if m.IsTxnFile { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa0 - } - 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())) + n54, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n54 } - 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 } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + 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) + } + } + if m.IsTxnFile { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x6 + i++ + if m.IsTxnFile { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + 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 } @@ -13856,62 +8917,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())) + n55, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n55 } 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())) + n56, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 } - 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())) + n57, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n57 } - 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 } @@ -13919,43 +8965,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())) + n58, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n58 } 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 } @@ -13963,50 +8998,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())) + n59, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 } 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())) + n60, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n60 } - 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 } @@ -14014,62 +9036,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())) + n61, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 + } + 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 } @@ -14077,45 +9086,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())) + 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 *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 } @@ -14123,62 +9120,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())) + n63, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 } - 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 } @@ -14186,45 +9170,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())) + 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 *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 } @@ -14232,67 +9204,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())) + n65, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 } - 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 } @@ -14300,45 +9259,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 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++ + 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) } - 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 } @@ -14346,52 +9293,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())) + n67, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n67 } 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 } @@ -14399,62 +9333,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())) + n68, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n68 + } + 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 } @@ -14462,54 +9383,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())) + n69, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 } 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 } @@ -14517,52 +9425,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())) + n70, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n70 } 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 } @@ -14570,74 +9465,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())) + n71, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x30 - } - if m.Ttl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x28 + i += n71 } - 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 } @@ -14645,45 +9526,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())) + n72, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n72 } 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 } @@ -14691,92 +9560,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())) + n73, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n73 } - if len(m.Ttls) > 0 { - dAtA74 := make([]byte, len(m.Ttls)*10) - var j73 int - for _, num := range m.Ttls { - for num >= 1<<7 { - dAtA74[j73] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j73++ + 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 } - dAtA74[j73] = uint8(num) - j73++ + i += n } - i -= j73 - copy(dAtA[i:], dAtA74[:j73]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j73)) - 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 { + dAtA75 := make([]byte, len(m.Ttls)*10) + var j74 int + for _, num := range m.Ttls { + for num >= 1<<7 { + dAtA75[j74] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j74++ } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + dAtA75[j74] = uint8(num) + j74++ } - i-- - dAtA[i] = 0xa + dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j74)) + i += copy(dAtA[i:], dAtA75[:j74]) } - 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 } @@ -14784,45 +9638,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())) + 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 *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 } @@ -14830,62 +9672,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())) + n77, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n77 + } + 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 } @@ -14893,45 +9722,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())) + 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 *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 } @@ -14939,64 +9756,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())) + n79, 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 += n79 } 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 } @@ -15004,45 +9808,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())) + n80, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n80 } 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 } @@ -15050,84 +9842,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())) + n81, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n81 } - 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 - } - 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++ } - 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 } @@ -15135,52 +9913,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())) + n82, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n82 } 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 } @@ -15188,59 +9953,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())) + n83, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n83 } - 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 } @@ -15248,45 +9999,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())) + n84, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n84 } 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 } @@ -15294,84 +10033,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())) + n85, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n85 } - 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 + i++ } - 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 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 } @@ -15379,52 +10104,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 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-- - dAtA[i] = 0x12 + 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.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Kvs) > 0 { + for _, msg := range m.Kvs { + 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] = 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 } @@ -15432,52 +10144,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())) + n87, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n87 } 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 } @@ -15485,45 +10184,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())) + n88, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n88 } 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 } @@ -15531,43 +10218,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())) + 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 *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 } @@ -15575,33 +10251,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 } @@ -15609,43 +10275,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())) + n90, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n90 } 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 } @@ -15653,57 +10308,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 } @@ -15711,43 +10354,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())) + n91, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n91 } 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 } @@ -15755,33 +10387,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 } @@ -15789,55 +10411,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())) + n92, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n92 } - 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 } @@ -15845,47 +10455,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 } @@ -15893,64 +10491,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())) + n93, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n93 + } + 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 } @@ -15958,92 +10543,73 @@ 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 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] = 0x6 - i-- - dAtA[i] = 0xa2 + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n94, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n94 } - 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())) + n95, err := m.Left.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n95 } 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())) + n96, err := m.Right.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n96 } - if m.Left != nil { - { - size, err := m.Left.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] = 0x12 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Errors) > 0 { + for _, msg := range m.Errors { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x6 + 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 } @@ -16051,57 +10617,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())) + n97, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n97 } 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 } @@ -16109,55 +10662,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())) + n98, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n98 } 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())) + n99, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n99 } - 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 } @@ -16165,45 +10705,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())) + n100, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n100 } 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 } @@ -16211,57 +10739,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())) + n101, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n101 } 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())) + n102, err := m.Info.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n102 } - 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 } @@ -16269,43 +10783,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())) + n103, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n103 } 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 } @@ -16313,64 +10816,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())) + n104, 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 += n104 } 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())) + n105, err := m.Info.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n105 } - 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 } @@ -16378,308 +10866,285 @@ 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.ClusterId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x98 + 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())) + n106, 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 + i += n106 } - 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)) + if m.Peer != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Peer.Size())) + n107, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe2 + i += n107 } - if m.BusyThresholdMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BusyThresholdMs)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd8 + if m.Term != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) } - if m.TxnSource != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSource)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc8 + if m.Priority != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Priority)) } - 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.IsolationLevel != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.IsolationLevel)) } - 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)) + if m.NotFillCache { + dAtA[i] = 0x40 + i++ + if m.NotFillCache { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba + i++ } - if len(m.CommittedLocks) > 0 { - dAtA110 := make([]byte, len(m.CommittedLocks)*10) - var j109 int - for _, num := range m.CommittedLocks { - for num >= 1<<7 { - dAtA110[j109] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j109++ - } - dAtA110[j109] = uint8(num) - j109++ + if m.SyncLog { + dAtA[i] = 0x48 + i++ + if m.SyncLog { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= j109 - copy(dAtA[i:], dAtA110[:j109]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j109)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if m.ApiVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa8 + i++ } - if m.IsRetryRequest { - i-- - if m.IsRetryRequest { + if m.RecordTimeStat { + dAtA[i] = 0x50 + i++ + if m.RecordTimeStat { 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 + i++ } - 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 { + if m.RecordScanStat { + dAtA[i] = 0x58 + i++ + if m.RecordScanStat { 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 + i++ } - 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 m.ReplicaRead { + dAtA[i] = 0x60 + i++ + if m.ReplicaRead { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } if len(m.ResolvedLocks) > 0 { - dAtA112 := make([]byte, len(m.ResolvedLocks)*10) - var j111 int + dAtA109 := make([]byte, len(m.ResolvedLocks)*10) + var j108 int for _, num := range m.ResolvedLocks { for num >= 1<<7 { - dAtA112[j111] = uint8(uint64(num)&0x7f | 0x80) + dAtA109[j108] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j111++ + j108++ } - dAtA112[j111] = uint8(num) - j111++ + dAtA109[j108] = uint8(num) + j108++ } - i -= j111 - copy(dAtA[i:], dAtA112[:j111]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j111)) - i-- dAtA[i] = 0x6a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j108)) + i += copy(dAtA[i:], dAtA109[:j108]) } - if m.ReplicaRead { - i-- - if m.ReplicaRead { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 + if m.MaxExecutionDurationMs != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MaxExecutionDurationMs)) } - if m.RecordScanStat { - i-- - if m.RecordScanStat { + 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] = 0x58 + i++ } - if m.RecordTimeStat { - i-- - if m.RecordTimeStat { + 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] = 0x50 + i++ } - if m.SyncLog { - i-- - if m.SyncLog { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.ApiVersion != 0 { + dAtA[i] = 0xa8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ApiVersion)) + } + if len(m.CommittedLocks) > 0 { + dAtA111 := make([]byte, len(m.CommittedLocks)*10) + var j110 int + for _, num := range m.CommittedLocks { + for num >= 1<<7 { + dAtA111[j110] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j110++ + } + dAtA111[j110] = uint8(num) + j110++ } - i-- - dAtA[i] = 0x48 + dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j110)) + i += copy(dAtA[i:], dAtA111[:j110]) } - if m.NotFillCache { - i-- - if m.NotFillCache { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.TraceContext != nil { + dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TraceContext.Size())) + n112, err := m.TraceContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x40 + i += n112 } - if m.IsolationLevel != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.IsolationLevel)) - i-- - dAtA[i] = 0x38 + 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.Priority != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x30 + if m.TxnSource != 0 { + dAtA[i] = 0xc8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSource)) } - if m.Term != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x28 + if m.BusyThresholdMs != 0 { + dAtA[i] = 0xd8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.BusyThresholdMs)) } - 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)) + if m.ResourceControlContext != nil { + dAtA[i] = 0xe2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ResourceControlContext.Size())) + n113, err := m.ResourceControlContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n113 } - 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.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())) + n114, err := m.SourceStmt.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n114 } - if m.RegionId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.ClusterId != 0 { + dAtA[i] = 0x98 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ClusterId)) } - return len(dAtA) - i, nil + return i, nil } func (m *ResourceControlContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16687,50 +11152,38 @@ func (m *ResourceControlContext) Marshal() (dAtA []byte, err error) { } func (m *ResourceControlContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceControlContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n115, err := m.Penalty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n115 } - 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 } @@ -16738,48 +11191,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 } @@ -16787,106 +11230,94 @@ 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.IsTxnFile { - i-- - if m.IsTxnFile { + 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.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 { + dAtA[i] = 0x40 + i++ + if m.UseAsyncCommit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa0 + i++ } - if m.DurationToLastUpdateMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DurationToLastUpdateMs)) - i-- - dAtA[i] = 0x58 + if m.MinCommitTs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) } 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-- + for _, b := range m.Secondaries { dAtA[i] = 0x52 + 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] = 0x48 + if m.DurationToLastUpdateMs != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DurationToLastUpdateMs)) } - if m.UseAsyncCommit { - i-- - if m.UseAsyncCommit { + if m.IsTxnFile { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x6 + i++ + if m.IsTxnFile { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 + i++ } - 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 - } - 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 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 } @@ -16894,148 +11325,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())) + n116, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n116 } - 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())) + n117, err := m.Conflict.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n117 } - 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())) + n118, err := m.AlreadyExist.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n118 } 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())) + n119, err := m.Deadlock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n119 } - 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())) + n120, err := m.CommitTsExpired.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n120 } - 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())) + n121, err := m.TxnNotFound.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n121 } - 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())) + n122, err := m.CommitTsTooLarge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n122 } - 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())) + n123, err := m.AssertionFailed.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n123 } - 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())) + n124, err := m.PrimaryMismatch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n124 } - 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 } @@ -17043,60 +11445,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 } @@ -17104,33 +11495,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 } @@ -17138,64 +11519,51 @@ 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 len(m.DeadlockKey) > 0 { - i -= len(m.DeadlockKey) - copy(dAtA[i:], m.DeadlockKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.DeadlockKey))) - i-- - dAtA[i] = 0x2a + 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 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 m.LockTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) - i-- - dAtA[i] = 0x8 + if len(m.DeadlockKey) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.DeadlockKey))) + i += copy(dAtA[i:], m.DeadlockKey) } - 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 } @@ -17203,48 +11571,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 } @@ -17252,38 +11610,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 } @@ -17291,31 +11639,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 } @@ -17323,53 +11662,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 } @@ -17377,38 +11706,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())) + n125, err := m.LockInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n125 } - 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 } @@ -17416,46 +11734,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 } @@ -17463,61 +11772,52 @@ 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.KvGrpcWaitTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvGrpcWaitTimeNs)) - i-- - dAtA[i] = 0x38 + if m.WaitWallTimeNs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeNs)) } - if m.KvGrpcProcessTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvGrpcProcessTimeNs)) - i-- - dAtA[i] = 0x30 + 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.ProcessSuspendWallTimeNs != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessSuspendWallTimeNs)) } if m.KvReadWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeNs)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvReadWallTimeNs)) } - if m.ProcessSuspendWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessSuspendWallTimeNs)) - i-- - dAtA[i] = 0x18 + if m.TotalRpcWallTimeNs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) } - if m.ProcessWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ProcessWallTimeNs)) - i-- - dAtA[i] = 0x10 + if m.KvGrpcProcessTimeNs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvGrpcProcessTimeNs)) } - if m.WaitWallTimeNs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeNs)) - i-- - dAtA[i] = 0x8 + if m.KvGrpcWaitTimeNs != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KvGrpcWaitTimeNs)) } - 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 } @@ -17525,41 +11825,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 } @@ -17567,62 +11858,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())) + n126, err := m.Write.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n126 } 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())) + n127, err := m.Lock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n127 } - 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())) + n128, err := m.Data.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 *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 } @@ -17630,91 +11906,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 } @@ -17722,50 +11989,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())) + n129, err := m.TimeDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n129 } 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())) + n130, err := m.ScanDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n130 } - 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 } @@ -17773,74 +12027,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())) + n131, err := m.TimeDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n131 } - 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())) + n132, err := m.ScanDetailV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n132 } 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())) + n133, err := m.WriteDetail.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n133 } - 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())) + n134, err := m.TimeDetailV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n134 } - 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 } @@ -17848,115 +12085,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 } @@ -17964,52 +12192,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())) + n135, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n135 } 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 } @@ -18017,50 +12232,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 } @@ -18068,83 +12272,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 } @@ -18152,38 +12346,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 } @@ -18191,28 +12375,64 @@ 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.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.UseAsyncCommit { + dAtA[i] = 0x40 + i++ + if m.UseAsyncCommit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + 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.RollbackTs) > 0 { dAtA137 := make([]byte, len(m.RollbackTs)*10) @@ -18226,77 +12446,28 @@ func (m *MvccLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA137[j136] = uint8(num) j136++ } - i -= j136 - copy(dAtA[i:], dAtA137[:j136]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j136)) - i-- dAtA[i] = 0x52 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j136)) + i += copy(dAtA[i:], dAtA137[:j136]) } - 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.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.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 } @@ -18304,66 +12475,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())) + n138, err := m.Lock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n138 } 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 } @@ -18371,48 +12527,39 @@ 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 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Status)) } if m.IsTxnFile { - i-- + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x6 + i++ if m.IsTxnFile { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa0 - } - if m.Status != 0 { - 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 + i++ } - 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 } @@ -18420,40 +12567,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 } @@ -18461,65 +12597,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())) + n139, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n139 } - 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())) + n140, err := m.ReadState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n140 } - 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 } @@ -18527,36 +12650,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 } @@ -18564,45 +12678,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 } @@ -18610,24 +12713,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 { dAtA142 := make([]byte, len(m.Regions)*10) var j141 int @@ -18640,19 +12729,23 @@ func (m *CheckLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA142[j141] = uint8(num) j141++ } - i -= j141 - copy(dAtA[i:], dAtA142[:j141]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(j141)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j141)) + i += copy(dAtA[i:], dAtA142[:j141]) + } + if m.Ts != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) } - return len(dAtA) - i, nil + 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 } @@ -18660,38 +12753,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())) + n143, err := m.KeyRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n143 } - 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 } @@ -18699,31 +12781,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 } @@ -18731,52 +12804,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())) + n144, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n144 } 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 } @@ -18784,60 +12844,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())) + n145, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n145 + } + 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 } @@ -18845,81 +12893,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())) + n146, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n146 } - 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 } @@ -18927,72 +12960,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())) + n147, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n147 } - 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 + 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] = 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 + 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 } @@ -19000,38 +13020,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())) + 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 *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 } @@ -19039,59 +13048,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())) + 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 *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 } @@ -19099,38 +13094,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())) + n150, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n150 } - 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 } @@ -19138,59 +13122,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())) + 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 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 } @@ -19198,73 +13168,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())) + n152, 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 += n152 } 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 } @@ -19272,52 +13226,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())) + n153, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n153 } 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 } @@ -19325,57 +13266,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())) + n154, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n154 } 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 } @@ -19383,60 +13311,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())) + n155, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n155 } - 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 } @@ -19444,119 +13360,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 - } + nn156, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn156 } - return len(dAtA) - i, nil + return i, nil } func (m *CompactError_ErrInvalidStartKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CompactError_ErrInvalidStartKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + 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())) + n157, err := m.ErrInvalidStartKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n157 } - 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())) + n158, err := m.ErrPhysicalTableNotExist.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n158 } - 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())) + n159, err := m.ErrCompactInProgress.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n159 } - 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())) + n160, err := m.ErrTooManyPendingTasks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n160 } - 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 } @@ -19564,26 +13441,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 } @@ -19591,26 +13459,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 } @@ -19618,26 +13477,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 } @@ -19645,26 +13495,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 } @@ -19672,53 +13513,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 } @@ -19726,62 +13557,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())) + n161, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n161 } 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) + } + if len(m.CompactedEndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedEndKey))) + i += copy(dAtA[i:], m.CompactedEndKey) } - return len(dAtA) - i, nil + 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 } @@ -19789,33 +13607,23 @@ func (m *TiFlashSystemTableRequest) Marshal() (dAtA []byte, err error) { } func (m *TiFlashSystemTableRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TiFlashSystemTableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var 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.Sql) > 0 { - i -= len(m.Sql) - copy(dAtA[i:], m.Sql) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Sql))) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Sql))) + i += copy(dAtA[i:], m.Sql) } - return len(dAtA) - i, nil + return i, nil } func (m *TiFlashSystemTableResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -19823,36 +13631,25 @@ func (m *TiFlashSystemTableResponse) Marshal() (dAtA []byte, err error) { } func (m *TiFlashSystemTableResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TiFlashSystemTableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + 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 := 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 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Data.Size())) + n162, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n162 + return i, nil } func (m *FlushRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -19860,84 +13657,70 @@ func (m *FlushRequest) Marshal() (dAtA []byte, err error) { } func (m *FlushRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlushRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n163, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n163 } - if m.AssertionLevel != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) - i-- - dAtA[i] = 0x40 + 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.LockTtl != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) - i-- - dAtA[i] = 0x38 + if len(m.PrimaryKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryKey))) + i += copy(dAtA[i:], m.PrimaryKey) } - if m.Generation != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Generation)) - i-- - dAtA[i] = 0x30 + if m.StartTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } if m.MinCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x20 - } - 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] = 0x1a + if m.Generation != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Generation)) } - 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.LockTtl != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) } - 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.AssertionLevel != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) } - return len(dAtA) - i, nil + return i, nil } func (m *FlushResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -19945,64 +13728,49 @@ func (m *FlushResponse) Marshal() (dAtA []byte, err error) { } func (m *FlushResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlushResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n164, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n164 } 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())) + n165, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n165 + } + return i, nil } func (m *BufferBatchGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -20010,52 +13778,40 @@ func (m *BufferBatchGetRequest) Marshal() (dAtA []byte, err error) { } func (m *BufferBatchGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BufferBatchGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n166, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n166 } 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 *BufferBatchGetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -20063,76 +13819,59 @@ func (m *BufferBatchGetResponse) Marshal() (dAtA []byte, err error) { } func (m *BufferBatchGetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BufferBatchGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n167, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n167 } - 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())) + n168, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n168 } 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] = 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())) + n169, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n169 } - return len(dAtA) - i, nil + return i, nil } func (m *GetHealthFeedbackRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -20140,38 +13879,27 @@ func (m *GetHealthFeedbackRequest) Marshal() (dAtA []byte, err error) { } func (m *GetHealthFeedbackRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetHealthFeedbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n170, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n170 } - return len(dAtA) - i, nil + return i, nil } func (m *GetHealthFeedbackResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -20179,50 +13907,37 @@ func (m *GetHealthFeedbackResponse) Marshal() (dAtA []byte, err error) { } func (m *GetHealthFeedbackResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetHealthFeedbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n171, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n171 } if m.HealthFeedback != nil { - { - size, err := m.HealthFeedback.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.HealthFeedback.Size())) + n172, err := m.HealthFeedback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n172 } - return len(dAtA) - i, nil + return i, nil } func (m *HealthFeedback) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -20230,52 +13945,38 @@ func (m *HealthFeedback) Marshal() (dAtA []byte, err error) { } func (m *HealthFeedback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HealthFeedback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SlowScore != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SlowScore)) - i-- - dAtA[i] = 0x18 + if m.StoreId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StoreId)) } if m.FeedbackSeqNo != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.FeedbackSeqNo)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.FeedbackSeqNo)) } - if m.StoreId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x8 + if m.SlowScore != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SlowScore)) } - return len(dAtA) - i, nil + 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 { @@ -20289,16 +13990,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 { @@ -20320,16 +14015,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 { @@ -20359,16 +14048,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 { @@ -20385,16 +14068,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 { @@ -20467,16 +14144,10 @@ func (m *PrewriteRequest) Size() (n int) { } n += 2 + sovKvrpcpb(uint64(l)) + 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 { @@ -20485,16 +14156,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 { @@ -20517,16 +14182,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 { @@ -20576,16 +14235,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 { @@ -20604,16 +14257,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 { @@ -20652,16 +14299,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 { @@ -20680,16 +14321,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 { @@ -20706,16 +14341,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 { @@ -20735,16 +14364,10 @@ func (m *TxnHeartBeatRequest) Size() (n int) { if m.IsTxnFile { n += 3 } - 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 { @@ -20762,16 +14385,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 { @@ -20806,16 +14423,10 @@ func (m *CheckTxnStatusRequest) Size() (n int) { if m.IsTxnFile { n += 3 } - 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 { @@ -20843,16 +14454,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 { @@ -20868,16 +14473,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 { @@ -20901,16 +14500,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 { @@ -20932,16 +14525,10 @@ func (m *CommitRequest) Size() (n int) { if m.IsTxnFile { n += 3 } - 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 { @@ -20959,16 +14546,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 { @@ -20980,16 +14561,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 { @@ -21000,16 +14575,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 { @@ -21026,16 +14595,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 { @@ -21049,16 +14612,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 { @@ -21074,16 +14631,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 { @@ -21104,16 +14655,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 { @@ -21132,16 +14677,10 @@ func (m *BatchRollbackRequest) Size() (n int) { if m.IsTxnFile { n += 3 } - 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 { @@ -21156,16 +14695,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 { @@ -21186,16 +14719,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 { @@ -21216,16 +14743,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 { @@ -21253,16 +14774,10 @@ func (m *ResolveLockRequest) Size() (n int) { if m.IsTxnFile { n += 3 } - 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 { @@ -21277,16 +14792,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 { @@ -21296,16 +14805,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 { @@ -21316,16 +14819,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 { @@ -21343,16 +14840,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 { @@ -21363,16 +14854,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 { @@ -21393,16 +14878,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 { @@ -21413,16 +14892,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 { @@ -21446,16 +14919,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 { @@ -21466,16 +14933,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 { @@ -21490,16 +14951,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 { @@ -21517,16 +14972,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 { @@ -21543,16 +14992,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 { @@ -21565,16 +15008,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 { @@ -21599,16 +15036,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 { @@ -21619,16 +15050,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 { @@ -21658,16 +15083,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 { @@ -21678,16 +15097,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 { @@ -21705,16 +15118,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 { @@ -21725,16 +15132,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 { @@ -21754,16 +15155,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 { @@ -21774,16 +15169,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 { @@ -21811,16 +15200,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 { @@ -21833,16 +15216,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 { @@ -21861,16 +15238,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 { @@ -21881,16 +15252,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 { @@ -21916,16 +15281,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 { @@ -21938,16 +15297,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 { @@ -21962,16 +15315,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 { @@ -21982,16 +15329,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 { @@ -22001,32 +15342,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 { @@ -22036,16 +15365,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) @@ -22061,16 +15384,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 { @@ -22080,32 +15397,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 { @@ -22122,16 +15427,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) @@ -22144,16 +15443,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 { @@ -22173,16 +15466,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 { @@ -22209,16 +15496,10 @@ func (m *SplitRegionResponse) Size() (n int) { n += 2 + 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 { @@ -22234,16 +15515,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 { @@ -22257,16 +15532,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 { @@ -22277,16 +15546,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 { @@ -22301,16 +15564,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 { @@ -22320,16 +15577,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 { @@ -22348,16 +15599,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 { @@ -22465,16 +15710,10 @@ func (m *Context) Size() (n int) { if m.ClusterId != 0 { n += 2 + sovKvrpcpb(uint64(m.ClusterId)) } - 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) @@ -22488,16 +15727,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 { @@ -22513,16 +15746,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) @@ -22566,16 +15793,10 @@ func (m *LockInfo) Size() (n int) { if m.IsTxnFile { n += 3 } - 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 { @@ -22622,16 +15843,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 { @@ -22654,32 +15869,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 { @@ -22702,16 +15905,10 @@ func (m *Deadlock) 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 *CommitTsExpired) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -22727,16 +15924,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 { @@ -22746,31 +15937,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 { @@ -22789,32 +15968,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 { @@ -22829,16 +15996,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 { @@ -22862,16 +16023,10 @@ func (m *TimeDetailV2) Size() (n int) { if m.KvGrpcWaitTimeNs != 0 { n += 1 + sovKvrpcpb(uint64(m.KvGrpcWaitTimeNs)) } - 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 { @@ -22883,16 +16038,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 { @@ -22907,16 +16056,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 { @@ -22958,16 +16101,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 { @@ -22978,16 +16115,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 { @@ -23006,16 +16137,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 { @@ -23069,16 +16194,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 { @@ -23093,16 +16212,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 { @@ -23119,16 +16232,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 { @@ -23159,16 +16266,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 { @@ -23178,16 +16279,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 { @@ -23235,16 +16330,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 { @@ -23263,16 +16352,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 { @@ -23284,16 +16367,10 @@ func (m *TxnInfo) Size() (n int) { if m.IsTxnFile { n += 3 } - 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) @@ -23304,16 +16381,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 { @@ -23333,16 +16404,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 { @@ -23351,16 +16416,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 { @@ -23372,16 +16431,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 { @@ -23394,47 +16447,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 { @@ -23449,16 +16484,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 { @@ -23475,16 +16504,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 { @@ -23513,16 +16536,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 { @@ -23543,32 +16560,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 { @@ -23585,32 +16590,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 { @@ -23627,16 +16620,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 { @@ -23661,16 +16648,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 { @@ -23685,16 +16666,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 { @@ -23710,16 +16685,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 { @@ -23739,31 +16708,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 { @@ -23773,9 +16730,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 { @@ -23785,9 +16739,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 { @@ -23797,9 +16748,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 { @@ -23809,57 +16757,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) @@ -23878,16 +16799,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 { @@ -23905,46 +16820,28 @@ 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 *FlushRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23976,16 +16873,10 @@ func (m *FlushRequest) Size() (n int) { if m.AssertionLevel != 0 { n += 1 + sovKvrpcpb(uint64(m.AssertionLevel)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *FlushResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -24002,16 +16893,10 @@ func (m *FlushResponse) 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 *BufferBatchGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -24027,16 +16912,10 @@ func (m *BufferBatchGetRequest) 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 *BufferBatchGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -24057,32 +16936,20 @@ func (m *BufferBatchGetResponse) 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 *GetHealthFeedbackRequest) 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 *GetHealthFeedbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -24093,16 +16960,10 @@ func (m *GetHealthFeedbackResponse) Size() (n int) { l = m.HealthFeedback.Size() n += 1 + l + sovKvrpcpb(uint64(l)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *HealthFeedback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { @@ -24114,14 +16975,18 @@ func (m *HealthFeedback) Size() (n int) { if m.SlowScore != 0 { n += 1 + sovKvrpcpb(uint64(m.SlowScore)) } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } 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)))) @@ -24141,7 +17006,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 } @@ -24169,7 +17034,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 } @@ -24178,9 +17043,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24205,7 +17067,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 } @@ -24214,9 +17076,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24239,7 +17098,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 } @@ -24250,13 +17109,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 } } @@ -24281,7 +17139,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 } @@ -24309,7 +17167,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 } @@ -24318,9 +17176,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24345,7 +17200,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 } @@ -24354,9 +17209,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24381,7 +17233,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 } @@ -24390,9 +17242,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24415,7 +17264,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 } @@ -24435,7 +17284,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 } @@ -24444,9 +17293,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24463,13 +17309,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 } } @@ -24494,7 +17339,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 } @@ -24522,7 +17367,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 } @@ -24531,9 +17376,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24558,7 +17400,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 } @@ -24567,9 +17409,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24592,7 +17431,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 } @@ -24611,7 +17450,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 } @@ -24630,7 +17469,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 } @@ -24650,7 +17489,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 } @@ -24670,7 +17509,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 } @@ -24679,9 +17518,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24704,7 +17540,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 } @@ -24715,13 +17551,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 } } @@ -24746,7 +17581,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 } @@ -24774,7 +17609,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 } @@ -24783,9 +17618,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24810,7 +17642,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 } @@ -24819,9 +17651,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24844,7 +17673,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 } @@ -24853,9 +17682,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24872,13 +17698,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 } } @@ -24903,7 +17728,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 } @@ -24931,7 +17756,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 } @@ -24940,9 +17765,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24967,7 +17789,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 } @@ -24976,9 +17798,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25001,7 +17820,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 } @@ -25010,9 +17829,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25035,7 +17851,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 } @@ -25054,7 +17870,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 } @@ -25073,7 +17889,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 } @@ -25091,7 +17907,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 } @@ -25108,7 +17924,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 } @@ -25117,16 +17933,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 { @@ -25138,7 +17947,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 } @@ -25162,7 +17971,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 } @@ -25181,7 +17990,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 } @@ -25200,7 +18009,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 } @@ -25219,7 +18028,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 } @@ -25239,7 +18048,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 } @@ -25248,9 +18057,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25271,7 +18077,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 } @@ -25291,7 +18097,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 } @@ -25310,7 +18116,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 } @@ -25329,7 +18135,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 } @@ -25338,9 +18144,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25361,7 +18164,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25378,7 +18181,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 } @@ -25387,23 +18190,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 - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.TxnFileChunks) == 0 { - m.TxnFileChunks = make([]uint64, 0, elementCount) - } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -25415,7 +18204,7 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25431,13 +18220,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 } } @@ -25462,7 +18250,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 } @@ -25490,7 +18278,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 } @@ -25509,7 +18297,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 } @@ -25520,13 +18308,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 } } @@ -25551,7 +18338,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 } @@ -25579,7 +18366,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 } @@ -25588,9 +18375,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25615,7 +18399,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 } @@ -25624,9 +18408,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25649,7 +18430,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 } @@ -25668,7 +18449,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 } @@ -25687,7 +18468,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 } @@ -25696,9 +18477,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25715,13 +18493,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 } } @@ -25746,7 +18523,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 } @@ -25774,7 +18551,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 } @@ -25783,9 +18560,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25810,7 +18584,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 } @@ -25819,9 +18593,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25844,7 +18615,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 } @@ -25853,9 +18624,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25878,7 +18646,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 } @@ -25897,7 +18665,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 } @@ -25916,7 +18684,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 } @@ -25935,7 +18703,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 } @@ -25955,7 +18723,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 } @@ -25974,7 +18742,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 } @@ -25994,7 +18762,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 } @@ -26014,7 +18782,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 } @@ -26033,7 +18801,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 } @@ -26053,7 +18821,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 } @@ -26073,7 +18841,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 } @@ -26084,13 +18852,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 } } @@ -26115,7 +18882,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 } @@ -26143,7 +18910,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 } @@ -26162,7 +18929,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 } @@ -26171,9 +18938,6 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26196,7 +18960,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 } @@ -26216,7 +18980,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 } @@ -26235,7 +18999,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 } @@ -26247,13 +19011,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 } } @@ -26278,7 +19041,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 } @@ -26306,7 +19069,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 } @@ -26315,9 +19078,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26342,7 +19102,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 } @@ -26351,9 +19111,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26376,7 +19133,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 } @@ -26395,7 +19152,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 } @@ -26404,9 +19161,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26429,7 +19183,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 } @@ -26438,9 +19192,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26459,7 +19210,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 } @@ -26476,7 +19227,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 } @@ -26485,17 +19236,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 { @@ -26507,7 +19250,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 } @@ -26531,7 +19274,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 } @@ -26540,9 +19283,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26567,7 +19307,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 } @@ -26576,9 +19316,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26593,13 +19330,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 } } @@ -26624,7 +19360,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 } @@ -26652,7 +19388,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 } @@ -26661,9 +19397,6 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26688,7 +19421,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 } @@ -26707,7 +19440,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 } @@ -26726,7 +19459,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 } @@ -26735,9 +19468,6 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26750,13 +19480,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 } } @@ -26781,7 +19510,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 } @@ -26809,7 +19538,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 } @@ -26818,9 +19547,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26845,7 +19571,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 } @@ -26854,9 +19580,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26879,7 +19602,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 } @@ -26888,9 +19611,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26907,13 +19627,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 } } @@ -26938,7 +19657,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 } @@ -26966,7 +19685,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 } @@ -26975,9 +19694,6 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27002,7 +19718,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 } @@ -27011,9 +19727,6 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27036,7 +19749,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 } @@ -27055,7 +19768,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 } @@ -27074,7 +19787,7 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -27086,13 +19799,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 } } @@ -27117,7 +19829,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 } @@ -27145,7 +19857,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 } @@ -27154,9 +19866,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27181,7 +19890,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 } @@ -27190,9 +19899,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27217,7 +19923,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 } @@ -27236,7 +19942,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 } @@ -27245,9 +19951,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27264,13 +19967,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 } } @@ -27295,7 +19997,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 } @@ -27323,7 +20025,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 } @@ -27332,9 +20034,6 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27359,7 +20058,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 } @@ -27368,9 +20067,6 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27393,7 +20089,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 } @@ -27412,7 +20108,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 } @@ -27431,7 +20127,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 } @@ -27450,7 +20146,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 } @@ -27470,7 +20166,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 } @@ -27490,7 +20186,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 } @@ -27510,7 +20206,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 } @@ -27530,7 +20226,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 } @@ -27542,13 +20238,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 } } @@ -27573,7 +20268,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 } @@ -27601,7 +20296,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 } @@ -27610,9 +20305,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27637,7 +20329,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 } @@ -27646,9 +20338,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27673,7 +20362,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 } @@ -27692,7 +20381,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 } @@ -27711,7 +20400,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 } @@ -27730,7 +20419,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 } @@ -27739,9 +20428,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27766,7 +20452,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 } @@ -27775,9 +20461,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27794,13 +20477,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 } } @@ -27825,7 +20507,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 } @@ -27853,7 +20535,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 } @@ -27862,9 +20544,6 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27889,7 +20568,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 } @@ -27898,9 +20577,6 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27921,7 +20597,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 } @@ -27932,13 +20608,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 } } @@ -27963,7 +20638,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 } @@ -27991,7 +20666,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 } @@ -28000,9 +20675,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28027,7 +20699,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 } @@ -28036,9 +20708,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28063,7 +20732,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 } @@ -28072,9 +20741,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28097,7 +20763,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 } @@ -28116,7 +20782,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 } @@ -28125,9 +20791,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28144,13 +20807,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 } } @@ -28175,7 +20837,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 } @@ -28203,7 +20865,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 } @@ -28212,9 +20874,6 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28239,7 +20898,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 } @@ -28258,7 +20917,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 } @@ -28267,9 +20926,6 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28290,7 +20946,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 } @@ -28309,7 +20965,7 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -28321,13 +20977,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 } } @@ -28352,7 +21007,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 } @@ -28380,7 +21035,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 } @@ -28389,9 +21044,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28416,7 +21068,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 } @@ -28425,9 +21077,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28452,7 +21101,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 } @@ -28471,7 +21120,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 } @@ -28480,9 +21129,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28499,13 +21145,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 } } @@ -28530,7 +21175,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 } @@ -28558,7 +21203,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 } @@ -28567,9 +21212,6 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28592,7 +21234,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 } @@ -28603,13 +21245,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 } } @@ -28634,7 +21275,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 } @@ -28662,7 +21303,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 } @@ -28671,9 +21312,6 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28698,7 +21336,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 } @@ -28708,9 +21346,6 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28722,13 +21357,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 } } @@ -28753,7 +21387,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 } @@ -28781,7 +21415,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 } @@ -28790,9 +21424,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28817,7 +21448,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 } @@ -28826,9 +21457,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28851,7 +21479,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 } @@ -28870,7 +21498,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 } @@ -28881,13 +21509,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 } } @@ -28912,7 +21539,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 } @@ -28940,7 +21567,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 } @@ -28949,9 +21576,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28976,7 +21600,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 } @@ -28985,9 +21609,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29012,7 +21633,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 } @@ -29023,13 +21644,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 } } @@ -29054,7 +21674,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 } @@ -29082,7 +21702,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 } @@ -29091,9 +21711,6 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29118,7 +21735,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 } @@ -29127,9 +21744,6 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29150,7 +21764,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 } @@ -29161,13 +21775,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 } } @@ -29192,7 +21805,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 } @@ -29220,7 +21833,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 } @@ -29229,9 +21842,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29256,7 +21866,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 } @@ -29265,9 +21875,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29290,7 +21897,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 } @@ -29299,9 +21906,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29326,7 +21930,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 } @@ -29335,9 +21939,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29354,13 +21955,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 } } @@ -29385,7 +21985,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 } @@ -29413,7 +22013,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 } @@ -29422,9 +22022,6 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29449,7 +22046,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 } @@ -29468,7 +22065,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 } @@ -29477,9 +22074,6 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29500,7 +22094,7 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -29512,13 +22106,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 } } @@ -29543,7 +22136,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 } @@ -29571,7 +22164,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 } @@ -29580,9 +22173,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29607,7 +22197,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 } @@ -29616,9 +22206,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29643,7 +22230,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 } @@ -29652,9 +22239,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29671,13 +22255,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 } } @@ -29702,7 +22285,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 } @@ -29730,7 +22313,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 } @@ -29739,9 +22322,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29766,7 +22346,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 } @@ -29785,7 +22365,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 } @@ -29794,9 +22374,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29819,7 +22396,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 } @@ -29838,7 +22415,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 } @@ -29847,9 +22424,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29864,13 +22438,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 } } @@ -29895,7 +22468,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 } @@ -29923,7 +22496,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 } @@ -29932,9 +22505,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29959,7 +22529,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 } @@ -29968,9 +22538,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29995,7 +22562,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 } @@ -30004,9 +22571,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30029,7 +22593,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 } @@ -30038,9 +22602,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30057,13 +22618,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 } } @@ -30088,7 +22648,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 } @@ -30116,7 +22676,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 } @@ -30125,9 +22685,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30152,7 +22709,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 } @@ -30171,7 +22728,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 } @@ -30190,7 +22747,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 } @@ -30199,9 +22756,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30224,7 +22778,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 } @@ -30233,9 +22787,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30256,7 +22807,7 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -30268,13 +22819,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 } } @@ -30299,7 +22849,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 } @@ -30327,7 +22877,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 } @@ -30336,9 +22886,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30363,7 +22910,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 } @@ -30372,9 +22919,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30399,7 +22943,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 } @@ -30408,9 +22952,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30427,13 +22968,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 } } @@ -30458,7 +22998,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 } @@ -30486,7 +23026,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 } @@ -30495,9 +23035,6 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30522,7 +23059,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 } @@ -30533,13 +23070,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 } } @@ -30564,7 +23100,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 } @@ -30592,7 +23128,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 } @@ -30601,9 +23137,6 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30628,7 +23161,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 } @@ -30637,9 +23170,6 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30656,13 +23186,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 } } @@ -30687,7 +23216,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 } @@ -30715,7 +23244,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 } @@ -30724,9 +23253,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30751,7 +23277,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 } @@ -30760,9 +23286,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30785,7 +23308,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 } @@ -30794,9 +23317,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30819,7 +23339,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 } @@ -30831,13 +23351,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 } } @@ -30862,7 +23381,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 } @@ -30890,7 +23409,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 } @@ -30899,9 +23418,6 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30926,7 +23442,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 } @@ -30936,9 +23452,6 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30950,13 +23463,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 } } @@ -30981,7 +23493,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 } @@ -31009,7 +23521,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 } @@ -31018,9 +23530,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31045,7 +23554,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 } @@ -31054,9 +23563,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31079,7 +23585,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 } @@ -31088,9 +23594,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31113,7 +23616,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 } @@ -31132,7 +23635,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 } @@ -31143,13 +23646,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 } } @@ -31174,7 +23676,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 } @@ -31202,7 +23704,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 } @@ -31211,9 +23713,6 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31238,7 +23737,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 } @@ -31248,9 +23747,6 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31262,13 +23758,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 } } @@ -31293,7 +23788,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 } @@ -31321,7 +23816,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 } @@ -31330,9 +23825,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31357,7 +23849,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 } @@ -31376,7 +23868,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 } @@ -31385,9 +23877,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31410,7 +23899,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 } @@ -31419,9 +23908,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31444,7 +23930,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 } @@ -31463,7 +23949,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 } @@ -31474,13 +23960,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 } } @@ -31505,7 +23990,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 } @@ -31533,7 +24018,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 } @@ -31542,9 +24027,6 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31569,7 +24051,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 } @@ -31579,9 +24061,6 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31593,13 +24072,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 } } @@ -31624,7 +24102,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 } @@ -31652,7 +24130,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 } @@ -31661,9 +24139,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31688,7 +24163,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 } @@ -31697,9 +24172,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31722,7 +24194,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 } @@ -31732,9 +24204,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31746,13 +24215,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 } } @@ -31777,7 +24245,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 } @@ -31805,7 +24273,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 } @@ -31814,9 +24282,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31841,7 +24306,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 } @@ -31851,9 +24316,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31873,7 +24335,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 } @@ -31882,9 +24344,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31907,7 +24366,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 } @@ -31919,13 +24378,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 } } @@ -31950,7 +24408,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 } @@ -31978,7 +24436,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 } @@ -31987,9 +24445,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32014,7 +24469,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 } @@ -32023,9 +24478,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32046,7 +24498,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 } @@ -32056,9 +24508,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32070,13 +24519,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 } } @@ -32101,7 +24549,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 } @@ -32129,7 +24577,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 } @@ -32138,9 +24586,6 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32165,7 +24610,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 } @@ -32174,9 +24619,6 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32191,13 +24633,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 } } @@ -32222,7 +24663,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 } @@ -32250,7 +24691,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 } @@ -32259,9 +24700,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32286,7 +24724,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 } @@ -32295,9 +24733,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32320,7 +24755,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 } @@ -32329,9 +24764,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32354,7 +24786,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 } @@ -32364,9 +24796,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32386,7 +24815,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 } @@ -32405,7 +24834,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 } @@ -32417,13 +24846,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 } } @@ -32448,7 +24876,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 } @@ -32476,7 +24904,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 } @@ -32485,9 +24913,6 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32512,7 +24937,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 } @@ -32522,9 +24947,6 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32536,13 +24958,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 } } @@ -32567,7 +24988,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 } @@ -32595,7 +25016,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 } @@ -32604,9 +25025,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32631,7 +25049,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 } @@ -32640,9 +25058,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32665,7 +25080,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 } @@ -32675,9 +25090,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32697,7 +25109,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 } @@ -32716,7 +25128,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 } @@ -32734,7 +25146,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 } @@ -32751,7 +25163,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 } @@ -32760,23 +25172,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 { @@ -32788,7 +25186,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 } @@ -32804,13 +25202,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 } } @@ -32835,7 +25232,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 } @@ -32863,7 +25260,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 } @@ -32872,9 +25269,6 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32899,7 +25293,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 } @@ -32909,9 +25303,6 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32923,13 +25314,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 } } @@ -32954,7 +25344,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 } @@ -32982,7 +25372,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 } @@ -32991,9 +25381,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33018,7 +25405,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 } @@ -33027,9 +25414,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33052,7 +25436,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 } @@ -33062,9 +25446,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33084,7 +25465,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 } @@ -33096,13 +25477,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 } } @@ -33127,7 +25507,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 } @@ -33155,7 +25535,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 } @@ -33164,9 +25544,6 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33191,7 +25568,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 } @@ -33201,9 +25578,6 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33215,13 +25589,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 } } @@ -33246,7 +25619,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 } @@ -33274,7 +25647,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 } @@ -33283,9 +25656,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33310,7 +25680,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 } @@ -33319,9 +25689,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33342,7 +25709,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 } @@ -33352,9 +25719,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33374,7 +25738,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 } @@ -33386,13 +25750,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 } } @@ -33417,7 +25780,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 } @@ -33445,7 +25808,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 } @@ -33454,9 +25817,6 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33481,7 +25841,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 } @@ -33491,9 +25851,6 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33505,13 +25862,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 } } @@ -33536,7 +25892,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 } @@ -33564,7 +25920,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 } @@ -33573,9 +25929,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33600,7 +25953,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 } @@ -33609,9 +25962,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33634,7 +25984,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 } @@ -33653,7 +26003,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 } @@ -33673,7 +26023,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 } @@ -33683,9 +26033,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33705,7 +26052,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 } @@ -33725,7 +26072,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 } @@ -33734,9 +26081,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33751,13 +26095,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 } } @@ -33782,7 +26125,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 } @@ -33810,7 +26153,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 } @@ -33819,9 +26162,6 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33846,7 +26186,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 } @@ -33855,9 +26195,6 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33872,13 +26209,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 } } @@ -33903,7 +26239,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 } @@ -33931,7 +26267,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 } @@ -33940,9 +26276,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33967,7 +26300,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 } @@ -33976,9 +26309,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34001,7 +26331,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 } @@ -34010,9 +26340,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34035,7 +26362,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 } @@ -34045,9 +26372,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34059,13 +26383,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 } } @@ -34090,7 +26413,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 } @@ -34118,7 +26441,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 } @@ -34127,9 +26450,6 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34154,7 +26474,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 } @@ -34164,9 +26484,6 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34178,13 +26495,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 } } @@ -34209,7 +26525,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 } @@ -34237,7 +26553,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 } @@ -34246,9 +26562,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34273,7 +26586,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 } @@ -34282,9 +26595,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34307,7 +26617,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 } @@ -34326,7 +26636,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 } @@ -34346,7 +26656,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 } @@ -34356,9 +26666,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34378,7 +26685,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 } @@ -34390,13 +26697,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 } } @@ -34421,7 +26727,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 } @@ -34449,7 +26755,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 } @@ -34458,9 +26764,6 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34485,7 +26788,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 } @@ -34494,9 +26797,6 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34511,13 +26811,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 } } @@ -34542,7 +26841,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 } @@ -34570,7 +26869,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 } @@ -34579,9 +26878,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34606,7 +26902,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 } @@ -34615,9 +26911,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34640,7 +26933,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 } @@ -34649,9 +26942,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34666,13 +26956,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 } } @@ -34697,7 +26986,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 } @@ -34725,7 +27014,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 } @@ -34734,9 +27023,6 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34761,7 +27047,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 } @@ -34771,9 +27057,6 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34785,13 +27068,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 } } @@ -34816,7 +27098,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 } @@ -34844,7 +27126,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 } @@ -34853,9 +27135,6 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34880,7 +27159,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 } @@ -34891,13 +27170,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 } } @@ -34922,7 +27200,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 } @@ -34950,7 +27228,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 } @@ -34960,9 +27238,6 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34974,13 +27249,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 } } @@ -35005,7 +27279,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 } @@ -35033,7 +27307,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 } @@ -35042,9 +27316,6 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35069,7 +27340,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 } @@ -35080,13 +27351,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 } } @@ -35111,7 +27381,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 } @@ -35139,7 +27409,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 } @@ -35149,9 +27419,6 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35171,7 +27438,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 } @@ -35191,7 +27458,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 } @@ -35200,9 +27467,6 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35217,13 +27481,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 } } @@ -35248,7 +27511,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 } @@ -35276,7 +27539,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 } @@ -35285,9 +27548,6 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35312,7 +27572,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 } @@ -35323,13 +27583,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 } } @@ -35354,7 +27613,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 } @@ -35382,7 +27641,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 } @@ -35392,9 +27651,6 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35406,13 +27662,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 } } @@ -35437,7 +27692,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 } @@ -35465,7 +27720,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 } @@ -35474,9 +27729,6 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35501,7 +27753,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 } @@ -35520,7 +27772,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 } @@ -35529,9 +27781,6 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35554,7 +27803,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 } @@ -35565,13 +27814,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 } } @@ -35596,7 +27844,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 } @@ -35624,7 +27872,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 } @@ -35634,9 +27882,6 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35656,7 +27901,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 } @@ -35665,9 +27910,6 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35682,13 +27924,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 } } @@ -35713,7 +27954,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 } @@ -35741,7 +27982,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 } @@ -35750,9 +27991,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35777,7 +28015,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 } @@ -35786,9 +28024,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35811,7 +28046,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 } @@ -35820,9 +28055,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35843,7 +28075,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 } @@ -35855,13 +28087,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 } } @@ -35886,7 +28117,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 } @@ -35914,7 +28145,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 } @@ -35923,9 +28154,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35950,7 +28178,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 } @@ -35959,9 +28187,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35986,7 +28211,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 } @@ -35995,9 +28220,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36022,7 +28244,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 } @@ -36031,9 +28253,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36056,7 +28275,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 } @@ -36065,9 +28284,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36082,13 +28298,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 } } @@ -36113,7 +28328,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 } @@ -36141,7 +28356,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 } @@ -36150,9 +28365,6 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36177,7 +28389,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 } @@ -36196,7 +28408,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 } @@ -36205,9 +28417,6 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36222,13 +28431,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 } } @@ -36253,7 +28461,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 } @@ -36281,7 +28489,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 } @@ -36290,9 +28498,6 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36317,7 +28522,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 } @@ -36336,7 +28541,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 } @@ -36345,9 +28550,6 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36364,13 +28566,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 } } @@ -36395,7 +28596,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 } @@ -36423,7 +28624,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 } @@ -36432,9 +28633,6 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36459,7 +28657,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 } @@ -36468,9 +28666,6 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36485,13 +28680,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 } } @@ -36516,7 +28710,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 } @@ -36544,7 +28738,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 } @@ -36553,9 +28747,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36580,7 +28771,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 } @@ -36590,9 +28781,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36612,7 +28800,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 } @@ -36621,9 +28809,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36640,13 +28825,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 } } @@ -36671,7 +28855,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 } @@ -36699,7 +28883,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 } @@ -36708,9 +28892,6 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36735,7 +28916,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 } @@ -36746,13 +28927,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 } } @@ -36777,7 +28957,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 } @@ -36805,7 +28985,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 } @@ -36814,9 +28994,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36841,7 +29018,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 } @@ -36851,9 +29028,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36873,7 +29047,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 } @@ -36882,9 +29056,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36907,7 +29078,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 } @@ -36916,9 +29087,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36935,13 +29103,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 } } @@ -36966,7 +29133,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 } @@ -36994,7 +29161,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 } @@ -37013,7 +29180,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 } @@ -37022,9 +29189,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37049,7 +29213,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 } @@ -37058,9 +29222,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37085,7 +29246,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 } @@ -37104,7 +29265,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 } @@ -37123,7 +29284,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 } @@ -37142,7 +29303,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 } @@ -37162,7 +29323,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 } @@ -37182,7 +29343,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 } @@ -37202,7 +29363,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 } @@ -37222,7 +29383,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 } @@ -37240,7 +29401,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 } @@ -37257,7 +29418,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 } @@ -37266,23 +29427,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 { @@ -37294,7 +29441,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 } @@ -37318,7 +29465,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 } @@ -37337,7 +29484,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 } @@ -37356,7 +29503,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 } @@ -37375,7 +29522,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 } @@ -37395,7 +29542,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 } @@ -37404,9 +29551,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37429,7 +29573,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 } @@ -37448,7 +29592,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 } @@ -37468,7 +29612,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 } @@ -37485,7 +29629,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 } @@ -37502,7 +29646,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 } @@ -37511,23 +29655,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 { @@ -37539,7 +29669,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 } @@ -37563,7 +29693,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 } @@ -37572,9 +29702,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37599,7 +29726,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 } @@ -37609,9 +29736,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37631,7 +29755,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 } @@ -37650,7 +29774,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 } @@ -37669,7 +29793,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 } @@ -37678,9 +29802,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37705,7 +29826,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 } @@ -37724,7 +29845,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 } @@ -37743,7 +29864,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 } @@ -37752,9 +29873,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37779,7 +29897,7 @@ func (m *Context) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.ClusterId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37790,13 +29908,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 } } @@ -37821,7 +29938,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 } @@ -37849,7 +29966,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 } @@ -37859,9 +29976,6 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37881,7 +29995,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 } @@ -37890,9 +30004,6 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37917,7 +30028,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 } @@ -37928,13 +30039,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 } } @@ -37959,7 +30069,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 } @@ -37987,7 +30097,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 } @@ -38006,7 +30116,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 } @@ -38025,7 +30135,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 } @@ -38044,7 +30154,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 } @@ -38054,9 +30164,6 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38068,13 +30175,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 } } @@ -38099,7 +30205,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 } @@ -38127,7 +30233,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 } @@ -38136,9 +30242,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38161,7 +30264,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 } @@ -38180,7 +30283,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 } @@ -38189,9 +30292,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38214,7 +30314,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 } @@ -38233,7 +30333,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 } @@ -38252,7 +30352,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 } @@ -38271,7 +30371,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 } @@ -38290,7 +30390,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 } @@ -38310,7 +30410,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 } @@ -38329,7 +30429,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 } @@ -38338,9 +30438,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38361,7 +30458,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 } @@ -38380,7 +30477,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 } @@ -38392,13 +30489,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 } } @@ -38423,7 +30519,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 } @@ -38451,7 +30547,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 } @@ -38460,9 +30556,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38487,7 +30580,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 } @@ -38497,9 +30590,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38519,7 +30609,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 } @@ -38529,9 +30619,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38551,7 +30638,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 } @@ -38560,9 +30647,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38587,7 +30671,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 } @@ -38596,9 +30680,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38623,7 +30704,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 } @@ -38632,9 +30713,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38659,7 +30737,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 } @@ -38668,9 +30746,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38695,7 +30770,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 } @@ -38704,9 +30779,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38731,7 +30803,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 } @@ -38740,9 +30812,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38767,7 +30836,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 } @@ -38776,9 +30845,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38803,7 +30869,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 } @@ -38812,9 +30878,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38831,13 +30894,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 } } @@ -38862,7 +30924,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 } @@ -38890,7 +30952,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 } @@ -38909,7 +30971,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 } @@ -38928,7 +30990,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 } @@ -38937,9 +30999,6 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38962,7 +31021,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 } @@ -38971,9 +31030,6 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38996,7 +31052,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 } @@ -39015,7 +31071,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 } @@ -39026,13 +31082,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 } } @@ -39057,7 +31112,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 } @@ -39085,7 +31140,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 } @@ -39094,9 +31149,6 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39111,13 +31163,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 } } @@ -39142,7 +31193,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 } @@ -39170,7 +31221,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 } @@ -39189,7 +31240,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 } @@ -39198,9 +31249,6 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39223,7 +31271,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 } @@ -39242,7 +31290,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 } @@ -39251,9 +31299,6 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39276,7 +31321,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 } @@ -39285,9 +31330,6 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39302,13 +31344,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 } } @@ -39333,7 +31374,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 } @@ -39361,7 +31402,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 } @@ -39380,7 +31421,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 } @@ -39399,7 +31440,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 } @@ -39408,9 +31449,6 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39433,7 +31471,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 } @@ -39444,13 +31482,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 } } @@ -39475,7 +31512,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 } @@ -39503,7 +31540,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 } @@ -39522,7 +31559,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 } @@ -39531,9 +31568,6 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39548,13 +31582,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 } } @@ -39579,7 +31612,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 } @@ -39607,7 +31640,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 } @@ -39618,13 +31651,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 } } @@ -39649,7 +31681,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 } @@ -39677,7 +31709,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 } @@ -39696,7 +31728,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 } @@ -39705,9 +31737,6 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39730,7 +31759,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 } @@ -39749,7 +31778,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 } @@ -39768,7 +31797,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 } @@ -39779,13 +31808,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 } } @@ -39810,7 +31838,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 } @@ -39838,7 +31866,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 } @@ -39847,9 +31875,6 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39866,13 +31891,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 } } @@ -39897,7 +31921,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 } @@ -39925,7 +31949,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 } @@ -39944,7 +31968,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 } @@ -39963,7 +31987,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 } @@ -39982,7 +32006,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 } @@ -39993,13 +32017,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 } } @@ -40024,7 +32047,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 } @@ -40052,7 +32075,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 } @@ -40071,7 +32094,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 } @@ -40090,7 +32113,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 } @@ -40109,7 +32132,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 } @@ -40128,7 +32151,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 } @@ -40147,7 +32170,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvGrpcProcessTimeNs |= uint64(b&0x7F) << shift + m.KvGrpcProcessTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40166,7 +32189,7 @@ func (m *TimeDetailV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KvGrpcWaitTimeNs |= uint64(b&0x7F) << shift + m.KvGrpcWaitTimeNs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -40177,13 +32200,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 } } @@ -40208,7 +32230,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 } @@ -40236,7 +32258,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 } @@ -40255,7 +32277,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 } @@ -40274,7 +32296,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 } @@ -40285,13 +32307,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 } } @@ -40316,7 +32337,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 } @@ -40344,7 +32365,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 } @@ -40353,9 +32374,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40380,7 +32398,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 } @@ -40389,9 +32407,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40416,7 +32431,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 } @@ -40425,9 +32440,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40444,13 +32456,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 } } @@ -40475,7 +32486,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 } @@ -40503,7 +32514,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 } @@ -40522,7 +32533,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 } @@ -40541,7 +32552,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 } @@ -40560,7 +32571,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 } @@ -40579,7 +32590,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 } @@ -40598,7 +32609,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 } @@ -40617,7 +32628,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 } @@ -40636,7 +32647,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 } @@ -40655,7 +32666,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 } @@ -40674,7 +32685,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 } @@ -40693,7 +32704,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 } @@ -40712,7 +32723,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 } @@ -40731,7 +32742,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 } @@ -40742,13 +32753,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 } } @@ -40773,7 +32783,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 } @@ -40801,7 +32811,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 } @@ -40810,9 +32820,6 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40837,7 +32844,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 } @@ -40846,9 +32853,6 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40865,13 +32869,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 } } @@ -40896,7 +32899,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 } @@ -40924,7 +32927,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 } @@ -40933,9 +32936,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40960,7 +32960,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 } @@ -40969,9 +32969,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40996,7 +32993,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 } @@ -41005,9 +33002,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41032,7 +33026,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 } @@ -41041,9 +33035,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41060,13 +33051,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 } } @@ -41091,7 +33081,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 } @@ -41119,7 +33109,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 } @@ -41138,7 +33128,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 } @@ -41157,7 +33147,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 } @@ -41176,7 +33166,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 } @@ -41195,7 +33185,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 } @@ -41214,7 +33204,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 } @@ -41233,7 +33223,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 } @@ -41252,7 +33242,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 } @@ -41271,7 +33261,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 } @@ -41290,7 +33280,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 } @@ -41309,7 +33299,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 } @@ -41328,7 +33318,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 } @@ -41347,7 +33337,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 } @@ -41366,7 +33356,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 } @@ -41385,7 +33375,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 } @@ -41404,7 +33394,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 } @@ -41423,7 +33413,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 } @@ -41434,13 +33424,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 } } @@ -41465,7 +33454,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 } @@ -41493,7 +33482,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 } @@ -41502,9 +33491,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41529,7 +33515,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 } @@ -41538,9 +33524,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41563,7 +33546,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 } @@ -41572,9 +33555,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41589,13 +33569,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 } } @@ -41620,7 +33599,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 } @@ -41648,7 +33627,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 } @@ -41667,7 +33646,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 } @@ -41676,9 +33655,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41701,7 +33677,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 } @@ -41710,9 +33686,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41735,7 +33708,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 } @@ -41746,13 +33719,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 } } @@ -41777,7 +33749,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 } @@ -41805,7 +33777,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 } @@ -41824,7 +33796,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 } @@ -41843,7 +33815,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 } @@ -41862,7 +33834,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 } @@ -41871,9 +33843,6 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41896,7 +33865,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 } @@ -41916,7 +33885,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 } @@ -41936,7 +33905,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 } @@ -41955,7 +33924,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 } @@ -41974,7 +33943,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 } @@ -41985,13 +33954,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 } } @@ -42016,7 +33984,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 } @@ -42044,7 +34012,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 } @@ -42063,7 +34031,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 } @@ -42072,9 +34040,6 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42089,13 +34054,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 } } @@ -42120,7 +34084,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 } @@ -42148,7 +34112,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 } @@ -42167,7 +34131,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 } @@ -42186,7 +34150,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 } @@ -42195,9 +34159,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42220,7 +34181,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 } @@ -42229,9 +34190,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42254,7 +34212,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 } @@ -42273,7 +34231,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 } @@ -42292,7 +34250,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 } @@ -42311,7 +34269,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 } @@ -42331,7 +34289,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 } @@ -42340,9 +34298,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42361,7 +34316,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 } @@ -42378,7 +34333,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 } @@ -42387,23 +34342,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 { @@ -42415,7 +34356,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 } @@ -42439,7 +34380,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 } @@ -42458,7 +34399,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 } @@ -42469,13 +34410,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 } } @@ -42500,7 +34440,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 } @@ -42528,7 +34468,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 } @@ -42537,9 +34477,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42564,7 +34501,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 } @@ -42573,9 +34510,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42598,7 +34532,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 } @@ -42607,9 +34541,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42624,13 +34555,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 } } @@ -42655,7 +34585,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 } @@ -42683,7 +34613,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 } @@ -42702,7 +34632,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 } @@ -42721,7 +34651,7 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -42733,13 +34663,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 } } @@ -42764,7 +34693,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 } @@ -42792,7 +34721,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 } @@ -42801,9 +34730,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42826,7 +34752,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 } @@ -42835,9 +34761,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42852,13 +34775,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 } } @@ -42883,7 +34805,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 } @@ -42911,7 +34833,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 } @@ -42930,7 +34852,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 } @@ -42949,7 +34871,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 } @@ -42968,7 +34890,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 } @@ -42977,9 +34899,6 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43004,7 +34923,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 } @@ -43013,9 +34932,6 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43032,13 +34948,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 } } @@ -43063,7 +34978,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 } @@ -43091,7 +35006,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 } @@ -43110,7 +35025,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 } @@ -43121,13 +35036,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 } } @@ -43152,7 +35066,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 } @@ -43180,7 +35094,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 } @@ -43189,9 +35103,6 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43214,7 +35125,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 } @@ -43225,13 +35136,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 } } @@ -43256,7 +35166,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 } @@ -43282,7 +35192,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 } @@ -43299,7 +35209,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 } @@ -43308,23 +35218,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 { @@ -43336,7 +35232,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 } @@ -43360,7 +35256,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 } @@ -43371,13 +35267,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 } } @@ -43402,7 +35297,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 } @@ -43430,7 +35325,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 } @@ -43439,9 +35334,6 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43458,13 +35350,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 } } @@ -43489,7 +35380,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 } @@ -43517,7 +35408,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 } @@ -43528,13 +35419,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 } } @@ -43559,7 +35449,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 } @@ -43587,7 +35477,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 } @@ -43596,9 +35486,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43623,7 +35510,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 } @@ -43632,9 +35519,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43657,7 +35541,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 } @@ -43667,9 +35551,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43681,13 +35562,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 } } @@ -43712,7 +35592,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 } @@ -43740,7 +35620,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 } @@ -43749,9 +35629,6 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43776,7 +35653,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 } @@ -43786,9 +35663,6 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43808,7 +35682,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 } @@ -43827,7 +35701,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 } @@ -43839,13 +35713,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 } } @@ -43870,7 +35743,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 } @@ -43898,7 +35771,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 } @@ -43907,9 +35780,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43934,7 +35804,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 } @@ -43943,9 +35813,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43968,7 +35835,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 } @@ -43977,9 +35844,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44002,7 +35866,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 } @@ -44022,7 +35886,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 } @@ -44031,9 +35895,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44056,7 +35917,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 } @@ -44066,9 +35927,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44088,7 +35946,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 } @@ -44099,13 +35957,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 } } @@ -44130,7 +35987,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 } @@ -44158,7 +36015,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 } @@ -44167,9 +36024,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44194,7 +36048,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 } @@ -44204,9 +36058,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44226,7 +36077,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 } @@ -44246,7 +36097,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 } @@ -44266,7 +36117,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 } @@ -44275,9 +36126,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44292,13 +36140,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 } } @@ -44323,7 +36170,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 } @@ -44351,7 +36198,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 } @@ -44360,9 +36207,6 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44379,13 +36223,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 } } @@ -44410,7 +36253,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 } @@ -44438,7 +36281,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 } @@ -44447,9 +36290,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44474,7 +36314,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 } @@ -44484,9 +36324,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44506,7 +36343,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 } @@ -44515,9 +36352,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44532,13 +36366,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 } } @@ -44563,7 +36396,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 } @@ -44591,7 +36424,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 } @@ -44600,9 +36433,6 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44619,13 +36449,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 } } @@ -44650,7 +36479,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 } @@ -44678,7 +36507,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 } @@ -44687,9 +36516,6 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44714,7 +36540,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 } @@ -44724,9 +36550,6 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44746,7 +36569,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 } @@ -44755,9 +36578,6 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44772,13 +36592,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 } } @@ -44803,7 +36622,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 } @@ -44831,7 +36650,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 } @@ -44840,9 +36659,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44867,7 +36683,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 } @@ -44877,9 +36693,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44899,7 +36712,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 } @@ -44909,9 +36722,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44931,7 +36741,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 } @@ -44940,9 +36750,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44965,7 +36772,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 } @@ -44974,9 +36781,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44991,13 +36795,12 @@ func (m *RawCoprocessorRequest) 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 } } @@ -45022,7 +36825,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 } @@ -45050,7 +36853,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 } @@ -45059,9 +36862,6 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45086,7 +36886,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 } @@ -45096,9 +36896,6 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45118,7 +36915,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 } @@ -45127,9 +36924,6 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45144,13 +36938,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 } } @@ -45175,7 +36968,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 } @@ -45203,7 +36996,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 } @@ -45212,9 +37005,6 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45239,7 +37029,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 } @@ -45258,7 +37048,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 } @@ -45267,9 +37057,6 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45284,13 +37071,12 @@ func (m *RawChecksumRequest) 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 } } @@ -45315,7 +37101,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 } @@ -45343,7 +37129,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 } @@ -45352,9 +37138,6 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45379,7 +37162,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 } @@ -45389,9 +37172,6 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45411,7 +37191,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 } @@ -45430,7 +37210,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 } @@ -45449,7 +37229,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 } @@ -45460,13 +37240,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 } } @@ -45491,7 +37270,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 } @@ -45519,7 +37298,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 } @@ -45528,9 +37307,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45554,7 +37330,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 } @@ -45563,9 +37339,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45589,7 +37362,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 } @@ -45598,9 +37371,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45624,7 +37394,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 } @@ -45633,9 +37403,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45651,13 +37418,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 } } @@ -45682,7 +37448,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 } @@ -45702,13 +37468,12 @@ func (m *CompactErrorInvalidStartKey) 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 } } @@ -45733,7 +37498,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 } @@ -45753,13 +37518,12 @@ func (m *CompactErrorPhysicalTableNotExist) 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 } } @@ -45784,7 +37548,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 } @@ -45804,13 +37568,12 @@ func (m *CompactErrorCompactInProgress) 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 } } @@ -45835,7 +37598,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 } @@ -45855,13 +37618,12 @@ func (m *CompactErrorTooManyPendingTasks) 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 } } @@ -45886,7 +37648,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 } @@ -45914,7 +37676,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 } @@ -45923,9 +37685,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45948,7 +37707,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 } @@ -45967,7 +37726,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 } @@ -45986,7 +37745,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 } @@ -46005,7 +37764,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 } @@ -46016,13 +37775,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 } } @@ -46047,7 +37805,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 } @@ -46075,7 +37833,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 } @@ -46084,9 +37842,6 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46111,7 +37866,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 } @@ -46131,7 +37886,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 } @@ -46140,9 +37895,6 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46165,7 +37917,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 } @@ -46174,9 +37926,6 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46191,13 +37940,12 @@ func (m *CompactResponse) 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 } } @@ -46222,7 +37970,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 } @@ -46250,7 +37998,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 } @@ -46260,9 +38008,6 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46274,13 +38019,12 @@ func (m *TiFlashSystemTableRequest) 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 } } @@ -46305,7 +38049,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 } @@ -46333,7 +38077,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 } @@ -46342,9 +38086,6 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46358,13 +38099,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 } } @@ -46389,7 +38129,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46417,7 +38157,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46426,9 +38166,6 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46453,7 +38190,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46462,9 +38199,6 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46487,7 +38221,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46496,9 +38230,6 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46521,7 +38252,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTs |= uint64(b&0x7F) << shift + m.StartTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46540,7 +38271,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinCommitTs |= uint64(b&0x7F) << shift + m.MinCommitTs |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46559,7 +38290,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Generation |= uint64(b&0x7F) << shift + m.Generation |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46578,7 +38309,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LockTtl |= uint64(b&0x7F) << shift + m.LockTtl |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46597,7 +38328,7 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AssertionLevel |= AssertionLevel(b&0x7F) << shift + m.AssertionLevel |= (AssertionLevel(b) & 0x7F) << shift if b < 0x80 { break } @@ -46608,13 +38339,12 @@ func (m *FlushRequest) 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 } } @@ -46639,7 +38369,7 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46667,7 +38397,7 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46676,9 +38406,6 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46703,7 +38430,7 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46712,9 +38439,6 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46737,7 +38461,7 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46746,9 +38470,6 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46765,13 +38486,12 @@ func (m *FlushResponse) 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 } } @@ -46796,7 +38516,7 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46824,7 +38544,7 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46833,9 +38553,6 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46860,7 +38577,7 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46869,9 +38586,6 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46892,7 +38606,7 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Version |= uint64(b&0x7F) << shift + m.Version |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46903,13 +38617,12 @@ func (m *BufferBatchGetRequest) 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 } } @@ -46934,7 +38647,7 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -46962,7 +38675,7 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -46971,9 +38684,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46998,7 +38708,7 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -47007,9 +38717,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -47034,7 +38741,7 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -47043,9 +38750,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -47068,7 +38772,7 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -47077,9 +38781,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -47096,13 +38797,12 @@ func (m *BufferBatchGetResponse) 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 } } @@ -47127,7 +38827,7 @@ func (m *GetHealthFeedbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -47155,7 +38855,7 @@ func (m *GetHealthFeedbackRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -47164,9 +38864,6 @@ func (m *GetHealthFeedbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -47183,13 +38880,12 @@ func (m *GetHealthFeedbackRequest) 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 } } @@ -47214,7 +38910,7 @@ func (m *GetHealthFeedbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -47242,7 +38938,7 @@ func (m *GetHealthFeedbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -47251,9 +38947,6 @@ func (m *GetHealthFeedbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -47278,7 +38971,7 @@ func (m *GetHealthFeedbackResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -47287,9 +38980,6 @@ func (m *GetHealthFeedbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -47306,13 +38996,12 @@ func (m *GetHealthFeedbackResponse) 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 } } @@ -47337,7 +39026,7 @@ func (m *HealthFeedback) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -47365,7 +39054,7 @@ func (m *HealthFeedback) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + m.StoreId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -47384,7 +39073,7 @@ func (m *HealthFeedback) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FeedbackSeqNo |= uint64(b&0x7F) << shift + m.FeedbackSeqNo |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -47403,7 +39092,7 @@ func (m *HealthFeedback) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SlowScore |= int32(b&0x7F) << shift + m.SlowScore |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -47414,13 +39103,12 @@ func (m *HealthFeedback) 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 } } @@ -47433,7 +39121,6 @@ func (m *HealthFeedback) 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 { @@ -47465,8 +39152,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 { @@ -47483,34 +39172,511 @@ 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{ + // 7231 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7d, 0x5b, 0x6c, 0x24, 0xc9, + 0x71, 0xe0, 0x54, 0x3f, 0xd8, 0xcd, 0x68, 0xb2, 0xbb, 0x58, 0x7c, 0x35, 0x39, 0x33, 0x3b, 0x9c, + 0x5a, 0xcd, 0xee, 0x88, 0xab, 0xe5, 0x68, 0xb9, 0x0f, 0x3d, 0x6f, 0xb5, 0x33, 0x9c, 0x17, 0x77, + 0x66, 0x48, 0xa2, 0xba, 0x77, 0xf6, 0x16, 0x77, 0x52, 0x29, 0x59, 0x9d, 0xec, 0x2e, 0x74, 0x75, + 0x55, 0x4d, 0x65, 0x36, 0xc9, 0x16, 0x70, 0xc0, 0x09, 0xf7, 0x00, 0x74, 0x38, 0xdc, 0xe9, 0x04, + 0x01, 0x3a, 0x40, 0xc2, 0xfd, 0x09, 0xb8, 0x3b, 0x40, 0x86, 0x0d, 0xff, 0xd8, 0xd6, 0x87, 0x61, + 0x40, 0x1f, 0x2b, 0xc3, 0x82, 0x64, 0x18, 0x86, 0x0c, 0xd9, 0x10, 0x8c, 0x35, 0xe0, 0x5f, 0xe9, + 0xc3, 0x86, 0xfd, 0x63, 0xd8, 0xc8, 0x57, 0x3d, 0xba, 0x7b, 0x48, 0x0e, 0x87, 0x33, 0x92, 0xfc, + 0xc5, 0xae, 0x88, 0xc8, 0xcc, 0xc8, 0x88, 0xc8, 0xc8, 0xc8, 0xcc, 0xc8, 0x24, 0x4c, 0x77, 0xf7, + 0xa3, 0xd0, 0x09, 0x77, 0xd7, 0xc2, 0x28, 0xa0, 0x81, 0x51, 0x92, 0x9f, 0xcb, 0x53, 0x3d, 0x4c, + 0x91, 0x02, 0x2f, 0x4f, 0xe3, 0x28, 0x0a, 0xa2, 0xf8, 0x73, 0xae, 0x1d, 0xb4, 0x03, 0xfe, 0xf3, + 0x1a, 0xfb, 0x25, 0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0x68, + 0xcb, 0x02, 0x32, 0x94, 0x95, 0x88, 0xfb, 0x41, 0x5b, 0xd0, 0x6e, 0xc0, 0xa5, 0x08, 0xed, 0x51, + 0xbb, 0xb5, 0x6b, 0x0b, 0x29, 0x79, 0x18, 0xb5, 0x70, 0x94, 0x6e, 0x4a, 0xb8, 0xa0, 0x65, 0x46, + 0x76, 0x73, 0x97, 0xf7, 0xe9, 0x3e, 0xa7, 0x49, 0x1a, 0x5c, 0x87, 0x05, 0x55, 0x89, 0xda, 0x5c, + 0x96, 0x65, 0xe5, 0x44, 0x27, 0xca, 0x36, 0xc4, 0x46, 0xb3, 0x28, 0xf3, 0x36, 0x5c, 0xc8, 0x36, + 0xdc, 0xc3, 0x3d, 0xca, 0x56, 0xd3, 0xb2, 0xa4, 0x70, 0x3e, 0xf5, 0x54, 0xab, 0x0f, 0x24, 0x81, + 0x28, 0x7f, 0x15, 0xe4, 0x42, 0x30, 0xd5, 0x9a, 0x70, 0x3c, 0x72, 0xc3, 0x32, 0x6e, 0xe9, 0x75, + 0x58, 0x40, 0x61, 0xe8, 0x0d, 0x46, 0x45, 0x2f, 0x3c, 0xce, 0x2c, 0xc7, 0x0e, 0x89, 0xfe, 0x25, + 0xa8, 0x89, 0x42, 0x49, 0xed, 0x93, 0xf2, 0x66, 0x33, 0x03, 0x8f, 0x56, 0xde, 0xeb, 0x53, 0x7c, + 0x28, 0xae, 0x41, 0xa7, 0x5d, 0x8c, 0xa8, 0xfc, 0x01, 0x43, 0xb2, 0x68, 0x2e, 0x1e, 0xe1, 0xa2, + 0xd0, 0xe3, 0x44, 0x2e, 0xbd, 0x0c, 0x27, 0x1a, 0x2b, 0xf1, 0xd7, 0x60, 0x3e, 0x5d, 0xc3, 0x01, + 0xf2, 0x32, 0xde, 0xc5, 0x48, 0x4a, 0xbe, 0x8f, 0x3c, 0x51, 0xe4, 0x73, 0xb0, 0x9c, 0x2e, 0x32, + 0x24, 0x6e, 0xe1, 0x53, 0x16, 0x93, 0x72,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, 0x71, 0x3d, 0x63, 0x9e, 0x85, 0xd6, 0x0b, 0xc6, 0x12, 0xcc, 0xa7, 0xab, 0xbc, 0x19, + 0x6c, 0x05, 0xb4, 0xe3, 0xfa, 0x6d, 0xbd, 0xb8, 0x7a, 0x05, 0x4a, 0xb7, 0x0e, 0x69, 0x84, 0xb6, + 0x43, 0xd1, 0xf9, 0x20, 0xd4, 0xcf, 0x19, 0x3a, 0x4c, 0x59, 0x18, 0xb5, 0xb6, 0xbd, 0x16, 0xdf, + 0x96, 0xd0, 0xb5, 0x55, 0x13, 0x66, 0x46, 0x16, 0x4e, 0xcc, 0x0c, 0x36, 0x22, 0xe7, 0xad, 0x37, + 0xec, 0x7f, 0x1b, 0x44, 0xfa, 0xb9, 0x1b, 0x2f, 0xfd, 0xc5, 0xff, 0x2d, 0x6b, 0x1f, 0x7e, 0xf4, + 0x82, 0xf6, 0x93, 0x8f, 0x5e, 0xd0, 0xfe, 0xfa, 0xa3, 0x17, 0xb4, 0xff, 0xfd, 0x37, 0x2f, 0x9c, + 0x03, 0x3d, 0x88, 0xda, 0x6b, 0xd4, 0xed, 0xee, 0xaf, 0xc9, 0x60, 0x61, 0x77, 0x82, 0xff, 0x79, + 0xfd, 0x5f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x1a, 0x93, 0x38, 0x6f, 0x68, 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, 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, - 0x93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1, 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, -} - // 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, 0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 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 b4c31cc8e..c07b9c5b9 100644 --- a/pkg/meta_storagepb/meta_storagepb.pb.go +++ b/pkg/meta_storagepb/meta_storagepb.pb.go @@ -1,20 +1,42 @@ // 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 + DeleteRequest + DeleteResponse + 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 +48,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 +64,6 @@ var ErrorType_name = map[int32]string{ 1: "UNKNOWN", 2: "DATA_COMPACTED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -52,10 +73,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 +86,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 +94,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{12, 0} + return fileDescriptorMetaStoragepb, []int{12, 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 +126,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 +150,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 +183,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 +232,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 +265,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 +314,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 +355,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 +404,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 { @@ -692,7 +429,7 @@ func (m *PutResponse) GetPrevKv() *KeyValue { // copied from etcd https://github.com/etcd-io/etcd/blob/7dfd29b0cc7ce25337276dce646ca2a65aa44b4d/api/mvccpb/kv.proto type DeleteRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // range_end is the key following the last key to delete for the range [key, range_end). // If range_end is not given, the range is defined to contain only the key argument. @@ -702,44 +439,13 @@ type DeleteRequest struct { RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // If prev_kv is set, etcd gets the previous key-value pairs before deleting it. // The previous key-value pairs will be returned in the delete response. - PrevKv bool `protobuf:"varint,4,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 *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5a2dc828c1dd8152, []int{9} -} -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) + PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,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 fileDescriptorMetaStoragepb, []int{9} } func (m *DeleteRequest) GetHeader() *RequestHeader { if m != nil { @@ -770,47 +476,16 @@ func (m *DeleteRequest) GetPrevKv() bool { } type DeleteResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // deleted is the number of keys deleted by the delete range request. - Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` - PrevKvs []*KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs,proto3" json:"prev_kvs,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_5a2dc828c1dd8152, []int{10} -} -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) + Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` + PrevKvs []*KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs" json:"prev_kvs,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 fileDescriptorMetaStoragepb, []int{10} } func (m *DeleteResponse) GetHeader() *ResponseHeader { if m != nil { @@ -850,44 +525,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{11} -} -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{11} } func (m *KeyValue) GetKey() []byte { if m != nil { @@ -942,46 +586,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{12} -} -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{12} } func (m *Event) GetType() Event_EventType { if m != nil { @@ -1005,8 +618,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") @@ -1020,65 +631,8 @@ func init() { proto.RegisterType((*DeleteResponse)(nil), "meta_storagepb.DeleteResponse") 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{ - // 843 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcd, 0x8e, 0xe3, 0x44, - 0x10, 0x4e, 0xdb, 0xb1, 0x93, 0x54, 0x7e, 0xc6, 0x6a, 0x05, 0x30, 0x59, 0x26, 0x04, 0x4b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0x92, 0xf7, 0xaa, 0x1e, 0xdc, - 0x9a, 0x51, 0x90, 0xf1, 0x33, 0x01, 0x78, 0x82, 0xfc, 0x7e, 0x85, 0xad, 0x83, 0xb2, 0x98, 0x2d, - 0x67, 0x3c, 0xd2, 0x33, 0x34, 0x76, 0x3a, 0x40, 0xc9, 0x74, 0xc0, 0x8f, 0x04, 0xca, 0x82, 0xe6, - 0x1d, 0x85, 0x7c, 0x08, 0xf2, 0xdc, 0x77, 0x75, 0x49, 0x48, 0xa3, 0x67, 0x7f, 0x34, 0xc0, 0xcd, - 0xd7, 0xd6, 0xc2, 0x43, 0x33, 0x08, 0xa2, 0x14, 0xf2, 0x4b, 0x87, 0xa1, 0x60, 0x5f, 0x34, 0xc5, - 0x39, 0x60, 0x3e, 0x71, 0xbc, 0x55, 0xc2, 0x5c, 0x18, 0xc6, 0x0f, 0x04, 0x60, 0xe8, 0xfd, 0xff, - 0x22, 0xd6, 0x41, 0xf1, 0x03, 0x3e, 0x91, 0x80, 0xa1, 0x21, 0xd4, 0x43, 0xcb, 0xc5, 0x44, 0xbd, - 0xc0, 0x38, 0xdc, 0x85, 0x57, 0x50, 0x16, 0xdc, 0xee, 0xa8, 0xdc, 0x47, 0x5b, 0xfc, 0x70, 0x9c, - 0x0f, 0xab, 0x17, 0x67, 0xfe, 0x96, 0x40, 0xb5, 0x87, 0x0b, 0xe4, 0x78, 0xbf, 0xed, 0x95, 0x92, - 0x22, 0xbf, 0x23, 0xc5, 0x77, 0x04, 0x6a, 0x31, 0xa1, 0x3b, 0xca, 0xa1, 0x43, 0xc1, 0x16, 0x48, - 0x76, 0x34, 0x88, 0xb1, 0x49, 0x4f, 0xa0, 0x18, 0x65, 0x8f, 0x47, 0xf0, 0xb0, 0x52, 0x85, 0x90, - 0x98, 0x6b, 0xfc, 0x46, 0xa0, 0x18, 0x7b, 0xe3, 0x72, 0xc9, 0xb6, 0xdc, 0x77, 0xe1, 0x68, 0xc2, - 0xd0, 0xe2, 0x98, 0x1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x08, 0x43, 0x6f, 0x0f, 0xc2, 0x76, 0x2d, 0xdd, - 0x44, 0x48, 0xad, 0x05, 0x23, 0x47, 0x9f, 0x81, 0x1a, 0xce, 0x06, 0xbd, 0x41, 0x78, 0x67, 0x88, - 0x1b, 0xcd, 0x43, 0xd7, 0x31, 0xd4, 0xe7, 0xef, 0xfc, 0xfd, 0x6b, 0x91, 0xfc, 0x79, 0xdd, 0x24, - 0x7f, 0x5d, 0x37, 0xc9, 0x3f, 0xd7, 0x4d, 0xf2, 0xfd, 0xbf, 0xcd, 0x1c, 0x68, 0x0e, 0x9b, 0x76, - 0xf8, 0x6c, 0xee, 0x77, 0xe6, 0xbe, 0xf8, 0xaf, 0x73, 0xa1, 0x8a, 0xaf, 0x93, 0xff, 0x02, 0x00, - 0x00, 0xff, 0xff, 0x4d, 0xff, 0x95, 0xca, 0x41, 0x09, 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. @@ -1089,9 +643,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 @@ -1112,7 +665,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 } @@ -1145,7 +698,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 } @@ -1154,7 +707,7 @@ 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 } @@ -1163,14 +716,15 @@ func (c *metaStorageClient) Put(ctx context.Context, in *PutRequest, opts ...grp func (c *metaStorageClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/meta_storagepb.MetaStorage/Delete", in, out, opts...) + err := grpc.Invoke(ctx, "/meta_storagepb.MetaStorage/Delete", 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 @@ -1182,23 +736,6 @@ type MetaStorageServer interface { Delete(context.Context, *DeleteRequest) (*DeleteResponse, 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 (*UnimplementedMetaStorageServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} - func RegisterMetaStorageServer(s *grpc.Server, srv MetaStorageServer) { s.RegisterService(&_MetaStorage_serviceDesc, srv) } @@ -1308,7 +845,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 } @@ -1316,38 +853,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 } @@ -1355,38 +882,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 } @@ -1394,48 +911,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 } @@ -1443,67 +949,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 } @@ -1511,57 +1004,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 } @@ -1569,62 +1049,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 } @@ -1632,67 +1099,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 - } - 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 - } + i++ } - 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 } @@ -1700,67 +1154,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 } @@ -1768,50 +1209,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 *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 } @@ -1819,62 +1247,49 @@ 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.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n9, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + } + 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 { + dAtA[i] = 0x1a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.RangeEnd))) + i += copy(dAtA[i:], m.RangeEnd) } if m.PrevKv { - i-- + dAtA[i] = 0x20 + i++ if m.PrevKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - 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 - } - 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.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 + i++ } - 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 } @@ -1882,57 +1297,44 @@ 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 len(m.PrevKvs) > 0 { - for iNdEx := len(m.PrevKvs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PrevKvs[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())) + n10, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n10 } if m.Deleted != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Deleted)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Deleted)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PrevKvs) > 0 { + for _, msg := range m.PrevKvs { + 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 *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 } @@ -1940,60 +1342,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 } @@ -2001,66 +1392,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())) + n11, err := m.Kv.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - 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())) + n12, err := m.PrevKv.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - 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 { @@ -2070,16 +1443,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 { @@ -2089,16 +1456,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 { @@ -2111,16 +1472,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 { @@ -2141,16 +1496,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 { @@ -2166,16 +1515,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 { @@ -2196,16 +1539,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 { @@ -2224,16 +1561,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 { @@ -2254,16 +1585,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 { @@ -2274,16 +1599,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 *DeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2301,16 +1620,10 @@ func (m *DeleteRequest) Size() (n int) { if m.PrevKv { n += 2 } - 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 { @@ -2326,16 +1639,10 @@ func (m *DeleteResponse) Size() (n int) { 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) @@ -2358,16 +1665,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 { @@ -2381,14 +1682,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)))) @@ -2408,7 +1713,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 } @@ -2436,7 +1741,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 } @@ -2455,7 +1760,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 } @@ -2465,9 +1770,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2479,13 +1781,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 } } @@ -2510,7 +1811,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 } @@ -2538,7 +1839,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 } @@ -2557,7 +1858,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 } @@ -2567,9 +1868,6 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2581,13 +1879,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 } } @@ -2612,7 +1909,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 } @@ -2640,7 +1937,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 } @@ -2659,7 +1956,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 } @@ -2668,9 +1965,6 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2695,7 +1989,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 } @@ -2706,13 +2000,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 } } @@ -2737,7 +2030,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 } @@ -2765,7 +2058,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 } @@ -2774,9 +2067,6 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2801,7 +2091,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 } @@ -2810,9 +2100,6 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2835,7 +2122,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 } @@ -2844,9 +2131,6 @@ func (m *WatchRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2869,7 +2153,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 } @@ -2888,7 +2172,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 } @@ -2900,13 +2184,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 } } @@ -2931,7 +2214,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 } @@ -2959,7 +2242,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 } @@ -2968,9 +2251,6 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2995,7 +2275,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 } @@ -3014,7 +2294,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 } @@ -3023,9 +2303,6 @@ func (m *WatchResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3040,13 +2317,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 } } @@ -3071,7 +2347,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 } @@ -3099,7 +2375,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 } @@ -3108,9 +2384,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3135,7 +2408,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 } @@ -3144,9 +2417,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3169,7 +2439,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 } @@ -3178,9 +2448,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3203,7 +2470,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 } @@ -3222,7 +2489,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 } @@ -3233,13 +2500,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 } } @@ -3264,7 +2530,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 } @@ -3292,7 +2558,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 } @@ -3301,9 +2567,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3328,7 +2591,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 } @@ -3337,9 +2600,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3362,7 +2622,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 } @@ -3382,7 +2642,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 } @@ -3393,13 +2653,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 } } @@ -3424,7 +2683,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 } @@ -3452,7 +2711,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 } @@ -3461,9 +2720,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3488,7 +2744,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 } @@ -3497,9 +2753,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3522,7 +2775,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 } @@ -3531,9 +2784,6 @@ func (m *PutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3556,7 +2806,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 } @@ -3575,7 +2825,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 } @@ -3587,13 +2837,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 } } @@ -3618,7 +2867,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 } @@ -3646,7 +2895,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 } @@ -3655,9 +2904,6 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3682,7 +2928,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 } @@ -3691,9 +2937,6 @@ func (m *PutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3710,13 +2953,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 } } @@ -3741,7 +2983,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 } @@ -3769,7 +3011,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 } @@ -3778,9 +3020,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3805,7 +3044,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 } @@ -3814,9 +3053,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3839,7 +3075,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 } @@ -3848,9 +3084,6 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3873,7 +3106,7 @@ func (m *DeleteRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3885,13 +3118,12 @@ func (m *DeleteRequest) 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 } } @@ -3916,7 +3148,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 } @@ -3944,7 +3176,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 } @@ -3953,9 +3185,6 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3980,7 +3209,7 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Deleted |= int64(b&0x7F) << shift + m.Deleted |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3999,7 +3228,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 } @@ -4008,9 +3237,6 @@ func (m *DeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4025,13 +3251,12 @@ func (m *DeleteResponse) 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 } } @@ -4056,7 +3281,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 } @@ -4084,7 +3309,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 } @@ -4093,9 +3318,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4118,7 +3340,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 } @@ -4137,7 +3359,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 } @@ -4156,7 +3378,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 } @@ -4175,7 +3397,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 } @@ -4184,9 +3406,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4209,7 +3428,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 } @@ -4220,13 +3439,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 } } @@ -4251,7 +3469,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 } @@ -4279,7 +3497,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 } @@ -4298,7 +3516,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 } @@ -4307,9 +3525,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4334,7 +3549,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 } @@ -4343,9 +3558,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMetaStoragepb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaStoragepb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4362,13 +3574,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 } } @@ -4381,7 +3592,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 { @@ -4413,8 +3623,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 { @@ -4431,34 +3643,112 @@ 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{ + // 843 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcd, 0x8e, 0xe3, 0x44, + 0x10, 0x4e, 0xdb, 0xb1, 0x93, 0x54, 0x7e, 0xc6, 0x6a, 0x05, 0x30, 0x59, 0x26, 0x04, 0x4b, 0x40, + 0x58, 0xb4, 0x01, 0x32, 0xc0, 0x99, 0x61, 0x13, 0x76, 0x57, 0x61, 0x67, 0x22, 0x93, 0x65, 0x8f, + 0x91, 0x27, 0x2e, 0x65, 0xa2, 0xfc, 0x38, 0xb4, 0xdb, 0xd6, 0xe4, 0x25, 0xb8, 0x82, 0xe0, 0x84, + 0x84, 0x10, 0x27, 0x4e, 0xdc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 0xdd, 0x24, + 0x7f, 0x5d, 0x37, 0xc9, 0x3f, 0xd7, 0x4d, 0xf2, 0xfd, 0xbf, 0xcd, 0x1c, 0x68, 0x0e, 0x9b, 0x76, + 0xf8, 0x6c, 0xee, 0x77, 0xe6, 0xbe, 0xf8, 0xaf, 0x73, 0xa1, 0x8a, 0xaf, 0x93, 0xff, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x4d, 0xff, 0x95, 0xca, 0x41, 0x09, 0x00, 0x00, +} diff --git a/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, 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, 0x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6b, 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.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, 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, 0x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x3c, 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, +} diff --git a/pkg/mpp/mpp.pb.go b/pkg/mpp/mpp.pb.go index 0176f08fd..f01ba6fd3 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 { @@ -45,43 +69,12 @@ type TaskMeta struct { ResourceGroupName string `protobuf:"bytes,17,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"` ConnectionId uint64 `protobuf:"varint,18,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` ConnectionAlias string `protobuf:"bytes,19,opt,name=connection_alias,json=connectionAlias,proto3" json:"connection_alias,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 { @@ -196,84 +189,22 @@ func (m *TaskMeta) GetConnectionAlias() 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 { @@ -291,51 +222,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 { @@ -381,45 +281,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 { @@ -437,45 +306,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 { @@ -492,44 +330,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 { @@ -541,46 +348,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 { @@ -604,44 +380,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 { @@ -652,45 +397,16 @@ 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} + return fileDescriptorMpp, []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 { @@ -709,48 +425,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 { @@ -788,46 +473,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 { @@ -864,74 +518,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{ - // 904 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x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94, 0xe9, 0xdd, 0xfc, 0xc1, 0x59, 0xd8, 0x17, 0xfc, 0xc4, 0xb4, 0x32, - 0xc3, 0x62, 0xe3, 0x6f, 0xb4, 0xde, 0x75, 0x63, 0xe0, 0x6d, 0x8c, 0x14, 0xff, 0x1e, 0xc0, 0xf0, - 0x7c, 0x3e, 0x7f, 0xc1, 0x34, 0x9b, 0xb3, 0x6c, 0x85, 0x7a, 0x5b, 0x8b, 0xe0, 0x5d, 0xb5, 0xb8, - 0xab, 0x6f, 0xe4, 0x01, 0xec, 0x67, 0xcb, 0xba, 0x5a, 0xa9, 0x28, 0x9c, 0x84, 0xd3, 0x01, 0x6d, - 0x24, 0x3b, 0xf7, 0x5a, 0x22, 0x2b, 0xd3, 0x22, 0x77, 0xdb, 0xd2, 0xa6, 0x3d, 0x87, 0x24, 0xb9, - 0x32, 0x3b, 0xe6, 0xd7, 0xdb, 0xed, 0x84, 0x17, 0xe3, 0x97, 0xb0, 0x67, 0x03, 0x18, 0x3e, 0x66, - 0x27, 0x2d, 0x9f, 0x3d, 0x6a, 0xcf, 0x64, 0x04, 0x61, 0xa9, 0x16, 0x96, 0x4d, 0x8f, 0x9a, 0xe3, - 0xed, 0xb7, 0x22, 0xbc, 0xfd, 0x56, 0x7c, 0x1f, 0xff, 0x79, 0x7d, 0x1c, 0xfc, 0x75, 0x7d, 0x1c, - 0xfc, 0x73, 0x7d, 0x1c, 0xfc, 0xf1, 0xef, 0xf1, 0x47, 0x30, 0xe2, 0x72, 0x31, 0xd3, 0xc5, 0x6a, - 0x33, 0x5b, 0x6d, 0xec, 0xff, 0xf0, 0x72, 0xdf, 0x7e, 0x9e, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, - 0x9c, 0x8a, 0xf3, 0x35, 0x6e, 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 } @@ -939,127 +529,114 @@ 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.ConnectionAlias) > 0 { - i -= len(m.ConnectionAlias) - copy(dAtA[i:], m.ConnectionAlias) - i = encodeVarintMpp(dAtA, i, uint64(len(m.ConnectionAlias))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + if m.TaskId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.TaskId)) } - if m.ConnectionId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.ConnectionId)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.PartitionId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.PartitionId)) } - 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 len(m.Address) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.Address))) + i += copy(dAtA[i:], m.Address) } - if m.ApiVersion != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.ApiVersion)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + if m.GatherId != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.GatherId)) } - if m.ReportExecutionSummary { - i-- - if m.ReportExecutionSummary { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 + if m.QueryTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.QueryTs)) } - 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.LocalQueryId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.LocalQueryId)) } - if m.KeyspaceId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x50 + if m.ServerId != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.ServerId)) } if m.MppVersion != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) - i-- dAtA[i] = 0x48 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) } - if m.ServerId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.ServerId)) - i-- - dAtA[i] = 0x40 - } - 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.ConnectionId != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.ConnectionId)) } - if m.StartTs != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if len(m.ConnectionAlias) > 0 { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.ConnectionAlias))) + i += copy(dAtA[i:], m.ConnectionAlias) } - 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 } @@ -1067,26 +644,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 } @@ -1094,41 +662,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++ } - return len(dAtA) - i, nil + if m.MppVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) + } + 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 } @@ -1136,83 +695,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 } @@ -1220,52 +763,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 } @@ -1273,50 +803,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 } @@ -1324,38 +841,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 } @@ -1363,57 +869,43 @@ 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 } @@ -1421,38 +913,27 @@ func (m *ReportTaskStatusResponse) Marshal() (dAtA []byte, err error) { } 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) + var i 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-- + var l int + _ = l + 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 + } + 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 } @@ -1460,50 +941,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 } @@ -1511,77 +979,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 } @@ -1589,54 +1043,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 { @@ -1691,28 +1130,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 { @@ -1721,16 +1148,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 { @@ -1759,16 +1180,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 { @@ -1781,16 +1196,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 { @@ -1801,32 +1210,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 { @@ -1841,32 +1238,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 { @@ -1877,16 +1262,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) @@ -1913,16 +1292,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 { @@ -1935,14 +1308,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)))) @@ -1962,7 +1339,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 } @@ -1990,7 +1367,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 } @@ -2009,7 +1386,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 } @@ -2028,7 +1405,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 } @@ -2047,7 +1424,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 } @@ -2057,9 +1434,6 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2079,7 +1453,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 } @@ -2098,7 +1472,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 } @@ -2117,7 +1491,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 } @@ -2136,7 +1510,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 } @@ -2155,7 +1529,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 } @@ -2174,7 +1548,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 } @@ -2193,7 +1567,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 } @@ -2203,9 +1577,6 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2225,7 +1596,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 } @@ -2245,7 +1616,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 } @@ -2264,7 +1635,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 } @@ -2274,9 +1645,6 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2296,7 +1664,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ConnectionId |= uint64(b&0x7F) << shift + m.ConnectionId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2315,7 +1683,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 } @@ -2325,9 +1693,6 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2339,13 +1704,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 } } @@ -2370,7 +1734,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 } @@ -2390,13 +1754,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 } } @@ -2421,7 +1784,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 } @@ -2449,7 +1812,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 } @@ -2469,7 +1832,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 } @@ -2480,13 +1843,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 } } @@ -2511,7 +1873,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 } @@ -2539,7 +1901,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 } @@ -2548,9 +1910,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2575,7 +1934,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 } @@ -2584,9 +1943,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2609,7 +1965,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 } @@ -2628,7 +1984,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 } @@ -2637,9 +1993,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2662,7 +2015,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 } @@ -2681,7 +2034,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 } @@ -2690,9 +2043,6 @@ func (m *DispatchTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2707,13 +2057,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 } } @@ -2738,7 +2087,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 } @@ -2766,7 +2115,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 } @@ -2775,9 +2124,6 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2802,7 +2148,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 } @@ -2811,9 +2157,6 @@ func (m *DispatchTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2828,13 +2171,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 } } @@ -2859,7 +2201,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 } @@ -2887,7 +2229,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 } @@ -2896,9 +2238,6 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2923,7 +2262,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 } @@ -2932,9 +2271,6 @@ func (m *CancelTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2951,13 +2287,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 } } @@ -2982,7 +2317,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 } @@ -3010,7 +2345,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 } @@ -3019,9 +2354,6 @@ func (m *CancelTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3038,13 +2370,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 } } @@ -3069,7 +2400,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 } @@ -3097,7 +2428,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 } @@ -3106,9 +2437,6 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3133,7 +2461,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 } @@ -3142,9 +2470,6 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3167,7 +2492,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 } @@ -3176,9 +2501,6 @@ func (m *ReportTaskStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3195,13 +2517,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 } } @@ -3226,7 +2547,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 } @@ -3254,7 +2575,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 } @@ -3263,9 +2584,6 @@ func (m *ReportTaskStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3282,13 +2600,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 } } @@ -3313,7 +2630,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 } @@ -3341,7 +2658,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 } @@ -3350,9 +2667,6 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3377,7 +2691,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 } @@ -3386,9 +2700,6 @@ func (m *EstablishMPPConnectionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3405,13 +2716,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 } } @@ -3436,7 +2746,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 } @@ -3464,7 +2774,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 } @@ -3473,9 +2783,6 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3498,7 +2805,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 } @@ -3507,9 +2814,6 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3534,7 +2838,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 } @@ -3543,9 +2847,6 @@ func (m *MPPDataPacket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3564,7 +2865,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 } @@ -3581,7 +2882,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 } @@ -3590,23 +2891,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 { @@ -3618,7 +2905,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 } @@ -3642,7 +2929,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 } @@ -3653,13 +2940,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 } } @@ -3684,7 +2970,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 } @@ -3712,7 +2998,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 } @@ -3731,7 +3017,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 } @@ -3741,9 +3027,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMpp } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMpp - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3763,7 +3046,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 } @@ -3774,13 +3057,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 } } @@ -3793,7 +3075,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 { @@ -3825,8 +3106,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 { @@ -3843,34 +3126,116 @@ 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{ + // 904 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0x67, 0xbd, 0x4e, 0x6c, 0x3f, 0xdb, 0xa9, 0x33, 0xae, 0x9a, 0x6d, 0xa1, 0xc1, 0x5d, 0x38, + 0x98, 0x8b, 0x2b, 0x52, 0x84, 0x38, 0x20, 0xa4, 0xd0, 0x46, 0x68, 0x0f, 0xa9, 0xcc, 0x34, 0xaa, + 0xb8, 0xad, 0x26, 0xbb, 0x0f, 0x7b, 0x65, 0xef, 0xce, 0x74, 0x66, 0xd6, 0x22, 0x67, 0x0e, 0x7c, + 0x03, 0xc4, 0x47, 0xe2, 0xc8, 0x95, 0x1b, 0x0a, 0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0x3b, 0xf7, 0x5a, 0x22, 0x2b, 0xd3, 0x22, 0x77, 0xdb, 0xd2, 0xa6, 0x3d, 0x87, 0x24, 0xb9, + 0x32, 0x3b, 0xe6, 0xd7, 0xdb, 0xed, 0x84, 0x17, 0xe3, 0x97, 0xb0, 0x67, 0x03, 0x18, 0x3e, 0x66, + 0x27, 0x2d, 0x9f, 0x3d, 0x6a, 0xcf, 0x64, 0x04, 0x61, 0xa9, 0x16, 0x96, 0x4d, 0x8f, 0x9a, 0xe3, + 0xed, 0xb7, 0x22, 0xbc, 0xfd, 0x56, 0x7c, 0x1f, 0xff, 0x79, 0x7d, 0x1c, 0xfc, 0x75, 0x7d, 0x1c, + 0xfc, 0x73, 0x7d, 0x1c, 0xfc, 0xf1, 0xef, 0xf1, 0x47, 0x30, 0xe2, 0x72, 0x31, 0xd3, 0xc5, 0x6a, + 0x33, 0x5b, 0x6d, 0xec, 0xff, 0xf0, 0x72, 0xdf, 0x7e, 0x9e, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, + 0x9c, 0x8a, 0xf3, 0x35, 0x6e, 0x07, 0x00, 0x00, +} diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index a8b76b5af..77ae1573a 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -1,25 +1,164 @@ // 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 + KeyRange + BatchScanRegionsRequest + BatchScanRegionsResponse + 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 +170,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 +183,6 @@ var EventType_name = map[int32]string{ 0: "PUT", 1: "DELETE", } - var EventType_value = map[string]int32{ "PUT": 0, "DELETE": 1, @@ -53,10 +191,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 @@ -92,7 +227,6 @@ var ErrorType_name = map[int32]string{ 11: "DATA_COMPACTED", 12: "REGIONS_NOT_CONTAIN_ALL_KEY_RANGE", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -112,10 +246,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 @@ -130,7 +261,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, @@ -140,10 +270,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 @@ -158,7 +285,6 @@ var CheckPolicy_name = map[int32]string{ 1: "APPROXIMATE", 2: "USEKEY", } - var CheckPolicy_value = map[string]int32{ "SCAN": 0, "APPROXIMATE": 1, @@ -168,10 +294,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 @@ -186,7 +309,6 @@ var ControlGrpcEvent_name = map[int32]string{ 0: "PAUSE", 1: "RESUME", } - var ControlGrpcEvent_value = map[string]int32{ "PAUSE": 0, "RESUME": 1, @@ -195,10 +317,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 @@ -217,7 +336,6 @@ var OperatorStatus_name = map[int32]string{ 3: "REPLACE", 4: "RUNNING", } - var OperatorStatus_value = map[string]int32{ "SUCCESS": 0, "TIMEOUT": 1, @@ -229,10 +347,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 @@ -265,7 +380,6 @@ var QueryKind_name = map[int32]string{ 10: "Commit", 11: "Rollback", } - var QueryKind_value = map[string]int32{ "Others": 0, "GC": 1, @@ -284,51 +398,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 { @@ -345,46 +425,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 { @@ -408,45 +457,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 { @@ -463,44 +481,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 { @@ -510,45 +497,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 { @@ -565,45 +521,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 { @@ -623,48 +548,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 { @@ -705,44 +599,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 { @@ -760,45 +623,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 { @@ -815,45 +647,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 { @@ -870,46 +671,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 { @@ -937,44 +707,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 { @@ -998,46 +737,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 { @@ -1061,46 +769,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 { @@ -1124,45 +801,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 { @@ -1179,44 +825,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 { @@ -1226,45 +841,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 { @@ -1281,44 +865,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 { @@ -1328,45 +881,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 { @@ -1383,44 +905,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 { @@ -1430,46 +923,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 @@ -1485,45 +949,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 { @@ -1540,46 +973,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 { @@ -1603,45 +1005,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 { @@ -1658,45 +1029,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 { @@ -1713,46 +1053,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 { @@ -1769,45 +1078,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 { @@ -1824,46 +1102,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 { @@ -1887,53 +1134,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 { @@ -1978,46 +1194,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 { @@ -2043,47 +1228,16 @@ func (m *GetRegionByIDRequest) GetNeedBuckets() bool { // Use GetRegionResponse as the response of GetRegionByIDRequest. // Deprecated: use BatchScanRegionsRequest instead. 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 { @@ -2114,52 +1268,21 @@ 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"` + PendingPeers []*metapb.Peer `protobuf:"bytes,4,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` // buckets isn't nil only when need_buckets is true. - Buckets *metapb.Buckets `protobuf:"bytes,5,opt,name=buckets,proto3" json:"buckets,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) + Buckets *metapb.Buckets `protobuf:"bytes,5,opt,name=buckets" json:"buckets,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 { @@ -2197,49 +1320,18 @@ func (m *Region) GetBuckets() *metapb.Buckets { } 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 { @@ -2270,45 +1362,14 @@ func (m *ScanRegionsResponse) GetRegions() []*Region { } 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_78b27e6f04f44c6e, []int{33} -} -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 fileDescriptorPdpb, []int{33} } func (m *KeyRange) GetStartKey() []byte { if m != nil { @@ -2325,52 +1386,21 @@ func (m *KeyRange) GetEndKey() []byte { } type BatchScanRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` NeedBuckets bool `protobuf:"varint,2,opt,name=need_buckets,json=needBuckets,proto3" json:"need_buckets,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // If contain_all_key_range is true, the output must contain all // key ranges in the request. // If the output does not contain all key ranges, the request is considered // failed and returns an error(REGIONS_NOT_CONTAIN_ALL_KEY_RANGE). - ContainAllKeyRange bool `protobuf:"varint,5,opt,name=contain_all_key_range,json=containAllKeyRange,proto3" json:"contain_all_key_range,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BatchScanRegionsRequest) Reset() { *m = BatchScanRegionsRequest{} } -func (m *BatchScanRegionsRequest) String() string { return proto.CompactTextString(m) } -func (*BatchScanRegionsRequest) ProtoMessage() {} -func (*BatchScanRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{34} -} -func (m *BatchScanRegionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchScanRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchScanRegionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BatchScanRegionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchScanRegionsRequest.Merge(m, src) -} -func (m *BatchScanRegionsRequest) XXX_Size() int { - return m.Size() -} -func (m *BatchScanRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_BatchScanRegionsRequest.DiscardUnknown(m) + ContainAllKeyRange bool `protobuf:"varint,5,opt,name=contain_all_key_range,json=containAllKeyRange,proto3" json:"contain_all_key_range,omitempty"` } -var xxx_messageInfo_BatchScanRegionsRequest proto.InternalMessageInfo +func (m *BatchScanRegionsRequest) Reset() { *m = BatchScanRegionsRequest{} } +func (m *BatchScanRegionsRequest) String() string { return proto.CompactTextString(m) } +func (*BatchScanRegionsRequest) ProtoMessage() {} +func (*BatchScanRegionsRequest) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{34} } func (m *BatchScanRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -2408,46 +1438,15 @@ func (m *BatchScanRegionsRequest) GetContainAllKeyRange() bool { } type BatchScanRegionsResponse 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 returned regions are flattened into a list, because the given ranges can located in the same range, we do not return duplicated regions then. - Regions []*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 *BatchScanRegionsResponse) Reset() { *m = BatchScanRegionsResponse{} } -func (m *BatchScanRegionsResponse) String() string { return proto.CompactTextString(m) } -func (*BatchScanRegionsResponse) ProtoMessage() {} -func (*BatchScanRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{35} -} -func (m *BatchScanRegionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BatchScanRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BatchScanRegionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BatchScanRegionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchScanRegionsResponse.Merge(m, src) -} -func (m *BatchScanRegionsResponse) XXX_Size() int { - return m.Size() -} -func (m *BatchScanRegionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_BatchScanRegionsResponse.DiscardUnknown(m) + Regions []*Region `protobuf:"bytes,2,rep,name=regions" json:"regions,omitempty"` } -var xxx_messageInfo_BatchScanRegionsResponse proto.InternalMessageInfo +func (m *BatchScanRegionsResponse) Reset() { *m = BatchScanRegionsResponse{} } +func (m *BatchScanRegionsResponse) String() string { return proto.CompactTextString(m) } +func (*BatchScanRegionsResponse) ProtoMessage() {} +func (*BatchScanRegionsResponse) Descriptor() ([]byte, []int) { return fileDescriptorPdpb, []int{35} } func (m *BatchScanRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2464,44 +1463,13 @@ func (m *BatchScanRegionsResponse) 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{36} -} -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{36} } func (m *GetClusterConfigRequest) GetHeader() *RequestHeader { if m != nil { @@ -2511,45 +1479,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{37} -} -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{37} } func (m *GetClusterConfigResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2566,45 +1503,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{38} -} -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{38} } func (m *PutClusterConfigRequest) GetHeader() *RequestHeader { if m != nil { @@ -2621,44 +1527,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{39} -} -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{39} } func (m *PutClusterConfigResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2671,51 +1546,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{40} -} -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{40} } func (m *Member) GetName() string { if m != nil { @@ -2781,44 +1625,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{41} -} -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{41} } func (m *GetMembersRequest) GetHeader() *RequestHeader { if m != nil { @@ -2828,48 +1641,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{42} -} -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{42} } func (m *GetMembersResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2907,44 +1689,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{43} -} -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{43} } func (m *GetClusterInfoRequest) GetHeader() *ResponseHeader { if m != nil { @@ -2954,48 +1705,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{44} -} -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{44} } func (m *GetClusterInfoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3019,45 +1739,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{45} -} -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{45} } func (m *PeerStats) GetPeer() *metapb.Peer { if m != nil { @@ -3074,15 +1763,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"` @@ -3092,57 +1781,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{46} -} -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{46} } func (m *RegionHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { @@ -3264,45 +1922,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{47} -} -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{47} } func (m *ChangePeer) GetPeer() *metapb.Peer { if m != nil { @@ -3320,44 +1947,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{48} -} -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{48} } func (m *ChangePeerV2) GetChanges() []*ChangePeer { if m != nil { @@ -3367,45 +1963,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{49} -} -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{49} } func (m *TransferLeader) GetPeer() *metapb.Peer { if m != nil { @@ -3422,44 +1987,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{50} -} -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{50} } func (m *Merge) GetTarget() *metapb.Region { if m != nil { @@ -3469,45 +2003,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{51} -} -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{51} } func (m *SplitRegion) GetPolicy() CheckPolicy { if m != nil { @@ -3524,45 +2027,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{52} -} -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{52} } func (m *SwitchWitness) GetPeerId() uint64 { if m != nil { @@ -3579,44 +2051,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{53} -} -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{53} } func (m *BatchSwitchWitness) GetSwitchWitnesses() []*SwitchWitness { if m != nil { @@ -3626,7 +2067,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 @@ -3641,62 +2082,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{54} -} -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{54} } func (m *RegionHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3769,45 +2179,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{55} -} -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{55} } func (m *AskSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -3824,50 +2203,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{56} -} -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{56} } func (m *AskSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -3891,46 +2239,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{57} -} -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{57} } func (m *ReportSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -3954,44 +2271,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{58} -} -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{58} } func (m *ReportSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4001,46 +2287,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{59} -} -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{59} } func (m *AskBatchSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -4064,45 +2319,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{60} -} -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{60} } func (m *SplitID) GetNewRegionId() uint64 { if m != nil { @@ -4119,45 +2343,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{61} -} -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{61} } func (m *AskBatchSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4174,45 +2367,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{62} -} -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{62} } func (m *ReportBatchSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -4229,44 +2391,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{63} -} -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{63} } func (m *ReportBatchSplitResponse) GetHeader() *ResponseHeader { if m != nil { @@ -4279,44 +2410,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{64} -} -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{64} } func (m *TimeInterval) GetStartTimestamp() uint64 { if m != nil { @@ -4333,45 +2433,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{65} -} -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{65} } func (m *RecordPair) GetKey() string { if m != nil { @@ -4388,49 +2457,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{66} -} -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{66} } func (m *PeerStat) GetRegionId() uint64 { if m != nil { @@ -4503,71 +2541,40 @@ 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"` // 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"` - 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{67} -} -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) + UsedMemory uint64 `protobuf:"varint,29,opt,name=used_memory,json=usedMemory,proto3" json:"used_memory,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{67} } func (m *StoreStats) GetStoreId() uint64 { if m != nil { @@ -4773,47 +2780,16 @@ 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"` - 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{68} -} -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{68} } func (m *SlowTrend) GetCauseValue() float64 { if m != nil { @@ -4854,44 +2830,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{69} -} -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{69} } func (m *SnapshotStat) GetRegionId() uint64 { if m != nil { @@ -4929,50 +2874,19 @@ 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"` // raft applied index - AppliedIndex uint64 `protobuf:"varint,5,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 *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{70} -} -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) + AppliedIndex uint64 `protobuf:"varint,5,opt,name=applied_index,json=appliedIndex,proto3" json:"applied_index,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{70} } func (m *PeerReport) GetRaftState() *raft_serverpb.RaftLocalState { if m != nil { @@ -5010,45 +2924,14 @@ func (m *PeerReport) GetAppliedIndex() uint64 { } 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{71} -} -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{71} } func (m *StoreReport) GetPeerReports() []*PeerReport { if m != nil { @@ -5065,48 +2948,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{72} -} -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{72} } func (m *StoreHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { @@ -5137,45 +2989,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{73} -} -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{73} } func (m *DemoteFailedVoters) GetRegionId() uint64 { if m != nil { @@ -5193,46 +3014,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{74} -} -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{74} } func (m *ForceLeader) GetFailedStores() []uint64 { if m != nil { @@ -5250,55 +3040,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{75} -} -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{75} } func (m *RecoveryPlan) GetCreates() []*metapb.Region { if m != nil { @@ -5307,7 +3066,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 @@ -5345,44 +3103,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{76} -} -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{76} } func (m *AwakenRegions) GetAbnormalStores() []uint64 { if m != nil { @@ -5392,44 +3119,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{77} -} -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{77} } func (m *ControlGrpc) GetCtrlEvent() ControlGrpcEvent { if m != nil { @@ -5439,57 +3135,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{78} -} -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{78} } func (m *StoreHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5512,7 +3177,6 @@ func (m *StoreHeartbeatResponse) GetClusterVersion() string { return "" } -// Deprecated: Do not use. func (m *StoreHeartbeatResponse) GetRequireDetailedReport() bool { if m != nil { return m.RequireDetailedReport @@ -5542,56 +3206,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{79} -} -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{79} } func (m *ScatterRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -5600,7 +3233,6 @@ func (m *ScatterRegionRequest) GetHeader() *RequestHeader { return nil } -// Deprecated: Do not use. func (m *ScatterRegionRequest) GetRegionId() uint64 { if m != nil { return m.RegionId @@ -5651,45 +3283,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{80} -} -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{80} } func (m *ScatterRegionResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5706,44 +3307,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{81} -} -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{81} } func (m *GetGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -5753,45 +3323,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{82} -} -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{82} } func (m *GetGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5808,45 +3347,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{83} -} -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{83} } func (m *UpdateGCSafePointRequest) GetHeader() *RequestHeader { if m != nil { @@ -5863,45 +3371,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{84} -} -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{84} } func (m *UpdateGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { @@ -5918,47 +3395,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{85} -} -func (m *UpdateServiceGCSafePointRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorPdpb, []int{85} } -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 { @@ -5989,48 +3437,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{86} -} -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{86} } -var xxx_messageInfo_UpdateServiceGCSafePointResponse proto.InternalMessageInfo - func (m *UpdateServiceGCSafePointResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -6060,45 +3479,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{87} -} -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{87} } func (m *GetGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -6115,45 +3503,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{88} -} -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{88} } func (m *GetGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -6170,45 +3527,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{89} -} -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{89} } func (m *WatchGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -6226,46 +3552,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{90} -} -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{90} } func (m *SafePointEvent) GetKeyspaceId() uint32 { if m != nil { @@ -6289,46 +3584,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{91} -} -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{91} } func (m *WatchGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -6352,46 +3616,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{92} -} -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{92} } func (m *UpdateGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -6415,45 +3648,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{93} -} -func (m *UpdateGCSafePointV2Response) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorPdpb, []int{93} } -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 { @@ -6470,7 +3674,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"` @@ -6479,45 +3683,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{94} -} -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{94} } -var xxx_messageInfo_UpdateServiceSafePointV2Request proto.InternalMessageInfo - func (m *UpdateServiceSafePointV2Request) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -6554,47 +3729,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{95} -} -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() + return fileDescriptorPdpb, []int{95} } -func (m *UpdateServiceSafePointV2Response) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateServiceSafePointV2Response.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateServiceSafePointV2Response proto.InternalMessageInfo func (m *UpdateServiceSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { @@ -6625,44 +3771,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{96} -} -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{96} } func (m *GetAllGCSafePointV2Request) GetHeader() *RequestHeader { if m != nil { @@ -6672,45 +3787,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{97} -} -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{97} } func (m *GCSafePointV2) GetKeyspaceId() uint32 { if m != nil { @@ -6727,47 +3811,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{98} -} -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{98} } -var xxx_messageInfo_GetAllGCSafePointV2Response proto.InternalMessageInfo - func (m *GetAllGCSafePointV2Response) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -6794,45 +3849,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{99} -} -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{99} } func (m *RegionStat) GetBytesWritten() uint64 { if m != nil { @@ -6863,48 +3887,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{100} -} -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{100} } func (m *SyncRegionRequest) GetHeader() *RequestHeader { if m != nil { @@ -6928,44 +3921,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{101} -} -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{101} } func (m *PeersStats) GetPeers() []*PeerStats { if m != nil { @@ -6975,44 +3937,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{102} -} -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{102} } func (m *Peers) GetPeers() []*metapb.Peer { if m != nil { @@ -7022,54 +3953,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{103} -} -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{103} } func (m *SyncRegionResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7128,45 +4028,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{104} -} -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{104} } func (m *GetOperatorRequest) GetHeader() *RequestHeader { if m != nil { @@ -7183,48 +4052,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{105} -} -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{105} } func (m *GetOperatorResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7262,47 +4100,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{106} -} -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{106} } func (m *SyncMaxTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -7326,46 +4133,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{107} -} -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{107} } func (m *SyncMaxTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7389,46 +4165,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{108} -} -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{108} } func (m *SplitRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -7452,46 +4197,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{109} -} -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{109} } func (m *SplitRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7515,47 +4229,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{110} -} -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() + return fileDescriptorPdpb, []int{110} } -func (m *SplitAndScatterRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SplitAndScatterRegionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SplitAndScatterRegionsRequest proto.InternalMessageInfo func (m *SplitAndScatterRegionsRequest) GetHeader() *RequestHeader { if m != nil { @@ -7586,48 +4271,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{111} -} -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{111} } -var xxx_messageInfo_SplitAndScatterRegionsResponse proto.InternalMessageInfo - func (m *SplitAndScatterRegionsResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -7657,45 +4313,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{112} -} -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{112} } func (m *GetDCLocationInfoRequest) GetHeader() *RequestHeader { if m != nil { @@ -7712,49 +4337,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{113} -} -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{113} } func (m *GetDCLocationInfoResponse) GetHeader() *ResponseHeader { if m != nil { @@ -7778,54 +4372,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{114} -} -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{114} } func (m *QueryStats) GetGC() uint64 { if m != nil { @@ -7905,46 +4468,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{115} -} -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{115} } func (m *ReportBucketsRequest) GetHeader() *RequestHeader { if m != nil { @@ -7968,44 +4500,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{116} -} -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{116} } func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -8015,46 +4516,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{117} -} -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 - } + return fileDescriptorPdpb, []int{117} } -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 { @@ -8078,45 +4550,16 @@ 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{118} -} -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) + return fileDescriptorPdpb, []int{118} } -var xxx_messageInfo_ReportMinResolvedTsResponse proto.InternalMessageInfo - func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -8125,45 +4568,16 @@ func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { } 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{119} -} -func (m *SetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetExternalTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetExternalTimestampRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SetExternalTimestampRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetExternalTimestampRequest.Merge(m, src) -} -func (m *SetExternalTimestampRequest) XXX_Size() int { - return m.Size() + return fileDescriptorPdpb, []int{119} } -func (m *SetExternalTimestampRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetExternalTimestampRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SetExternalTimestampRequest proto.InternalMessageInfo func (m *SetExternalTimestampRequest) GetHeader() *RequestHeader { if m != nil { @@ -8180,45 +4594,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{120} -} -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{120} } -var xxx_messageInfo_SetExternalTimestampResponse proto.InternalMessageInfo - func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -8227,44 +4612,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{121} -} -func (m *GetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorPdpb, []int{121} } -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 { @@ -8274,46 +4630,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{122} -} -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{122} } -var xxx_messageInfo_GetExternalTimestampResponse proto.InternalMessageInfo - func (m *GetExternalTimestampResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -8329,44 +4656,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{123} -} -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{123} } func (m *GetMinTSRequest) GetHeader() *RequestHeader { if m != nil { @@ -8376,45 +4672,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{124} -} -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{124} } func (m *GetMinTSResponse) GetHeader() *ResponseHeader { if m != nil { @@ -8431,13 +4696,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") @@ -8481,7 +4739,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") @@ -8564,421 +4821,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{ - // 6330 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x7c, 0x4b, 0x93, 0x23, 0xc7, - 0x71, 0xf0, 0x34, 0x1e, 0x33, 0x40, 0xe2, 0x31, 0x98, 0xda, 0xd9, 0x1d, 0x2c, 0xf6, 0xc9, 0x5e, - 0x92, 0xdf, 0x72, 0x45, 0x2e, 0xc9, 0x25, 0xa5, 0x8f, 0xa2, 0x2d, 0x86, 0x30, 0x33, 0xd8, 0x21, - 0xb8, 0xf3, 0x80, 0x1b, 0x98, 0xa5, 0x68, 0x2b, 0xdc, 0xd1, 0xd3, 0x5d, 0x33, 0xd3, 0x1a, 0xa0, - 0x1b, 0xec, 0x6e, 0xcc, 0x2e, 0x14, 0x3e, 0xf8, 0x25, 0xdb, 0x0a, 0x4b, 0x61, 0x47, 0xf8, 0x25, - 0x5f, 0x74, 0xb0, 0x1d, 0xb6, 0x23, 0x6c, 0x5f, 0x7c, 0x70, 0xf8, 0xe6, 0x9b, 0xc3, 0x47, 0x1f, - 0x15, 0x3e, 0x38, 0x14, 0xb2, 0x2f, 0xfe, 0x03, 0xbe, 0xd8, 0x07, 0x47, 0x65, 0x55, 0x35, 0xba, - 0x1b, 0x0d, 0xcc, 0x2e, 0x96, 0xab, 0xd0, 0x09, 0xe8, 0xac, 0xec, 0xac, 0xac, 0xac, 0xac, 0xac, - 0xcc, 0xac, 0xac, 0x06, 0x18, 0x5a, 0xc3, 0xa3, 0xfb, 0x43, 0xcf, 0x0d, 0x5c, 0x92, 0x63, 0xff, - 0x1b, 0xe5, 0x01, 0x0d, 0x0c, 0x09, 0x6b, 0x54, 0xa8, 0x67, 0x1c, 0x07, 0xe1, 0xe3, 0x25, 0xf6, - 0xa4, 0xfb, 0xd4, 0x3b, 0xa7, 0x5e, 0x08, 0xac, 0x7b, 0x74, 0xd8, 0xb7, 0x4d, 0x23, 0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e, 0x34, 0x18, 0x0f, 0xb9, 0xd4, 0x26, 0x03, - 0x65, 0x4d, 0x7c, 0xa0, 0xac, 0x91, 0x0d, 0x74, 0x40, 0x7d, 0xdf, 0x38, 0x91, 0x82, 0x94, 0x8f, - 0xea, 0x10, 0xa0, 0xe7, 0xbb, 0x52, 0x69, 0xbe, 0x14, 0x2e, 0x16, 0xae, 0x73, 0x97, 0xe4, 0x62, - 0x89, 0x88, 0x42, 0xae, 0x15, 0x36, 0x37, 0xa6, 0x3b, 0x72, 0x02, 0x24, 0x59, 0xd1, 0xf8, 0x03, - 0xd3, 0x30, 0xcb, 0xd4, 0xfb, 0x2e, 0xb7, 0x3b, 0x38, 0x43, 0x45, 0x0d, 0x2c, 0x73, 0x57, 0x40, - 0xd4, 0x23, 0x28, 0xf6, 0xec, 0x01, 0xf5, 0x03, 0x63, 0x30, 0x64, 0x4a, 0x32, 0x3c, 0x1d, 0xfb, - 0xb6, 0x69, 0xf4, 0xb1, 0xcb, 0xac, 0x16, 0x3e, 0x33, 0xa6, 0xfb, 0xee, 0x09, 0x36, 0x71, 0xfd, - 0x91, 0x8f, 0xac, 0x0f, 0x7f, 0x74, 0x7c, 0x6c, 0x3f, 0xd5, 0x8f, 0xec, 0xc0, 0xc7, 0x3e, 0x2a, - 0x1a, 0x70, 0xd0, 0xa6, 0x1d, 0xf8, 0xea, 0xaf, 0x2a, 0x50, 0xc2, 0x61, 0x85, 0x9a, 0x1b, 0x1f, - 0xd7, 0x5c, 0x23, 0x30, 0x63, 0x60, 0x6f, 0x41, 0x31, 0x90, 0x7c, 0x0b, 0xc5, 0x13, 0xd2, 0x0e, - 0x87, 0xa3, 0x4d, 0x30, 0xd4, 0xef, 0x29, 0x50, 0xdb, 0x74, 0xdd, 0xc0, 0x0f, 0x3c, 0x63, 0xb8, - 0x90, 0x7c, 0xef, 0x40, 0xde, 0x67, 0xc6, 0x41, 0x68, 0x41, 0xe5, 0xbe, 0xd8, 0x01, 0xd0, 0x62, - 0x68,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a, 0xce, 0x05, 0x49, 0x10, - 0x6d, 0x2d, 0x3a, 0xda, 0x73, 0x26, 0xca, 0x4f, 0x72, 0x85, 0x52, 0xad, 0xac, 0x9e, 0x02, 0x6c, - 0xe1, 0x39, 0x04, 0x53, 0x87, 0x67, 0x58, 0x4b, 0x1f, 0x40, 0x89, 0x9f, 0x5b, 0xe8, 0x98, 0x4f, - 0xce, 0x60, 0x3e, 0x79, 0xe3, 0xbe, 0x3c, 0x68, 0x62, 0x1b, 0x34, 0xa7, 0x87, 0x79, 0x65, 0x30, - 0xc3, 0xff, 0xea, 0x87, 0x50, 0x9e, 0xf4, 0xf4, 0xf8, 0x01, 0xb9, 0x97, 0x3c, 0x28, 0x11, 0x63, - 0x9f, 0x20, 0x85, 0x47, 0x24, 0xea, 0x63, 0xa8, 0xf6, 0x3c, 0xc3, 0xf1, 0x8f, 0xa9, 0x30, 0x92, - 0xcf, 0xc0, 0xa9, 0x0a, 0x79, 0xbe, 0x08, 0x32, 0x29, 0x8b, 0x80, 0x37, 0xa9, 0x6f, 0x43, 0x7e, - 0x8f, 0x7a, 0x27, 0x98, 0x20, 0x0d, 0x0c, 0xef, 0x84, 0x06, 0xb3, 0x62, 0x19, 0xde, 0xaa, 0xee, - 0x42, 0xa9, 0x3b, 0xec, 0xdb, 0x22, 0x2a, 0x24, 0x6f, 0xc0, 0xf2, 0xd0, 0xed, 0xdb, 0xe6, 0x58, - 0x24, 0xd6, 0xd7, 0xe4, 0x10, 0xa8, 0x79, 0xd6, 0xc1, 0x06, 0x4d, 0x20, 0x30, 0xf5, 0x42, 0xed, - 0x63, 0xdc, 0x94, 0x35, 0xfc, 0xaf, 0xee, 0x40, 0xa5, 0xfb, 0xc4, 0x0e, 0xcc, 0xd3, 0x4f, 0xed, - 0xc0, 0xa1, 0xbe, 0xcf, 0x9c, 0x70, 0x74, 0x33, 0xc2, 0x74, 0xff, 0x32, 0x7b, 0x6c, 0x5b, 0x6c, - 0x05, 0xda, 0xbe, 0xfe, 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x0f, 0x41, 0x6c, 0x17, 0xc6, 0xb5, 0x22, 0x30, 0x6e, 0x20, 0x06, 0x30, - 0x10, 0x47, 0x50, 0x7f, 0x4f, 0x81, 0x62, 0xc8, 0x02, 0xa6, 0x35, 0x19, 0x6d, 0x9d, 0x9b, 0x69, - 0x66, 0x9d, 0x14, 0x0d, 0x10, 0xf4, 0x18, 0x0b, 0xac, 0x6e, 0x00, 0x7f, 0x42, 0x05, 0x42, 0x13, - 0xa5, 0x68, 0x45, 0x84, 0x30, 0x5d, 0xe1, 0x56, 0xc8, 0x1f, 0xf5, 0x03, 0x41, 0x20, 0x8b, 0x08, - 0x25, 0x0e, 0xe3, 0x14, 0x6e, 0x81, 0x78, 0xe4, 0x24, 0x72, 0xbc, 0x0b, 0x0e, 0x62, 0x34, 0xd4, - 0x1f, 0x2b, 0x50, 0x8e, 0xca, 0x72, 0xfe, 0x96, 0xf0, 0x00, 0x2e, 0x9f, 0x50, 0x87, 0x32, 0x5a, - 0xba, 0x35, 0xf2, 0x44, 0xd0, 0x4e, 0x4d, 0x61, 0x3e, 0x2f, 0xc9, 0xc6, 0x6d, 0xd1, 0xd6, 0xa5, - 0x26, 0xb9, 0x07, 0x6b, 0xcc, 0xdc, 0xc5, 0xf1, 0xb9, 0x45, 0x5d, 0x65, 0x0d, 0x51, 0xdc, 0x37, - 0x81, 0x70, 0x19, 0xc7, 0x90, 0x79, 0x74, 0x51, 0xc3, 0x96, 0x28, 0xf6, 0x6b, 0xc0, 0x83, 0x12, - 0xb6, 0x57, 0x73, 0xfb, 0xc4, 0xf7, 0x8c, 0x4a, 0x08, 0x65, 0x46, 0x4a, 0xfd, 0x4e, 0x06, 0x00, - 0x43, 0x07, 0xdc, 0xd4, 0xc9, 0xcf, 0x03, 0xf0, 0x32, 0xcd, 0x80, 0x49, 0x84, 0x6f, 0xe3, 0x37, - 0xee, 0xc7, 0x2b, 0x37, 0x35, 0xe3, 0x38, 0xd8, 0x75, 0x4d, 0xa3, 0xcf, 0x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0x6b, 0x45, 0x01, 0x69, 0x5b, 0xa4, 0x06, 0xd9, 0x5e, - 0x6f, 0x17, 0x17, 0x4e, 0x56, 0x63, 0x7f, 0x13, 0x12, 0xc9, 0x25, 0x25, 0xf2, 0x57, 0x0a, 0xdc, - 0x9e, 0xcd, 0xe0, 0xc2, 0x73, 0xfd, 0x5c, 0x2c, 0xbe, 0x0a, 0xd5, 0x81, 0xed, 0xe8, 0x53, 0x6c, - 0x96, 0x07, 0xb6, 0x33, 0x11, 0xe5, 0x09, 0x16, 0xbb, 0x44, 0xd8, 0x7b, 0xfc, 0x60, 0x41, 0xfb, - 0x83, 0xf1, 0xf8, 0xd0, 0x98, 0xf0, 0x57, 0xd1, 0x40, 0x82, 0xda, 0x96, 0x7a, 0x82, 0xd5, 0x30, - 0x89, 0x8e, 0x5e, 0x86, 0xd6, 0x5b, 0xf2, 0x4e, 0xd2, 0x0b, 0x8f, 0x69, 0xde, 0xcd, 0x97, 0x11, - 0x54, 0x43, 0xf2, 0xb8, 0xed, 0x26, 0x25, 0xa0, 0x24, 0x25, 0x70, 0x01, 0xdf, 0xe1, 0x05, 0x90, - 0xec, 0x8c, 0x9b, 0x2e, 0xac, 0x51, 0xfd, 0x43, 0x05, 0x1a, 0x69, 0xa3, 0x5b, 0x48, 0x90, 0x6f, - 0xc2, 0x32, 0xba, 0x16, 0xd2, 0xe7, 0x12, 0xd8, 0xf1, 0x71, 0x69, 0x02, 0x27, 0x26, 0x8d, 0x6c, - 0x42, 0x1a, 0xdf, 0x55, 0xa0, 0x31, 0x65, 0x02, 0x5e, 0x92, 0x26, 0x25, 0xe4, 0x98, 0x4d, 0xce, - 0xff, 0xe7, 0x70, 0x2d, 0x95, 0x95, 0x97, 0x68, 0x8f, 0xfe, 0x29, 0x69, 0x8f, 0x7e, 0x2a, 0x32, - 0x98, 0x58, 0x83, 0x6c, 0xd2, 0x1a, 0xcc, 0x37, 0x4f, 0xcc, 0x58, 0x04, 0x41, 0x1f, 0xf7, 0xee,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 0xa1, 0x12, 0x4b, 0x77, 0xc9, 0x7d, 0x21, 0x2d, 0x57, 0x27, 0xf7, 0x85, 0xd4, 0xfc, 0x18, 0x53, - 0x72, 0xb6, 0x10, 0xa7, 0xd3, 0x4c, 0x5d, 0xb9, 0x10, 0x67, 0xe7, 0xc3, 0xe4, 0x42, 0x9c, 0x93, - 0xa3, 0xe2, 0x7e, 0x7c, 0x5a, 0x36, 0x48, 0xfa, 0xf1, 0x73, 0x72, 0x52, 0xd2, 0x8f, 0x9f, 0x97, - 0x4c, 0xe2, 0x1d, 0xec, 0xcc, 0xe9, 0x60, 0xe7, 0xe2, 0x0e, 0x76, 0xe6, 0x77, 0xc0, 0x03, 0x05, - 0xcc, 0xc4, 0x44, 0x02, 0x85, 0x68, 0x66, 0x27, 0x12, 0x28, 0xc4, 0x12, 0x36, 0xea, 0xd2, 0xe6, - 0xeb, 0x3f, 0xfa, 0xeb, 0x82, 0xf2, 0x2f, 0x3f, 0xb9, 0xa9, 0xfc, 0xeb, 0x4f, 0x6e, 0x2a, 0x3f, - 0xfe, 0xc9, 0x4d, 0xe5, 0x07, 0xff, 0x71, 0x73, 0x09, 0x6a, 0xae, 0x77, 0x72, 0x3f, 0xb0, 0xcf, - 0xce, 0xef, 0x9f, 0x9d, 0xe3, 0xa7, 0x99, 0x8f, 0x96, 0xf1, 0xe7, 0xbd, 0xff, 0x0b, 0x00, 0x00, - 0xff, 0xff, 0xcf, 0x00, 0xfe, 0x30, 0x28, 0x5a, 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 -// 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. @@ -9046,7 +4907,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 } @@ -9055,7 +4916,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 } @@ -9063,7 +4924,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 } @@ -9095,7 +4956,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 } @@ -9104,7 +4965,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 } @@ -9113,7 +4974,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 } @@ -9122,7 +4983,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 } @@ -9131,7 +4992,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 } @@ -9140,7 +5001,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 } @@ -9149,7 +5010,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 } @@ -9158,7 +5019,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 } @@ -9166,7 +5027,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 } @@ -9198,7 +5059,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 } @@ -9207,7 +5068,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 } @@ -9216,7 +5077,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 } @@ -9225,7 +5086,7 @@ 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 } @@ -9234,27 +5095,25 @@ func (c *pDClient) ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts func (c *pDClient) BatchScanRegions(ctx context.Context, in *BatchScanRegionsRequest, opts ...grpc.CallOption) (*BatchScanRegionsResponse, error) { out := new(BatchScanRegionsResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/BatchScanRegions", in, out, opts...) + err := grpc.Invoke(ctx, "/pdpb.PD/BatchScanRegions", 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 } @@ -9263,7 +5122,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 } @@ -9272,7 +5131,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 } @@ -9281,7 +5140,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 } @@ -9290,7 +5149,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 } @@ -9299,7 +5158,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 } @@ -9308,7 +5167,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 } @@ -9317,7 +5176,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 } @@ -9326,7 +5185,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 } @@ -9335,7 +5194,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 } @@ -9343,7 +5202,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 } @@ -9376,7 +5235,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 } @@ -9385,7 +5244,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 } @@ -9394,7 +5253,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 } @@ -9402,7 +5261,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 } @@ -9434,7 +5293,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 } @@ -9443,7 +5302,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 } @@ -9452,7 +5311,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 } @@ -9461,7 +5320,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 } @@ -9470,7 +5329,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 } @@ -9479,7 +5338,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 } @@ -9488,7 +5347,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 } @@ -9496,7 +5355,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 } @@ -9528,7 +5387,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 } @@ -9563,7 +5422,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 } @@ -9572,7 +5431,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 } @@ -9581,7 +5440,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 } @@ -9590,14 +5449,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. @@ -9655,169 +5515,26 @@ 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 (*UnimplementedPDServer) Tso(srv PD_TsoServer) error { - return status.Errorf(codes.Unimplemented, "method Tso not implemented") -} -func (*UnimplementedPDServer) Bootstrap(ctx context.Context, req *BootstrapRequest) (*BootstrapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Bootstrap not implemented") -} -func (*UnimplementedPDServer) IsBootstrapped(ctx context.Context, req *IsBootstrappedRequest) (*IsBootstrappedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsBootstrapped not implemented") -} -func (*UnimplementedPDServer) AllocID(ctx context.Context, req *AllocIDRequest) (*AllocIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllocID not implemented") -} -func (*UnimplementedPDServer) IsSnapshotRecovering(ctx context.Context, req *IsSnapshotRecoveringRequest) (*IsSnapshotRecoveringResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsSnapshotRecovering not implemented") -} -func (*UnimplementedPDServer) GetStore(ctx context.Context, req *GetStoreRequest) (*GetStoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStore not implemented") -} -func (*UnimplementedPDServer) PutStore(ctx context.Context, req *PutStoreRequest) (*PutStoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PutStore not implemented") -} -func (*UnimplementedPDServer) GetAllStores(ctx context.Context, req *GetAllStoresRequest) (*GetAllStoresResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllStores not implemented") -} -func (*UnimplementedPDServer) StoreHeartbeat(ctx context.Context, req *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StoreHeartbeat not implemented") -} -func (*UnimplementedPDServer) RegionHeartbeat(srv PD_RegionHeartbeatServer) error { - return status.Errorf(codes.Unimplemented, "method RegionHeartbeat not implemented") -} -func (*UnimplementedPDServer) GetRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegion not implemented") -} -func (*UnimplementedPDServer) GetPrevRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPrevRegion not implemented") -} -func (*UnimplementedPDServer) GetRegionByID(ctx context.Context, req *GetRegionByIDRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegionByID not implemented") -} -func (*UnimplementedPDServer) ScanRegions(ctx context.Context, req *ScanRegionsRequest) (*ScanRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScanRegions not implemented") -} -func (*UnimplementedPDServer) BatchScanRegions(ctx context.Context, req *BatchScanRegionsRequest) (*BatchScanRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BatchScanRegions not implemented") -} -func (*UnimplementedPDServer) AskSplit(ctx context.Context, req *AskSplitRequest) (*AskSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AskSplit not implemented") -} -func (*UnimplementedPDServer) ReportSplit(ctx context.Context, req *ReportSplitRequest) (*ReportSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportSplit not implemented") -} -func (*UnimplementedPDServer) AskBatchSplit(ctx context.Context, req *AskBatchSplitRequest) (*AskBatchSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AskBatchSplit not implemented") -} -func (*UnimplementedPDServer) ReportBatchSplit(ctx context.Context, req *ReportBatchSplitRequest) (*ReportBatchSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportBatchSplit not implemented") -} -func (*UnimplementedPDServer) GetClusterConfig(ctx context.Context, req *GetClusterConfigRequest) (*GetClusterConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterConfig not implemented") -} -func (*UnimplementedPDServer) PutClusterConfig(ctx context.Context, req *PutClusterConfigRequest) (*PutClusterConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PutClusterConfig not implemented") -} -func (*UnimplementedPDServer) ScatterRegion(ctx context.Context, req *ScatterRegionRequest) (*ScatterRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScatterRegion not implemented") -} -func (*UnimplementedPDServer) GetGCSafePoint(ctx context.Context, req *GetGCSafePointRequest) (*GetGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePoint not implemented") -} -func (*UnimplementedPDServer) UpdateGCSafePoint(ctx context.Context, req *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePoint not implemented") -} -func (*UnimplementedPDServer) UpdateServiceGCSafePoint(ctx context.Context, req *UpdateServiceGCSafePointRequest) (*UpdateServiceGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceGCSafePoint not implemented") -} -func (*UnimplementedPDServer) GetGCSafePointV2(ctx context.Context, req *GetGCSafePointV2Request) (*GetGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) WatchGCSafePointV2(req *WatchGCSafePointV2Request, srv PD_WatchGCSafePointV2Server) error { - return status.Errorf(codes.Unimplemented, "method WatchGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) UpdateGCSafePointV2(ctx context.Context, req *UpdateGCSafePointV2Request) (*UpdateGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) UpdateServiceSafePointV2(ctx context.Context, req *UpdateServiceSafePointV2Request) (*UpdateServiceSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceSafePointV2 not implemented") -} -func (*UnimplementedPDServer) GetAllGCSafePointV2(ctx context.Context, req *GetAllGCSafePointV2Request) (*GetAllGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllGCSafePointV2 not implemented") -} -func (*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_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) { @@ -10874,7 +6591,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 } @@ -10882,38 +6599,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 } @@ -10921,57 +6628,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 } @@ -10979,47 +6673,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 } @@ -11027,38 +6709,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 } @@ -11066,42 +6737,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 } @@ -11109,45 +6776,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 } @@ -11155,64 +6811,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 } @@ -11220,36 +6862,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 } @@ -11257,43 +6890,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 } @@ -11301,38 +6923,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 } @@ -11340,50 +6952,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 } @@ -11391,41 +6991,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 } @@ -11433,55 +7024,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 } @@ -11489,62 +7067,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 } @@ -11552,50 +7115,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 } @@ -11603,38 +7153,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 } @@ -11642,48 +7181,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 } @@ -11691,38 +7219,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 } @@ -11730,43 +7247,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 } @@ -11774,38 +7280,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 } @@ -11813,48 +7308,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 } @@ -11862,43 +7346,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 } @@ -11906,62 +7379,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 } @@ -11969,50 +7427,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 } @@ -12020,50 +7465,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 } @@ -12071,48 +7503,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 } @@ -12120,52 +7541,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 } @@ -12173,55 +7581,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 } @@ -12229,102 +7625,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 } @@ -12332,53 +7707,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 } @@ -12386,57 +7750,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 } @@ -12444,90 +7795,71 @@ 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.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] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n36, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + 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 + if m.Buckets != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Buckets.Size())) + n38, err := m.Buckets.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 + } + 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 } @@ -12535,80 +7867,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())) + n39, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 } - 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 *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 } @@ -12616,40 +7931,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 = encodeVarintPdpb(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 = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(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 = encodeVarintPdpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return i, nil } func (m *BatchScanRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12657,77 +7961,64 @@ func (m *BatchScanRegionsRequest) Marshal() (dAtA []byte, err error) { } func (m *BatchScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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.ContainAllKeyRange { - i-- - if m.ContainAllKeyRange { + if m.NeedBuckets { + dAtA[i] = 0x10 + i++ + if m.NeedBuckets { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 - } - if m.Limit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x20 + 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 = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Ranges { 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 m.NeedBuckets { - i-- - if m.NeedBuckets { + if m.Limit != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) + } + if m.ContainAllKeyRange { + dAtA[i] = 0x28 + i++ + if m.ContainAllKeyRange { 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 *BatchScanRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -12735,52 +8026,39 @@ func (m *BatchScanRegionsResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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())) + n41, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n41 } 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 *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 } @@ -12788,38 +8066,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())) + n42, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 } - 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 } @@ -12827,50 +8094,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())) + n43, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n43 } 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())) + n44, err := m.Cluster.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n44 } - 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 } @@ -12878,50 +8132,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())) + n45, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 } 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())) + n46, err := m.Cluster.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n46 } - 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 } @@ -12929,38 +8170,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())) + n47, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 } - 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 } @@ -12968,89 +8198,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 } @@ -13058,38 +8286,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())) + n48, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 } - 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 } @@ -13097,102 +8314,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())) + n49, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n49 } - 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())) + n50, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 } - 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())) + n51, err := m.EtcdLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n51 + } + 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())) + n52, 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 += n52 } - 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 } @@ -13200,38 +8402,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())) + n53, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n53 } - 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 } @@ -13239,65 +8430,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())) + n54, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n54 } if len(m.ServiceModes) > 0 { - dAtA55 := make([]byte, len(m.ServiceModes)*10) - var j54 int + dAtA56 := make([]byte, len(m.ServiceModes)*10) + var j55 int for _, num := range m.ServiceModes { for num >= 1<<7 { - dAtA55[j54] = uint8(uint64(num)&0x7f | 0x80) + dAtA56[j55] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j54++ + j55++ } - dAtA55[j54] = uint8(num) - j54++ + dAtA56[j55] = uint8(num) + j55++ } - i -= j54 - copy(dAtA[i:], dAtA55[:j54]) - i = encodeVarintPdpb(dAtA, i, uint64(j54)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j55)) + i += copy(dAtA[i:], dAtA56[:j55]) } - 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 } @@ -13305,43 +8490,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())) + n57, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 } 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 } @@ -13349,177 +8523,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.ApproximateKvSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKvSize)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n58, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n58 } - if m.CpuUsage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.CpuUsage)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n59, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 } - 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)) + if m.Leader != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n60, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n60 } - 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())) + n61, err := m.Interval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n61 } - 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())) + n62, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n62 } - 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())) + n63, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n63 + } + 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 } @@ -13527,43 +8676,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())) + n64, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n64 } 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 } @@ -13571,40 +8709,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 } @@ -13612,52 +8739,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())) + n65, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 } 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 } @@ -13665,38 +8779,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())) + n66, err := m.Target.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 } - 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 } @@ -13704,40 +8807,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 } @@ -13745,41 +8838,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 + i++ } - if m.PeerId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x8 - } - 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 } @@ -13787,40 +8871,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 } @@ -13828,139 +8901,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())) + n67, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x52 + i += n67 } - 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())) + n68, err := m.ChangePeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n68 } - 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())) + n69, err := m.TransferLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n69 } - 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())) + n70, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n70 } 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())) + n71, err := m.TargetPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n71 } - 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())) + n72, err := m.Merge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n72 } - 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())) + n73, err := m.SplitRegion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n73 } - 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())) + n74, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n74 } - 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())) + n75, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n75 } - 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 } @@ -13968,50 +9014,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())) + n76, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n76 } 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())) + n77, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n77 } - 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 } @@ -14019,61 +9052,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())) + n78, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n78 + } + if m.NewRegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) } if len(m.NewPeerIds) > 0 { - dAtA79 := make([]byte, len(m.NewPeerIds)*10) - var j78 int + dAtA80 := make([]byte, len(m.NewPeerIds)*10) + var j79 int for _, num := range m.NewPeerIds { for num >= 1<<7 { - dAtA79[j78] = uint8(uint64(num)&0x7f | 0x80) + dAtA80[j79] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j78++ + j79++ } - dAtA79[j78] = uint8(num) - j78++ + dAtA80[j79] = uint8(num) + j79++ } - i -= j78 - copy(dAtA[i:], dAtA79[:j78]) - i = encodeVarintPdpb(dAtA, i, uint64(j78)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j79)) + i += copy(dAtA[i:], dAtA80[:j79]) } - 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 } @@ -14081,62 +9102,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())) + n81, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n81 } 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())) + n82, err := m.Left.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n82 } - 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())) + n83, err := m.Right.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n83 } - 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 } @@ -14144,38 +9150,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())) + n84, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n84 } - 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 } @@ -14183,55 +9178,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())) + n85, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n85 } 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())) + n86, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n86 + } + 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 } @@ -14239,18 +9221,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 { dAtA88 := make([]byte, len(m.NewPeerIds)*10) @@ -14264,24 +9242,18 @@ func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA88[j87] = uint8(num) j87++ } - i -= j87 - copy(dAtA[i:], dAtA88[:j87]) - i = encodeVarintPdpb(dAtA, i, uint64(j87)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j87)) + i += copy(dAtA[i:], dAtA88[:j87]) } - 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 } @@ -14289,52 +9261,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())) + n89, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n89 } 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 } @@ -14342,52 +9301,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())) + n90, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n90 } 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 } @@ -14395,38 +9341,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())) + n91, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n91 } - 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 } @@ -14434,36 +9369,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 } @@ -14471,38 +9397,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 } @@ -14510,63 +9426,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())) + n92, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n92 } - 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.WrittenKeys != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) } - 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 } @@ -14574,302 +9479,274 @@ 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.UsedMemory != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.UsedMemory)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe8 + if m.Capacity != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Capacity)) } - if m.TotalMemory != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TotalMemory)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe0 + if m.Available != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Available)) } - if m.IsGrpcPaused { - i-- - if m.IsGrpcPaused { + 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())) + n93, err := m.Interval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n93 + } + 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 { - dAtA95 := make([]byte, len(m.DamagedRegionsId)*10) - var j94 int - for _, num := range m.DamagedRegionsId { - for num >= 1<<7 { - dAtA95[j94] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j94++ + 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 } - dAtA95[j94] = uint8(num) - j94++ + i += n } - i -= j94 - copy(dAtA[i:], dAtA95[:j94]) - i = encodeVarintPdpb(dAtA, i, uint64(j94)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - if m.SlowScore != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SlowScore)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb0 } - if m.QueryStats != nil { - { - size, err := m.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())) + n94, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n94 } - 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 { + dAtA96 := make([]byte, len(m.DamagedRegionsId)*10) + var j95 int + for _, num := range m.DamagedRegionsId { + for num >= 1<<7 { + dAtA96[j95] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j95++ } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + dAtA96[j95] = uint8(num) + j95++ } + dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j95)) + i += copy(dAtA[i:], dAtA96[:j95]) } - 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())) + n97, err := m.SlowTrend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n97 } - 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 + i++ } - if m.Capacity != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Capacity)) - i-- - dAtA[i] = 0x10 + if m.TotalMemory != 0 { + dAtA[i] = 0xe0 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TotalMemory)) } - if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x8 + if m.UsedMemory != 0 { + dAtA[i] = 0xe8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.UsedMemory)) } - 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 } @@ -14877,50 +9754,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 } @@ -14928,51 +9796,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 } @@ -14980,75 +9839,62 @@ 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.AppliedIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x28 + if m.RaftState != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RaftState.Size())) + n98, err := m.RaftState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n98 } - 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())) + n99, err := m.RegionState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n99 } if m.IsForceLeader { - i-- + dAtA[i] = 0x18 + i++ if m.IsForceLeader { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.RegionState != nil { - { - size, err := m.RegionState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.HasCommitMerge { + dAtA[i] = 0x20 + i++ + if m.HasCommitMerge { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - 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)) - } - i-- - dAtA[i] = 0xa + if m.AppliedIndex != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.AppliedIndex)) } - 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 } @@ -15056,45 +9902,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 } @@ -15102,74 +9937,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())) + n100, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n100 } - 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())) + n101, err := m.Stats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n101 } 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())) + n102, err := m.StoreReport.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n102 } - 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())) + n103, err := m.DrAutosyncStatus.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 *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 } @@ -15177,45 +9995,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 } @@ -15223,23 +10030,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 { - dAtA105 := make([]byte, len(m.EnterForceLeaders)*10) + if len(m.FailedStores) > 0 { + dAtA105 := make([]byte, len(m.FailedStores)*10) var j104 int - for _, num := range m.EnterForceLeaders { + for _, num := range m.FailedStores { for num >= 1<<7 { dAtA105[j104] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -15248,16 +10046,15 @@ func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA105[j104] = uint8(num) j104++ } - i -= j104 - copy(dAtA[i:], dAtA105[:j104]) + dAtA[i] = 0xa + i++ i = encodeVarintPdpb(dAtA, i, uint64(j104)) - i-- - dAtA[i] = 0x12 + i += copy(dAtA[i:], dAtA105[:j104]) } - if len(m.FailedStores) > 0 { - dAtA107 := make([]byte, len(m.FailedStores)*10) + if len(m.EnterForceLeaders) > 0 { + dAtA107 := make([]byte, len(m.EnterForceLeaders)*10) var j106 int - for _, num := range m.FailedStores { + for _, num := range m.EnterForceLeaders { for num >= 1<<7 { dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -15266,19 +10063,18 @@ func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA107[j106] = uint8(num) j106++ } - i -= j106 - copy(dAtA[i:], dAtA107[:j106]) + dAtA[i] = 0x12 + i++ i = encodeVarintPdpb(dAtA, i, uint64(j106)) - i-- - dAtA[i] = 0xa + i += copy(dAtA[i:], dAtA107[:j106]) } - 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 } @@ -15286,103 +10082,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 { - dAtA110 := make([]byte, len(m.Tombstones)*10) - var j109 int + dAtA109 := make([]byte, len(m.Tombstones)*10) + var j108 int for _, num := range m.Tombstones { for num >= 1<<7 { - dAtA110[j109] = uint8(uint64(num)&0x7f | 0x80) + dAtA109[j108] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j109++ + j108++ } - dAtA110[j109] = uint8(num) - j109++ + dAtA109[j108] = uint8(num) + j108++ } - i -= j109 - copy(dAtA[i:], dAtA110[:j109]) - i = encodeVarintPdpb(dAtA, i, uint64(j109)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j108)) + i += copy(dAtA[i:], dAtA109[:j108]) } - 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())) + n110, err := m.ForceLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n110 + } + if m.Step != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) } - return len(dAtA) - i, nil + 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 } @@ -15390,19 +10168,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 { dAtA112 := make([]byte, len(m.AbnormalStores)*10) var j111 int @@ -15415,19 +10184,18 @@ func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA112[j111] = uint8(num) j111++ } - i -= j111 - copy(dAtA[i:], dAtA112[:j111]) - i = encodeVarintPdpb(dAtA, i, uint64(j111)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j111)) + i += copy(dAtA[i:], dAtA112[:j111]) } - 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 } @@ -15435,31 +10203,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 } @@ -15467,103 +10226,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())) + n113, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n113 } - 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())) + n114, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n114 } - 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())) + n115, err := m.RecoveryPlan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n115 } - 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())) + n116, err := m.AwakenRegions.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n116 } - 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())) + n117, err := m.ControlGrpc.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n117 } - 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 } @@ -15571,107 +10310,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())) + n118, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n118 } - 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())) + n119, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x40 + i += n119 } - 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())) + n120, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n120 + } + 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 + dAtA122 := make([]byte, len(m.RegionsId)*10) + var j121 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA119[j118] = uint8(uint64(num)&0x7f | 0x80) + dAtA122[j121] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j118++ + j121++ } - dAtA119[j118] = uint8(num) - j118++ + dAtA122[j121] = uint8(num) + j121++ } - i -= j118 - copy(dAtA[i:], dAtA119[:j118]) - i = encodeVarintPdpb(dAtA, i, uint64(j118)) - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j121)) + i += copy(dAtA[i:], dAtA122[:j121]) } - 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 } @@ -15679,43 +10401,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())) + n123, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n123 } 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 } @@ -15723,38 +10434,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())) + n124, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n124 } - 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 } @@ -15762,43 +10462,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())) + 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] = 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 } @@ -15806,43 +10495,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())) + n126, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n126 } 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 } @@ -15850,43 +10528,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())) + n127, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n127 } 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 } @@ -15894,55 +10561,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())) + 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] = 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 } @@ -15950,55 +10605,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())) + n129, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n129 } - 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 } @@ -16006,43 +10649,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())) + n130, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n130 } 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 } @@ -16050,43 +10682,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())) + n131, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n131 } 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 } @@ -16094,43 +10715,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())) + n132, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n132 } 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 } @@ -16138,41 +10748,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 } @@ -16180,57 +10781,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())) + n133, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n133 } 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 } @@ -16238,48 +10826,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())) + n134, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n134 } 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 } @@ -16287,43 +10864,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())) + n135, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n135 } 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 } @@ -16331,60 +10897,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())) + n136, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n136 } - 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 } @@ -16392,55 +10946,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())) + n137, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n137 } - 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.MinSafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) } - 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 *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 } @@ -16448,38 +10990,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())) + n138, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n138 } - 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 } @@ -16487,36 +11018,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 } @@ -16524,57 +11046,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())) + n139, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n139 } 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 } @@ -16582,46 +11091,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 } @@ -16629,55 +11129,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())) + n140, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n140 } 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())) + n141, err := m.Member.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n141 + } + 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 } @@ -16685,40 +11172,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 } @@ -16726,40 +11202,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 } @@ -16767,131 +11232,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())) + n142, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n142 } - 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 } @@ -16899,43 +11341,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())) + n143, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n143 } 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 } @@ -16943,62 +11374,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())) + n144, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n144 } - 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 } @@ -17006,60 +11424,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())) + n145, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n145 } - if m.SkipCheck { - i-- + if m.MaxTs != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MaxTs.Size())) + n146, err := m.MaxTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n146 + } + if m.SkipCheck { + 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 } @@ -17067,59 +11472,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())) + n147, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n147 } 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())) + n148, err := m.MaxLocalTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n148 } - 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 } @@ -17127,52 +11525,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())) + n149, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n149 } 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 } @@ -17180,61 +11566,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())) + n150, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n150 + } + if m.FinishedPercentage != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) } if len(m.RegionsId) > 0 { - dAtA151 := make([]byte, len(m.RegionsId)*10) - var j150 int + dAtA152 := make([]byte, len(m.RegionsId)*10) + var j151 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA151[j150] = uint8(uint64(num)&0x7f | 0x80) + dAtA152[j151] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j150++ + j151++ } - dAtA151[j150] = uint8(num) - j150++ + dAtA152[j151] = uint8(num) + j151++ } - i -= j150 - copy(dAtA[i:], dAtA151[:j150]) - i = encodeVarintPdpb(dAtA, i, uint64(j150)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j151)) + i += copy(dAtA[i:], dAtA152[:j151]) } - 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 } @@ -17242,59 +11616,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())) + n153, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n153 } 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) } - return len(dAtA) - i, nil + 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.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -17302,66 +11663,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())) + n154, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n154 + } + 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 { - dAtA155 := make([]byte, len(m.RegionsId)*10) - var j154 int + dAtA156 := make([]byte, len(m.RegionsId)*10) + var j155 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA155[j154] = uint8(uint64(num)&0x7f | 0x80) + dAtA156[j155] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j154++ + j155++ } - dAtA155[j154] = uint8(num) - j154++ + dAtA156[j155] = uint8(num) + j155++ } - i -= j154 - copy(dAtA[i:], dAtA155[:j154]) - i = encodeVarintPdpb(dAtA, i, uint64(j154)) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j155)) + i += copy(dAtA[i:], dAtA156[:j155]) } - 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 } @@ -17369,45 +11718,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())) + n157, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n157 } 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 } @@ -17415,55 +11752,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())) + n158, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n158 } 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())) + n159, err := m.MaxTs.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 *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 } @@ -17471,81 +11795,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 } @@ -17553,62 +11868,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())) + n160, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n160 } 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())) + n161, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n161 } - 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())) + n162, err := m.Buckets.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n162 } - 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 } @@ -17616,38 +11916,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())) + n163, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n163 } - 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 } @@ -17655,48 +11944,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())) + n164, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n164 } 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 } @@ -17704,38 +11982,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())) + 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 *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 } @@ -17743,43 +12010,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())) + 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 *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 } @@ -17787,38 +12043,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())) + 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 *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 } @@ -17826,38 +12071,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())) + n168, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n168 } - 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 } @@ -17865,43 +12099,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())) + n169, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n169 } 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 } @@ -17909,38 +12132,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())) + n170, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n170 } - 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 } @@ -17948,61 +12160,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())) + n171, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n171 } 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())) + n172, err := m.Timestamp.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n172 } - 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) @@ -18012,16 +12206,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 { @@ -18037,16 +12225,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 { @@ -18059,32 +12241,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 { @@ -18097,16 +12267,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 { @@ -18118,16 +12282,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) @@ -18149,16 +12307,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 { @@ -18167,16 +12319,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 { @@ -18186,16 +12332,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 { @@ -18205,16 +12345,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 { @@ -18228,16 +12362,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 { @@ -18249,16 +12377,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 { @@ -18272,16 +12394,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 { @@ -18296,16 +12412,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 { @@ -18316,32 +12426,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 { @@ -18351,32 +12449,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 { @@ -18386,32 +12472,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 { @@ -18421,16 +12495,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 { @@ -18440,16 +12508,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 { @@ -18464,16 +12526,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 { @@ -18484,16 +12540,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 { @@ -18504,16 +12554,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 { @@ -18523,16 +12567,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 { @@ -18545,16 +12583,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 { @@ -18568,16 +12600,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 { @@ -18608,16 +12634,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 { @@ -18630,16 +12650,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 { @@ -18657,16 +12671,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 { @@ -18693,16 +12701,10 @@ func (m *Region) 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 *ScanRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18727,16 +12729,10 @@ 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 *KeyRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -18747,16 +12743,10 @@ func (m *KeyRange) 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 *BatchScanRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18778,16 +12768,10 @@ func (m *BatchScanRegionsRequest) Size() (n int) { if m.ContainAllKeyRange { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *BatchScanRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18800,32 +12784,20 @@ func (m *BatchScanRegionsResponse) 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 { @@ -18836,16 +12808,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 { @@ -18856,32 +12822,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) @@ -18922,32 +12876,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 { @@ -18981,32 +12923,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 { @@ -19026,16 +12956,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 { @@ -19045,16 +12969,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 { @@ -19120,16 +13038,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 { @@ -19139,16 +13051,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 { @@ -19157,16 +13063,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 { @@ -19179,32 +13079,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 { @@ -19216,16 +13104,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 { @@ -19234,16 +13116,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 { @@ -19252,16 +13128,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 { @@ -19303,16 +13173,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 { @@ -19323,16 +13187,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 { @@ -19349,16 +13207,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 { @@ -19373,32 +13225,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 { @@ -19412,16 +13252,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 { @@ -19434,16 +13268,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 { @@ -19456,16 +13284,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 { @@ -19478,32 +13300,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 { @@ -19512,16 +13322,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) @@ -19531,16 +13335,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 { @@ -19562,16 +13360,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 { @@ -19686,16 +13478,10 @@ func (m *StoreStats) Size() (n int) { 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 { @@ -19710,16 +13496,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 { @@ -19737,16 +13517,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 { @@ -19766,16 +13540,10 @@ func (m *PeerReport) Size() (n int) { if m.AppliedIndex != 0 { n += 1 + sovPdpb(uint64(m.AppliedIndex)) } - 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 { @@ -19787,16 +13555,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 { @@ -19815,16 +13577,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 { @@ -19836,16 +13592,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 { @@ -19862,16 +13612,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 { @@ -19906,16 +13650,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 { @@ -19925,31 +13663,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 { @@ -19979,16 +13705,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 { @@ -20023,16 +13743,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 { @@ -20042,32 +13756,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 { @@ -20077,16 +13779,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 { @@ -20096,16 +13792,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 { @@ -20115,16 +13805,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 { @@ -20141,16 +13825,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 { @@ -20167,16 +13845,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 { @@ -20186,16 +13858,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 { @@ -20205,16 +13871,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 { @@ -20224,16 +13884,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 { @@ -20245,16 +13899,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 { @@ -20270,16 +13918,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 { @@ -20292,16 +13934,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 { @@ -20311,16 +13947,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 { @@ -20340,16 +13970,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 { @@ -20366,32 +13990,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 { @@ -20400,16 +14012,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 { @@ -20425,16 +14031,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 { @@ -20449,16 +14049,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 { @@ -20472,16 +14066,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 { @@ -20490,16 +14078,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 { @@ -20508,16 +14090,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 { @@ -20563,16 +14139,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 { @@ -20582,16 +14152,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 { @@ -20612,16 +14176,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 { @@ -20635,16 +14193,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 { @@ -20661,16 +14213,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 { @@ -20686,16 +14232,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 { @@ -20712,16 +14252,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 { @@ -20741,16 +14275,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 { @@ -20770,16 +14298,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 { @@ -20790,16 +14312,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 { @@ -20813,16 +14329,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 { @@ -20858,16 +14368,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 { @@ -20882,32 +14386,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 { @@ -20920,32 +14412,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 { @@ -20955,48 +14435,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 { @@ -21006,32 +14468,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 { @@ -21042,14 +14492,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)))) @@ -21069,7 +14523,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 } @@ -21097,7 +14551,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 } @@ -21107,9 +14561,6 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21129,7 +14580,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 } @@ -21140,13 +14591,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 } } @@ -21171,7 +14621,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 } @@ -21199,7 +14649,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 } @@ -21208,9 +14658,6 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21233,7 +14680,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 } @@ -21252,7 +14699,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 } @@ -21261,9 +14708,6 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21280,13 +14724,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 } } @@ -21311,7 +14754,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 } @@ -21339,7 +14782,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 } @@ -21348,9 +14791,6 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21373,7 +14813,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 } @@ -21383,9 +14823,6 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21397,13 +14834,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 } } @@ -21428,7 +14864,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 } @@ -21456,7 +14892,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 } @@ -21465,9 +14901,6 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21484,13 +14917,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 } } @@ -21515,7 +14947,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 } @@ -21543,7 +14975,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 } @@ -21553,9 +14985,6 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21575,7 +15004,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 } @@ -21585,9 +15014,6 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21599,13 +15025,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 } } @@ -21630,7 +15055,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 } @@ -21658,7 +15083,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 } @@ -21667,9 +15092,6 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21692,7 +15114,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 } @@ -21703,13 +15125,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 } } @@ -21734,7 +15155,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 } @@ -21762,7 +15183,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 } @@ -21772,9 +15193,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21794,7 +15212,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 } @@ -21804,9 +15222,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21826,7 +15241,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 } @@ -21835,9 +15250,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21862,7 +15274,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 } @@ -21881,7 +15293,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 } @@ -21890,9 +15302,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21907,13 +15316,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 } } @@ -21938,7 +15346,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 } @@ -21966,7 +15374,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 } @@ -21985,7 +15393,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 } @@ -21996,13 +15404,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 } } @@ -22027,7 +15434,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 } @@ -22055,7 +15462,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 } @@ -22074,7 +15481,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 } @@ -22083,9 +15490,6 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22102,13 +15506,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 } } @@ -22133,7 +15536,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 } @@ -22161,7 +15564,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 } @@ -22180,7 +15583,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 } @@ -22190,9 +15593,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22204,13 +15604,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 } } @@ -22235,7 +15634,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 } @@ -22263,7 +15662,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 } @@ -22272,9 +15671,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22299,7 +15695,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 } @@ -22318,7 +15714,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 } @@ -22328,9 +15724,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22342,13 +15735,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 } } @@ -22373,7 +15765,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 } @@ -22401,7 +15793,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 } @@ -22420,7 +15812,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 } @@ -22439,7 +15831,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 } @@ -22450,13 +15842,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 } } @@ -22481,7 +15872,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 } @@ -22509,7 +15900,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 } @@ -22518,9 +15909,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22545,7 +15933,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 } @@ -22564,7 +15952,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 } @@ -22573,9 +15961,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22592,13 +15977,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 } } @@ -22623,7 +16007,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 } @@ -22651,7 +16035,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 } @@ -22660,9 +16044,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22687,7 +16068,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 } @@ -22696,9 +16077,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22723,7 +16101,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 } @@ -22732,9 +16110,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22751,13 +16126,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 } } @@ -22782,7 +16156,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 } @@ -22810,7 +16184,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 } @@ -22819,9 +16193,6 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22846,7 +16217,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 } @@ -22855,9 +16226,6 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22874,13 +16242,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 } } @@ -22905,7 +16272,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 } @@ -22933,7 +16300,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 } @@ -22942,9 +16309,6 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22961,13 +16325,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 } } @@ -22992,7 +16355,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 } @@ -23020,7 +16383,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 } @@ -23029,9 +16392,6 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23056,7 +16416,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 } @@ -23068,13 +16428,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 } } @@ -23099,7 +16458,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 } @@ -23127,7 +16486,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 } @@ -23136,9 +16495,6 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23155,13 +16511,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 } } @@ -23186,7 +16541,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 } @@ -23214,7 +16569,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 } @@ -23223,9 +16578,6 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23250,7 +16602,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 } @@ -23261,13 +16613,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 } } @@ -23292,7 +16643,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 } @@ -23320,7 +16671,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 } @@ -23329,9 +16680,6 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23348,13 +16696,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 } } @@ -23379,7 +16726,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 } @@ -23407,7 +16754,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 } @@ -23416,9 +16763,6 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23443,7 +16787,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 } @@ -23455,13 +16799,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 } } @@ -23486,7 +16829,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 } @@ -23514,7 +16857,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 } @@ -23523,9 +16866,6 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23550,7 +16890,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 } @@ -23561,13 +16901,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 } } @@ -23592,7 +16931,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 } @@ -23620,7 +16959,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 } @@ -23629,9 +16968,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23656,7 +16992,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 } @@ -23665,9 +17001,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23692,7 +17025,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 } @@ -23701,9 +17034,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23720,13 +17050,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 } } @@ -23751,7 +17080,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 } @@ -23779,7 +17108,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 } @@ -23788,9 +17117,6 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23815,7 +17141,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 } @@ -23824,9 +17150,6 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23843,13 +17166,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 } } @@ -23874,7 +17196,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 } @@ -23902,7 +17224,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 } @@ -23911,9 +17233,6 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23938,7 +17257,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 } @@ -23947,9 +17266,6 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23966,13 +17282,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 } } @@ -23997,7 +17312,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 } @@ -24025,7 +17340,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 } @@ -24034,9 +17349,6 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24061,7 +17373,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 } @@ -24073,13 +17385,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 } } @@ -24104,7 +17415,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 } @@ -24132,7 +17443,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 } @@ -24141,9 +17452,6 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24168,7 +17476,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 } @@ -24177,9 +17485,6 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24194,13 +17499,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 } } @@ -24225,7 +17529,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 } @@ -24253,7 +17557,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 } @@ -24262,9 +17566,6 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24289,7 +17590,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 } @@ -24298,9 +17599,6 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24323,7 +17621,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 } @@ -24335,13 +17633,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 } } @@ -24366,7 +17663,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 } @@ -24394,7 +17691,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 } @@ -24403,9 +17700,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24430,7 +17724,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 } @@ -24439,9 +17733,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24466,7 +17757,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 } @@ -24475,9 +17766,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24502,7 +17790,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 } @@ -24511,9 +17799,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24536,7 +17821,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 } @@ -24545,9 +17830,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24570,7 +17852,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 } @@ -24579,9 +17861,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24598,13 +17877,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 } } @@ -24629,7 +17907,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 } @@ -24657,7 +17935,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 } @@ -24666,9 +17944,6 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24693,7 +17968,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 } @@ -24712,7 +17987,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 } @@ -24724,13 +17999,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 } } @@ -24755,7 +18029,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 } @@ -24783,7 +18057,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 } @@ -24792,9 +18066,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24819,7 +18090,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 } @@ -24828,9 +18099,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24853,7 +18121,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 } @@ -24872,7 +18140,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 } @@ -24881,9 +18149,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24898,13 +18163,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 } } @@ -24929,7 +18193,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 } @@ -24957,7 +18221,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 } @@ -24966,9 +18230,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24993,7 +18254,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 } @@ -25002,9 +18263,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25029,7 +18287,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 } @@ -25038,9 +18296,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25063,7 +18318,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 } @@ -25072,9 +18327,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25097,7 +18349,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 } @@ -25106,9 +18358,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25125,13 +18374,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 } } @@ -25156,7 +18404,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 } @@ -25184,7 +18432,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 } @@ -25193,9 +18441,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25220,7 +18465,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 } @@ -25229,9 +18474,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25254,7 +18496,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 } @@ -25263,9 +18505,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25288,7 +18527,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 } @@ -25297,9 +18536,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25314,13 +18550,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 } } @@ -25345,7 +18580,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 } @@ -25373,7 +18608,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 } @@ -25382,9 +18617,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25407,7 +18639,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 } @@ -25416,9 +18648,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25433,13 +18662,12 @@ func (m *KeyRange) 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 } } @@ -25464,7 +18692,7 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25492,7 +18720,7 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25501,9 +18729,6 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25528,7 +18753,7 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25548,7 +18773,7 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25557,9 +18782,6 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25582,7 +18804,7 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= int32(b&0x7F) << shift + m.Limit |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -25601,7 +18823,7 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25613,13 +18835,12 @@ func (m *BatchScanRegionsRequest) 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 } } @@ -25644,7 +18865,7 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -25672,7 +18893,7 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25681,9 +18902,6 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25708,7 +18926,7 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -25717,9 +18935,6 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25734,13 +18949,12 @@ func (m *BatchScanRegionsResponse) 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 } } @@ -25765,7 +18979,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 } @@ -25793,7 +19007,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 } @@ -25802,9 +19016,6 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25821,13 +19032,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 } } @@ -25852,7 +19062,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 } @@ -25880,7 +19090,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 } @@ -25889,9 +19099,6 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25916,7 +19123,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 } @@ -25925,9 +19132,6 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25944,13 +19148,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 } } @@ -25975,7 +19178,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 } @@ -26003,7 +19206,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 } @@ -26012,9 +19215,6 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26039,7 +19239,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 } @@ -26048,9 +19248,6 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26067,13 +19264,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 } } @@ -26098,7 +19294,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 } @@ -26126,7 +19322,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 } @@ -26135,9 +19331,6 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26154,13 +19347,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 } } @@ -26185,7 +19377,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 } @@ -26213,7 +19405,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 } @@ -26223,9 +19415,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26245,7 +19434,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 } @@ -26264,7 +19453,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 } @@ -26274,9 +19463,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26296,7 +19482,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 } @@ -26306,9 +19492,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26328,7 +19511,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 } @@ -26347,7 +19530,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 } @@ -26357,9 +19540,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26379,7 +19559,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 } @@ -26389,9 +19569,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26411,7 +19588,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 } @@ -26421,9 +19598,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26443,7 +19617,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 } @@ -26453,9 +19627,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26467,13 +19638,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 } } @@ -26498,7 +19668,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 } @@ -26526,7 +19696,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 } @@ -26535,9 +19705,6 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26554,13 +19721,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 } } @@ -26585,7 +19751,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 } @@ -26613,7 +19779,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 } @@ -26622,9 +19788,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26649,7 +19812,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 } @@ -26658,9 +19821,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26683,7 +19843,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 } @@ -26692,9 +19852,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26719,7 +19876,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 } @@ -26728,9 +19885,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26755,7 +19909,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 } @@ -26764,9 +19918,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26787,7 +19938,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 } @@ -26804,7 +19955,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 } @@ -26814,9 +19965,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPdpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -26833,7 +19981,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 } @@ -26842,7 +19990,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthPdpb } if postmsgIndex > l { @@ -26859,7 +20007,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 { @@ -26876,13 +20024,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 } } @@ -26907,7 +20054,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 } @@ -26935,7 +20082,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 } @@ -26944,9 +20091,6 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26963,13 +20107,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 } } @@ -26994,7 +20137,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 } @@ -27022,7 +20165,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 } @@ -27031,9 +20174,6 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27056,7 +20196,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 } @@ -27073,7 +20213,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 } @@ -27082,16 +20222,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 { @@ -27103,7 +20236,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 } @@ -27127,7 +20260,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 } @@ -27137,9 +20270,6 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27151,13 +20281,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 } } @@ -27182,7 +20311,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 } @@ -27210,7 +20339,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 } @@ -27219,9 +20348,6 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27246,7 +20372,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 } @@ -27257,13 +20383,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 } } @@ -27288,7 +20413,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 } @@ -27316,7 +20441,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 } @@ -27325,9 +20450,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27352,7 +20474,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 } @@ -27361,9 +20483,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27388,7 +20507,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 } @@ -27397,9 +20516,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27424,7 +20540,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 } @@ -27433,9 +20549,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27458,7 +20571,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 } @@ -27467,9 +20580,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27492,7 +20602,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 } @@ -27511,7 +20621,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 } @@ -27530,7 +20640,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 } @@ -27549,7 +20659,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 } @@ -27568,7 +20678,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 } @@ -27587,7 +20697,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 } @@ -27596,9 +20706,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27623,7 +20730,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 } @@ -27642,7 +20749,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 } @@ -27661,7 +20768,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 } @@ -27670,9 +20777,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27697,7 +20801,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 } @@ -27706,9 +20810,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27733,7 +20834,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 } @@ -27752,7 +20853,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 } @@ -27763,13 +20864,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 } } @@ -27794,7 +20894,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 } @@ -27822,7 +20922,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 } @@ -27831,9 +20931,6 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27858,7 +20955,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 } @@ -27869,13 +20966,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 } } @@ -27900,7 +20996,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 } @@ -27928,7 +21024,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 } @@ -27937,9 +21033,6 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27954,13 +21047,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 } } @@ -27985,7 +21077,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 } @@ -28013,7 +21105,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 } @@ -28022,9 +21114,6 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28049,7 +21138,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 } @@ -28058,9 +21147,6 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28075,13 +21161,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 } } @@ -28106,7 +21191,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 } @@ -28134,7 +21219,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 } @@ -28143,9 +21228,6 @@ func (m *Merge) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28162,13 +21244,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 } } @@ -28193,7 +21274,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 } @@ -28221,7 +21302,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 } @@ -28240,7 +21321,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 } @@ -28249,9 +21330,6 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28264,13 +21342,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 } } @@ -28295,7 +21372,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 } @@ -28323,7 +21400,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 } @@ -28342,7 +21419,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 } @@ -28354,13 +21431,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 } } @@ -28385,7 +21461,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 } @@ -28413,7 +21489,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 } @@ -28422,9 +21498,6 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28439,13 +21512,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 } } @@ -28470,7 +21542,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 } @@ -28498,7 +21570,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 } @@ -28507,9 +21579,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28534,7 +21603,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 } @@ -28543,9 +21612,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28570,7 +21636,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 } @@ -28579,9 +21645,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28606,7 +21669,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 } @@ -28625,7 +21688,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 } @@ -28634,9 +21697,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28661,7 +21721,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 } @@ -28670,9 +21730,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28697,7 +21754,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 } @@ -28706,9 +21763,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28733,7 +21787,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 } @@ -28742,9 +21796,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28769,7 +21820,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 } @@ -28778,9 +21829,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28805,7 +21853,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 } @@ -28814,9 +21862,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28833,13 +21878,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 } } @@ -28864,7 +21908,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 } @@ -28892,7 +21936,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 } @@ -28901,9 +21945,6 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28928,7 +21969,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 } @@ -28937,9 +21978,6 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28956,13 +21994,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 } } @@ -28987,7 +22024,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 } @@ -29015,7 +22052,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 } @@ -29024,9 +22061,6 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29051,7 +22085,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 } @@ -29068,7 +22102,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 } @@ -29085,7 +22119,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 } @@ -29094,23 +22128,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 { @@ -29122,7 +22142,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 } @@ -29138,13 +22158,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 } } @@ -29169,7 +22188,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 } @@ -29197,7 +22216,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 } @@ -29206,9 +22225,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29233,7 +22249,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 } @@ -29242,9 +22258,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29269,7 +22282,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 } @@ -29278,9 +22291,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29297,13 +22307,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 } } @@ -29328,7 +22337,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 } @@ -29356,7 +22365,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 } @@ -29365,9 +22374,6 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29384,13 +22390,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 } } @@ -29415,7 +22420,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 } @@ -29443,7 +22448,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 } @@ -29452,9 +22457,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29479,7 +22481,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 } @@ -29488,9 +22490,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29515,7 +22514,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 } @@ -29526,13 +22525,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 } } @@ -29557,7 +22555,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 } @@ -29585,7 +22583,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 } @@ -29602,7 +22600,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 } @@ -29619,7 +22617,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 } @@ -29628,23 +22626,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 { @@ -29656,7 +22640,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 } @@ -29672,13 +22656,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 } } @@ -29703,7 +22686,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 } @@ -29731,7 +22714,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 } @@ -29740,9 +22723,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29767,7 +22747,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 } @@ -29776,9 +22756,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29793,13 +22770,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 } } @@ -29824,7 +22800,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 } @@ -29852,7 +22828,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 } @@ -29861,9 +22837,6 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29888,7 +22861,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 } @@ -29897,9 +22870,6 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29914,13 +22884,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 } } @@ -29945,7 +22914,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 } @@ -29973,7 +22942,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 } @@ -29982,9 +22951,6 @@ func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30001,13 +22967,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 } } @@ -30032,7 +22997,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 } @@ -30060,7 +23025,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 } @@ -30079,7 +23044,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 } @@ -30090,13 +23055,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 } } @@ -30121,7 +23085,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 } @@ -30149,7 +23113,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 } @@ -30159,9 +23123,6 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30181,7 +23142,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 } @@ -30192,13 +23153,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 } } @@ -30223,7 +23183,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 } @@ -30251,7 +23211,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 } @@ -30270,7 +23230,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 } @@ -30289,7 +23249,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 } @@ -30308,7 +23268,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 } @@ -30317,9 +23277,6 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30344,7 +23301,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 } @@ -30363,7 +23320,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 } @@ -30374,13 +23331,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 } } @@ -30405,7 +23361,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 } @@ -30433,7 +23389,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 } @@ -30452,7 +23408,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 } @@ -30471,7 +23427,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 } @@ -30490,7 +23446,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 } @@ -30509,7 +23465,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 } @@ -30528,7 +23484,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 } @@ -30547,7 +23503,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 } @@ -30566,7 +23522,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 } @@ -30585,7 +23541,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 } @@ -30605,7 +23561,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 } @@ -30624,7 +23580,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 } @@ -30643,7 +23599,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 } @@ -30662,7 +23618,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 } @@ -30681,7 +23637,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 } @@ -30700,7 +23656,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 } @@ -30709,9 +23665,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30736,7 +23689,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 } @@ -30745,9 +23698,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30770,7 +23720,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 } @@ -30779,9 +23729,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30804,7 +23751,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 } @@ -30813,9 +23760,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30838,7 +23782,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 } @@ -30847,9 +23791,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30872,7 +23813,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 } @@ -30881,9 +23822,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30906,7 +23844,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 } @@ -30915,9 +23853,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30942,7 +23877,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 } @@ -30959,7 +23894,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 } @@ -30976,7 +23911,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 } @@ -30985,23 +23920,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 { @@ -31013,7 +23934,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 } @@ -31037,7 +23958,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 } @@ -31057,7 +23978,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 } @@ -31066,9 +23987,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31091,7 +24009,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 } @@ -31100,9 +24018,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31127,7 +24042,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 } @@ -31147,7 +24062,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalMemory |= uint64(b&0x7F) << shift + m.TotalMemory |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31166,7 +24081,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UsedMemory |= uint64(b&0x7F) << shift + m.UsedMemory |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31177,13 +24092,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 } } @@ -31208,7 +24122,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 } @@ -31272,13 +24186,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 } } @@ -31303,7 +24216,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 } @@ -31331,7 +24244,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 } @@ -31350,7 +24263,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 } @@ -31369,7 +24282,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 } @@ -31388,7 +24301,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 } @@ -31407,7 +24320,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 } @@ -31418,13 +24331,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 } } @@ -31449,7 +24361,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 } @@ -31477,7 +24389,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 } @@ -31486,9 +24398,6 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31513,7 +24422,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 } @@ -31522,9 +24431,6 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31549,7 +24455,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 } @@ -31569,7 +24475,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 } @@ -31589,7 +24495,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.AppliedIndex |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -31600,13 +24506,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 } } @@ -31631,7 +24536,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 } @@ -31659,7 +24564,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 } @@ -31668,9 +24573,6 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31693,7 +24595,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 } @@ -31704,13 +24606,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 } } @@ -31735,7 +24636,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 } @@ -31763,7 +24664,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 } @@ -31772,9 +24673,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31799,7 +24697,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 } @@ -31808,9 +24706,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31835,7 +24730,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 } @@ -31844,9 +24739,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31871,7 +24763,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 } @@ -31880,9 +24772,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31899,13 +24788,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 } } @@ -31930,7 +24818,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 } @@ -31958,7 +24846,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 } @@ -31977,7 +24865,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 } @@ -31986,9 +24874,6 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32003,13 +24888,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 } } @@ -32034,7 +24918,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 } @@ -32060,7 +24944,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 } @@ -32077,7 +24961,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 } @@ -32086,23 +24970,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 { @@ -32114,7 +24984,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 } @@ -32136,7 +25006,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 } @@ -32153,7 +25023,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 } @@ -32162,23 +25032,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 { @@ -32190,7 +25046,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 } @@ -32206,13 +25062,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 } } @@ -32237,7 +25092,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 } @@ -32265,7 +25120,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 } @@ -32274,9 +25129,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32299,7 +25151,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 } @@ -32308,9 +25160,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32331,7 +25180,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 } @@ -32348,7 +25197,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 } @@ -32357,23 +25206,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 { @@ -32385,7 +25220,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 } @@ -32409,7 +25244,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 } @@ -32418,9 +25253,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32443,7 +25275,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 } @@ -32452,9 +25284,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32479,7 +25308,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 } @@ -32490,13 +25319,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 } } @@ -32521,7 +25349,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 } @@ -32547,7 +25375,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 } @@ -32564,7 +25392,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 } @@ -32573,23 +25401,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 { @@ -32601,7 +25415,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 } @@ -32617,13 +25431,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 } } @@ -32648,7 +25461,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 } @@ -32676,7 +25489,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 } @@ -32687,13 +25500,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 } } @@ -32718,7 +25530,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 } @@ -32746,7 +25558,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 } @@ -32755,9 +25567,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32782,7 +25591,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 } @@ -32791,9 +25600,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32818,7 +25624,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 } @@ -32828,9 +25634,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32850,7 +25653,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 } @@ -32870,7 +25673,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 } @@ -32879,9 +25682,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32906,7 +25706,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 } @@ -32915,9 +25715,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32942,7 +25739,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 } @@ -32951,9 +25748,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32970,13 +25764,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 } } @@ -33001,7 +25794,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 } @@ -33029,7 +25822,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 } @@ -33038,9 +25831,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33065,7 +25855,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 } @@ -33084,7 +25874,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 } @@ -33093,9 +25883,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33120,7 +25907,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 } @@ -33129,9 +25916,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33156,7 +25940,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 } @@ -33166,9 +25950,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33186,7 +25967,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 } @@ -33203,7 +25984,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 } @@ -33212,23 +25993,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 { @@ -33240,7 +26007,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 } @@ -33264,7 +26031,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 } @@ -33283,7 +26050,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 } @@ -33295,13 +26062,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 } } @@ -33326,7 +26092,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 } @@ -33354,7 +26120,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 } @@ -33363,9 +26129,6 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33390,7 +26153,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 } @@ -33401,13 +26164,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 } } @@ -33432,7 +26194,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 } @@ -33460,7 +26222,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 } @@ -33469,9 +26231,6 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33488,13 +26247,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 } } @@ -33519,7 +26277,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 } @@ -33547,7 +26305,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 } @@ -33556,9 +26314,6 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33583,7 +26338,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 } @@ -33594,13 +26349,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 } } @@ -33625,7 +26379,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 } @@ -33653,7 +26407,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 } @@ -33662,9 +26416,6 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33689,7 +26440,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 } @@ -33700,13 +26451,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 } } @@ -33731,7 +26481,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 } @@ -33759,7 +26509,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 } @@ -33768,9 +26518,6 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33795,7 +26542,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 } @@ -33806,13 +26553,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 } } @@ -33837,7 +26583,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 } @@ -33865,7 +26611,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 } @@ -33874,9 +26620,6 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33901,7 +26644,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 } @@ -33910,9 +26653,6 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33935,7 +26675,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 } @@ -33954,7 +26694,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 } @@ -33965,13 +26705,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 } } @@ -33996,7 +26735,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 } @@ -34024,7 +26763,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 } @@ -34033,9 +26772,6 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34060,7 +26796,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 } @@ -34069,9 +26805,6 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34094,7 +26827,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 } @@ -34113,7 +26846,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 } @@ -34124,13 +26857,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 } } @@ -34155,7 +26887,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 } @@ -34183,7 +26915,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 } @@ -34192,9 +26924,6 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34219,7 +26948,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 } @@ -34230,13 +26959,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 } } @@ -34261,7 +26989,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 } @@ -34289,7 +27017,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 } @@ -34298,9 +27026,6 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34325,7 +27050,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 } @@ -34336,13 +27061,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 } } @@ -34367,7 +27091,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 } @@ -34395,7 +27119,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 } @@ -34404,9 +27128,6 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34431,7 +27152,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 } @@ -34442,13 +27163,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 } } @@ -34473,7 +27193,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 } @@ -34501,7 +27221,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 } @@ -34520,7 +27240,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 } @@ -34539,7 +27259,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 } @@ -34550,13 +27270,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 } } @@ -34581,7 +27300,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 } @@ -34609,7 +27328,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 } @@ -34618,9 +27337,6 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34645,7 +27361,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 } @@ -34654,9 +27370,6 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34679,7 +27392,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 } @@ -34690,13 +27403,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 } } @@ -34721,7 +27433,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 } @@ -34749,7 +27461,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 } @@ -34758,9 +27470,6 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34785,7 +27494,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 } @@ -34804,7 +27513,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 } @@ -34815,13 +27524,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 } } @@ -34846,7 +27554,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 } @@ -34874,7 +27582,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 } @@ -34883,9 +27591,6 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34910,7 +27615,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 } @@ -34921,13 +27626,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 } } @@ -34952,7 +27656,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 } @@ -34980,7 +27684,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 } @@ -34989,9 +27693,6 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35016,7 +27717,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 } @@ -35035,7 +27736,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 } @@ -35044,9 +27745,6 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35069,7 +27767,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 } @@ -35088,7 +27786,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 } @@ -35099,13 +27797,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 } } @@ -35130,7 +27827,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 } @@ -35158,7 +27855,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 } @@ -35167,9 +27864,6 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35194,7 +27888,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 } @@ -35203,9 +27897,6 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35228,7 +27919,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 } @@ -35247,7 +27938,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 } @@ -35258,13 +27949,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 } } @@ -35289,7 +27979,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 } @@ -35317,7 +28007,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 } @@ -35326,9 +28016,6 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35345,13 +28032,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 } } @@ -35376,7 +28062,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 } @@ -35404,7 +28090,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 } @@ -35423,7 +28109,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 } @@ -35434,13 +28120,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 } } @@ -35465,7 +28150,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 } @@ -35493,7 +28178,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 } @@ -35502,9 +28187,6 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35529,7 +28211,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 } @@ -35538,9 +28220,6 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35563,7 +28242,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 } @@ -35574,13 +28253,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 } } @@ -35605,7 +28283,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 } @@ -35633,7 +28311,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 } @@ -35652,7 +28330,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 } @@ -35671,7 +28349,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 } @@ -35690,7 +28368,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 } @@ -35701,13 +28379,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 } } @@ -35732,7 +28409,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 } @@ -35760,7 +28437,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 } @@ -35769,9 +28446,6 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35796,7 +28470,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 } @@ -35805,9 +28479,6 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35832,7 +28503,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 } @@ -35843,13 +28514,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 } } @@ -35874,7 +28544,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 } @@ -35902,7 +28572,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 } @@ -35911,9 +28581,6 @@ func (m *PeersStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35928,13 +28595,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 } } @@ -35959,7 +28625,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 } @@ -35987,7 +28653,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 } @@ -35996,9 +28662,6 @@ func (m *Peers) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36013,13 +28676,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 } } @@ -36044,7 +28706,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 } @@ -36072,7 +28734,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 } @@ -36081,9 +28743,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36108,7 +28767,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 } @@ -36117,9 +28776,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36142,7 +28798,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 } @@ -36161,7 +28817,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 } @@ -36170,9 +28826,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36195,7 +28848,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 } @@ -36204,9 +28857,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36229,7 +28879,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 } @@ -36238,9 +28888,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36263,7 +28910,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 } @@ -36272,9 +28919,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36297,7 +28941,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 } @@ -36306,9 +28950,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36323,13 +28964,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 } } @@ -36354,7 +28994,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 } @@ -36382,7 +29022,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 } @@ -36391,9 +29031,6 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36418,7 +29055,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 } @@ -36429,13 +29066,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 } } @@ -36460,7 +29096,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 } @@ -36488,7 +29124,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 } @@ -36497,9 +29133,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36524,7 +29157,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 } @@ -36543,7 +29176,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 } @@ -36552,9 +29185,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36577,7 +29207,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 } @@ -36596,7 +29226,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 } @@ -36605,9 +29235,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36622,13 +29249,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 } } @@ -36653,7 +29279,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 } @@ -36681,7 +29307,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 } @@ -36690,9 +29316,6 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36717,7 +29340,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 } @@ -36726,9 +29349,6 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36753,7 +29373,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 } @@ -36765,13 +29385,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 } } @@ -36796,7 +29415,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 } @@ -36824,7 +29443,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 } @@ -36833,9 +29452,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36860,7 +29476,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 } @@ -36869,9 +29485,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36896,7 +29509,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 } @@ -36906,9 +29519,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36920,13 +29530,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 } } @@ -36951,7 +29560,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 } @@ -36979,7 +29588,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 } @@ -36988,9 +29597,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37015,7 +29621,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 } @@ -37024,9 +29630,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37047,7 +29650,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 } @@ -37058,13 +29661,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 } } @@ -37089,7 +29691,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 } @@ -37117,7 +29719,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 } @@ -37126,9 +29728,6 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37153,7 +29752,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 } @@ -37170,7 +29769,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 } @@ -37187,7 +29786,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 } @@ -37196,23 +29795,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 { @@ -37224,7 +29809,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 } @@ -37240,13 +29825,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 } } @@ -37271,7 +29855,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 } @@ -37299,7 +29883,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 } @@ -37308,9 +29892,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37335,7 +29916,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 } @@ -37344,9 +29925,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37367,7 +29945,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 } @@ -37377,9 +29955,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37399,7 +29974,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 } @@ -37410,13 +29985,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 } } @@ -37441,7 +30015,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 } @@ -37469,7 +30043,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 } @@ -37478,9 +30052,6 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37505,7 +30076,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 } @@ -37524,7 +30095,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 } @@ -37541,7 +30112,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 } @@ -37558,7 +30129,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 } @@ -37567,23 +30138,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 { @@ -37595,7 +30152,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 } @@ -37611,13 +30168,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 } } @@ -37642,7 +30198,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 } @@ -37670,7 +30226,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 } @@ -37679,9 +30235,6 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37706,7 +30259,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 } @@ -37716,9 +30269,6 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37730,13 +30280,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 } } @@ -37761,7 +30310,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 } @@ -37789,7 +30338,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 } @@ -37798,9 +30347,6 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37825,7 +30371,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 } @@ -37844,7 +30390,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 } @@ -37853,9 +30399,6 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37872,13 +30415,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 } } @@ -37903,7 +30445,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 } @@ -37931,7 +30473,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 } @@ -37950,7 +30492,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 } @@ -37969,7 +30511,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 } @@ -37988,7 +30530,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 } @@ -38007,7 +30549,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 } @@ -38026,7 +30568,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 } @@ -38045,7 +30587,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 } @@ -38064,7 +30606,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 } @@ -38083,7 +30625,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 } @@ -38102,7 +30644,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 } @@ -38121,7 +30663,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 } @@ -38132,13 +30674,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 } } @@ -38163,7 +30704,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 } @@ -38191,7 +30732,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 } @@ -38200,9 +30741,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38227,7 +30765,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 } @@ -38236,9 +30774,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38263,7 +30798,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 } @@ -38272,9 +30807,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38291,13 +30823,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 } } @@ -38322,7 +30853,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 } @@ -38350,7 +30881,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 } @@ -38359,9 +30890,6 @@ func (m *ReportBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38378,13 +30906,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 } } @@ -38409,7 +30936,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 } @@ -38437,7 +30964,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 } @@ -38446,9 +30973,6 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38473,7 +30997,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 } @@ -38492,7 +31016,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 } @@ -38503,13 +31027,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 } } @@ -38534,7 +31057,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 } @@ -38562,7 +31085,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 } @@ -38571,9 +31094,6 @@ func (m *ReportMinResolvedTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38590,13 +31110,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 } } @@ -38621,7 +31140,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 } @@ -38649,7 +31168,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 } @@ -38658,9 +31177,6 @@ func (m *SetExternalTimestampRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38685,7 +31201,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 } @@ -38696,13 +31212,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 } } @@ -38727,7 +31242,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 } @@ -38755,7 +31270,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 } @@ -38764,9 +31279,6 @@ func (m *SetExternalTimestampResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38783,13 +31295,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 } } @@ -38814,7 +31325,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 } @@ -38842,7 +31353,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 } @@ -38851,9 +31362,6 @@ func (m *GetExternalTimestampRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38870,13 +31378,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 } } @@ -38901,7 +31408,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 } @@ -38929,7 +31436,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 } @@ -38938,9 +31445,6 @@ func (m *GetExternalTimestampResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38965,7 +31469,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 } @@ -38976,13 +31480,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 } } @@ -39007,7 +31510,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 } @@ -39035,7 +31538,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 } @@ -39044,9 +31547,6 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39063,13 +31563,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 } } @@ -39094,7 +31593,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 } @@ -39122,7 +31621,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 } @@ -39131,9 +31630,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39158,7 +31654,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 } @@ -39167,9 +31663,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39186,13 +31679,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 } } @@ -39205,7 +31697,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 { @@ -39237,8 +31728,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 { @@ -39255,34 +31748,455 @@ 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{ + // 6330 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x7c, 0x4b, 0x93, 0x23, 0xc7, + 0x71, 0xf0, 0x34, 0x1e, 0x33, 0x40, 0xe2, 0x31, 0x98, 0xda, 0xd9, 0x1d, 0x2c, 0xf6, 0xc9, 0x5e, + 0x92, 0xdf, 0x72, 0x45, 0x2e, 0xc9, 0x25, 0xa5, 0x8f, 0xa2, 0x2d, 0x86, 0x30, 0x33, 0xd8, 0x21, + 0xb8, 0xf3, 0x80, 0x1b, 0x98, 0xa5, 0x68, 0x2b, 0xdc, 0xd1, 0xd3, 0x5d, 0x33, 0xd3, 0x1a, 0xa0, + 0x1b, 0xec, 0x6e, 0xcc, 0x2e, 0x14, 0x3e, 0xf8, 0x25, 0xdb, 0x0a, 0x4b, 0x61, 0x47, 0xf8, 0x25, + 0x5f, 0x74, 0xb0, 0x1d, 0xb6, 0x23, 0x6c, 0x5f, 0x7c, 0x70, 0xf8, 0xe6, 0x9b, 0xc3, 0x47, 0x1f, + 0x15, 0x3e, 0x38, 0x14, 0xb2, 0x2f, 0xfe, 0x03, 0xbe, 0xd8, 0x07, 0x47, 0x65, 0x55, 0x35, 0xba, + 0x1b, 0x0d, 0xcc, 0x2e, 0x96, 0xab, 0xd0, 0x09, 0xe8, 0xac, 0xec, 0xac, 0xac, 0xac, 0xac, 0xac, + 0xcc, 0xac, 0xac, 0x06, 0x18, 0x5a, 0xc3, 0xa3, 0xfb, 0x43, 0xcf, 0x0d, 0x5c, 0x92, 0x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0x87, 0xa3, 0x4d, 0x30, 0xd4, 0xef, 0x29, 0x50, 0xdb, 0x74, 0xdd, 0xc0, 0x0f, 0x3c, 0x63, 0xb8, + 0x90, 0x7c, 0xef, 0x40, 0xde, 0x67, 0xc6, 0x41, 0x68, 0x41, 0xe5, 0xbe, 0xd8, 0x01, 0xd0, 0x62, + 0x68, 0xbc, 0x8d, 0xbc, 0x0e, 0xcb, 0x1e, 0x3d, 0x91, 0x92, 0x2e, 0x3d, 0xa8, 0x4a, 0x2c, 0x0d, + 0xa1, 0x9a, 0x68, 0x65, 0x26, 0x77, 0x2d, 0xc2, 0xce, 0x42, 0x72, 0xe9, 0x01, 0x89, 0x6e, 0x29, + 0x7e, 0x60, 0x04, 0x23, 0x5f, 0x70, 0xf7, 0xda, 0xfd, 0x94, 0xdd, 0x46, 0x9b, 0x80, 0xba, 0x88, + 0xac, 0xad, 0x79, 0x49, 0x90, 0xba, 0x0d, 0x97, 0xdb, 0x7e, 0xc8, 0xda, 0x90, 0x5a, 0x8b, 0x08, + 0x4b, 0xfd, 0x16, 0x5c, 0x49, 0x52, 0x59, 0x68, 0x8c, 0x2a, 0x94, 0x8f, 0x22, 0x54, 0x70, 0x74, + 0x05, 0x2d, 0x06, 0x53, 0xbf, 0x06, 0xd5, 0x66, 0xbf, 0xef, 0x9a, 0xed, 0xed, 0x85, 0x58, 0x3d, + 0x80, 0xd5, 0xf0, 0xf5, 0x85, 0x78, 0xac, 0x42, 0x26, 0xb4, 0x32, 0x19, 0xdb, 0x52, 0x3f, 0x81, + 0x6b, 0x6d, 0xbf, 0xeb, 0x18, 0x43, 0xff, 0xd4, 0x0d, 0x34, 0x6a, 0xba, 0xe7, 0xd4, 0xb3, 0x9d, + 0x93, 0x85, 0x98, 0xb3, 0xe0, 0x7a, 0x3a, 0xad, 0x85, 0x38, 0xbd, 0x02, 0xcb, 0x03, 0xc3, 0x3b, + 0x0b, 0xe5, 0x28, 0x9e, 0xd4, 0xcf, 0x60, 0x75, 0x87, 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20, 0xf8, 0x05, 0xd6, 0xc0, + 0xa7, 0x17, 0x3e, 0x0f, 0xff, 0x33, 0x29, 0x9a, 0xc3, 0x91, 0x3e, 0xc2, 0x14, 0xed, 0x1a, 0x97, + 0xa2, 0x39, 0x1c, 0x1d, 0xb2, 0x67, 0x72, 0x1f, 0x2e, 0xc5, 0x86, 0x7a, 0xce, 0x05, 0x49, 0x10, + 0x6d, 0x2d, 0x3a, 0xda, 0x73, 0x26, 0xca, 0x4f, 0x72, 0x85, 0x52, 0xad, 0xac, 0x9e, 0x02, 0x6c, + 0xe1, 0x39, 0x04, 0x53, 0x87, 0x67, 0x58, 0x4b, 0x1f, 0x40, 0x89, 0x9f, 0x5b, 0xe8, 0x98, 0x4f, + 0xce, 0x60, 0x3e, 0x79, 0xe3, 0xbe, 0x3c, 0x68, 0x62, 0x1b, 0x34, 0xa7, 0x87, 0x79, 0x65, 0x30, + 0xc3, 0xff, 0xea, 0x87, 0x50, 0x9e, 0xf4, 0xf4, 0xf8, 0x01, 0xb9, 0x97, 0x3c, 0x28, 0x11, 0x63, + 0x9f, 0x20, 0x85, 0x47, 0x24, 0xea, 0x63, 0xa8, 0xf6, 0x3c, 0xc3, 0xf1, 0x8f, 0xa9, 0x30, 0x92, + 0xcf, 0xc0, 0xa9, 0x0a, 0x79, 0xbe, 0x08, 0x32, 0x29, 0x8b, 0x80, 0x37, 0xa9, 0x6f, 0x43, 0x7e, + 0x8f, 0x7a, 0x27, 0x98, 0x20, 0x0d, 0x0c, 0xef, 0x84, 0x06, 0xb3, 0x62, 0x19, 0xde, 0xaa, 0xee, + 0x42, 0xa9, 0x3b, 0xec, 0xdb, 0x22, 0x2a, 0x24, 0x6f, 0xc0, 0xf2, 0xd0, 0xed, 0xdb, 0xe6, 0x58, + 0x24, 0xd6, 0xd7, 0xe4, 0x10, 0xa8, 0x79, 0xd6, 0xc1, 0x06, 0x4d, 0x20, 0x30, 0xf5, 0x42, 0xed, + 0x63, 0xdc, 0x94, 0x35, 0x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0xfd, 0x4e, 0x06, 0x00, + 0x43, 0x07, 0xdc, 0xd4, 0xc9, 0xcf, 0x03, 0xf0, 0x32, 0xcd, 0x80, 0x49, 0x84, 0x6f, 0xe3, 0x37, + 0xee, 0xc7, 0x2b, 0x37, 0x35, 0xe3, 0x38, 0xd8, 0x75, 0x4d, 0xa3, 0xcf, 0x44, 0x42, 0xb5, 0x22, + 0x6b, 0xc5, 0xbf, 0x64, 0x33, 0xb4, 0xfc, 0xfc, 0x7d, 0xee, 0x96, 0xdd, 0x4a, 0xbe, 0x8f, 0x28, + 0x11, 0x0a, 0x62, 0x6b, 0xe0, 0x34, 0x5e, 0x87, 0x55, 0xdb, 0xd7, 0x8f, 0x5d, 0xcf, 0xa4, 0xd1, + 0xc8, 0xab, 0xa0, 0x55, 0x6c, 0xff, 0x21, 0x83, 0xee, 0x4a, 0x97, 0xa5, 0x76, 0x6a, 0xf8, 0xba, + 0xe9, 0x0e, 0x06, 0x76, 0xa0, 0xf3, 0x48, 0x27, 0x87, 0x88, 0xd5, 0x53, 0xc3, 0xdf, 0x42, 0x30, + 0x8f, 0xae, 0xef, 0x40, 0x85, 0xad, 0x26, 0x9b, 0x5a, 0xba, 0xed, 0x58, 0xf4, 0xa9, 0x10, 0x44, + 0x59, 0x00, 0xdb, 0x0c, 0xa6, 0x3e, 0x86, 0x92, 0xa8, 0x4c, 0x40, 0x39, 0xbc, 0x07, 0x65, 0xb4, + 0x19, 0x1e, 0x3e, 0x26, 0x72, 0x04, 0x13, 0x79, 0x69, 0xa5, 0x61, 0xf8, 0x1f, 0x73, 0x38, 0x7e, + 0x40, 0xa5, 0x3f, 0x82, 0xff, 0xd5, 0xff, 0x51, 0xe0, 0x32, 0x12, 0x7e, 0xd1, 0xcc, 0x9e, 0xa8, + 0xe4, 0xc8, 0xcc, 0xad, 0xe4, 0xc0, 0x88, 0x0e, 0x37, 0x74, 0xce, 0xb8, 0x70, 0xe5, 0xd7, 0x22, + 0xe8, 0x92, 0x71, 0x3f,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x2c, 0x34, 0xa2, 0x57, 0xa1, 0xea, 0xd0, 0x27, 0xfa, 0x54, + 0x6f, 0x65, 0x87, 0x3e, 0x09, 0x69, 0xab, 0x3f, 0x54, 0xe0, 0x16, 0xef, 0x51, 0x1c, 0x4e, 0x7e, + 0x11, 0x03, 0xe4, 0x94, 0xe4, 0xf2, 0x29, 0x6b, 0x45, 0x01, 0x69, 0x5b, 0xa4, 0x06, 0xd9, 0x5e, + 0x6f, 0x17, 0x17, 0x4e, 0x56, 0x63, 0x7f, 0x13, 0x12, 0xc9, 0x25, 0x25, 0xf2, 0x57, 0x0a, 0xdc, + 0x9e, 0xcd, 0xe0, 0xc2, 0x73, 0xfd, 0x5c, 0x2c, 0xbe, 0x0a, 0xd5, 0x81, 0xed, 0xe8, 0x53, 0x6c, + 0x96, 0x07, 0xb6, 0x33, 0x11, 0xe5, 0x09, 0x16, 0xbb, 0x44, 0xd8, 0x7b, 0xfc, 0x60, 0x41, 0xfb, + 0x83, 0xf1, 0xf8, 0xd0, 0x98, 0xf0, 0x57, 0xd1, 0x40, 0x82, 0xda, 0x96, 0x7a, 0x82, 0xd5, 0x30, + 0x89, 0x8e, 0x5e, 0x86, 0xd6, 0x5b, 0xf2, 0x4e, 0xd2, 0x0b, 0x8f, 0x69, 0xde, 0xcd, 0x97, 0x11, + 0x54, 0x43, 0xf2, 0xb8, 0xed, 0x26, 0x25, 0xa0, 0x24, 0x25, 0x70, 0x01, 0xdf, 0xe1, 0x05, 0x90, + 0xec, 0x8c, 0x9b, 0x2e, 0xac, 0x51, 0xfd, 0x43, 0x05, 0x1a, 0x69, 0xa3, 0x5b, 0x48, 0x90, 0x6f, + 0xc2, 0x32, 0xba, 0x16, 0xd2, 0xe7, 0x12, 0xd8, 0xf1, 0x71, 0x69, 0x02, 0x27, 0x26, 0x8d, 0x6c, + 0x42, 0x1a, 0xdf, 0x55, 0xa0, 0x31, 0x65, 0x02, 0x5e, 0x92, 0x26, 0x25, 0xe4, 0x98, 0x4d, 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, 0x83, 0x59, 0x22, 0x86, 0x3e, 0xf3, 0x40, 0xba, + 0x71, 0x7b, 0x36, 0x82, 0x24, 0xfd, 0x8e, 0x42, 0xbe, 0x09, 0x97, 0x52, 0xce, 0x34, 0xc9, 0xed, + 0x19, 0x82, 0x9d, 0x90, 0x7f, 0x65, 0x0e, 0xc6, 0x4c, 0xe1, 0x47, 0xbb, 0x48, 0x13, 0x7e, 0x4a, + 0x3f, 0xaf, 0x5f, 0x84, 0x16, 0x76, 0xf6, 0x4d, 0xf9, 0x25, 0xa9, 0xd4, 0xa1, 0xcc, 0x3e, 0xda, + 0x93, 0x43, 0x99, 0x73, 0xb4, 0x86, 0x16, 0xbf, 0x34, 0x39, 0x57, 0x09, 0xbd, 0xaf, 0xa9, 0x63, + 0x25, 0xe9, 0x7d, 0x4d, 0x9f, 0xc1, 0x88, 0xdd, 0x6b, 0x1b, 0x4a, 0x91, 0xbc, 0x3d, 0x99, 0x38, + 0x6b, 0x89, 0xb3, 0x82, 0xc6, 0xd5, 0x94, 0x96, 0x88, 0x71, 0x2e, 0x86, 0xb9, 0x6b, 0xb9, 0x7f, + 0x25, 0xb3, 0xea, 0x8d, 0x8d, 0x29, 0x78, 0xd4, 0x63, 0x88, 0x26, 0x78, 0xa5, 0xc7, 0x90, 0x92, + 0x79, 0x96, 0x1e, 0x43, 0x5a, 0x3e, 0x58, 0x5d, 0x22, 0x14, 0xae, 0xa4, 0x67, 0x3b, 0xc9, 0x9d, + 0xc8, 0x7b, 0xb3, 0x12, 0xb6, 0x8d, 0x57, 0xe7, 0x23, 0x45, 0xad, 0xc3, 0x54, 0xfa, 0x8f, 0x4c, + 0x96, 0x4e, 0x6a, 0x0a, 0x52, 0x5a, 0x87, 0x99, 0x79, 0x43, 0x4e, 0x77, 0xea, 0xf3, 0xaa, 0x92, + 0xee, 0xac, 0xcf, 0xbc, 0x4a, 0xba, 0x33, 0xbf, 0xcb, 0xca, 0x0d, 0x41, 0xf2, 0x23, 0xa9, 0xd2, + 0x10, 0xcc, 0xf8, 0x1c, 0xab, 0x34, 0x04, 0xb3, 0xbe, 0xad, 0xaa, 0x2e, 0x91, 0x6f, 0xc0, 0xda, + 0xd4, 0x37, 0x71, 0x25, 0xb3, 0xb3, 0x3e, 0xc3, 0xdb, 0xb8, 0x35, 0xb3, 0x3d, 0x62, 0x05, 0x76, + 0xa1, 0x12, 0x4b, 0x77, 0xc9, 0x7d, 0x21, 0x2d, 0x57, 0x27, 0xf7, 0x85, 0xd4, 0xfc, 0x18, 0x53, + 0x72, 0xb6, 0x10, 0xa7, 0xd3, 0x4c, 0x5d, 0xb9, 0x10, 0x67, 0xe7, 0xc3, 0xe4, 0x42, 0x9c, 0x93, + 0xa3, 0xe2, 0x7e, 0x7c, 0x5a, 0x36, 0x48, 0xfa, 0xf1, 0x73, 0x72, 0x52, 0xd2, 0x8f, 0x9f, 0x97, + 0x4c, 0xe2, 0x1d, 0xec, 0xcc, 0xe9, 0x60, 0xe7, 0xe2, 0x0e, 0x76, 0xe6, 0x77, 0xc0, 0x03, 0x05, + 0xcc, 0xc4, 0x44, 0x02, 0x85, 0x68, 0x66, 0x27, 0x12, 0x28, 0xc4, 0x12, 0x36, 0xea, 0xd2, 0xe6, + 0xeb, 0x3f, 0xfa, 0xeb, 0x82, 0xf2, 0x2f, 0x3f, 0xb9, 0xa9, 0xfc, 0xeb, 0x4f, 0x6e, 0x2a, 0x3f, + 0xfe, 0xc9, 0x4d, 0xe5, 0x07, 0xff, 0x71, 0x73, 0x09, 0x6a, 0xae, 0x77, 0x72, 0x3f, 0xb0, 0xcf, + 0xce, 0xef, 0x9f, 0x9d, 0xe3, 0xa7, 0x99, 0x8f, 0x96, 0xf1, 0xe7, 0xbd, 0xff, 0x0b, 0x00, 0x00, + 0xff, 0xff, 0xcf, 0x00, 0xfe, 0x30, 0x28, 0x5a, 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, 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, 0xb2, 0x12, 0xe9, 0x0a, - 0x74, 0xa2, 0xd8, 0xa6, 0xb1, 0x95, 0xe2, 0xb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 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, 0x0c, 0x13, 0x67, 0xb5, 0x94, 0xa1, 0x43, 0x58, 0x57, 0x29, 0x99, 0x28, 0xa6, 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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, -} - -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, 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, 0x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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, 0xe8, 0x97, 0xd0, 0x0b, 0xee, + 0x2f, 0x34, 0x61, 0x64, 0xfe, 0xd8, 0x82, 0xbe, 0x24, 0x15, 0x59, 0x81, 0xfd, 0x2c, 0x56, 0xf9, + 0xb0,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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 086c6d576..cb5ab0b97 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 @@ -119,7 +157,6 @@ var ExtraMessageType_name = map[int32]string{ 17: "MsgPreLoadRegionRequest", 18: "MsgPreLoadRegionResponse", } - var ExtraMessageType_value = map[string]int32{ "MsgRegionWakeUp": 0, "MsgWantRollbackMerge": 1, @@ -145,64 +182,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 { @@ -289,45 +292,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 { @@ -344,46 +316,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 { @@ -407,7 +348,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 @@ -422,44 +363,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 { @@ -511,45 +421,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 { @@ -566,43 +445,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"` @@ -610,45 +458,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 @@ -682,47 +501,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 { @@ -744,46 +534,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 @@ -820,45 +581,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 { @@ -877,44 +607,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 { @@ -929,44 +628,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() @@ -975,16 +645,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() {} @@ -1027,9 +697,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), @@ -1037,46 +707,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 @@ -1085,44 +828,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 { @@ -1132,45 +846,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 { @@ -1187,50 +870,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 { @@ -1282,46 +934,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 { @@ -1350,44 +971,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 { @@ -1397,45 +987,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 { @@ -1452,48 +1011,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 { @@ -1531,46 +1059,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 { @@ -1595,55 +1092,24 @@ 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"` + SourceEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=source_epoch,json=sourceEpoch" json:"source_epoch,omitempty"` // Peers of source region when merge is committed. - SourcePeers []*metapb.Peer `protobuf:"bytes,3,rep,name=source_peers,json=sourcePeers,proto3" json:"source_peers,omitempty"` + SourcePeers []*metapb.Peer `protobuf:"bytes,3,rep,name=source_peers,json=sourcePeers" 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,proto3" json:"source_removed_records,omitempty"` + SourceRemovedRecords []*metapb.Peer `protobuf:"bytes,9,rep,name=source_removed_records,json=sourceRemovedRecords" 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,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 { @@ -1710,55 +1176,24 @@ 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. // 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,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 { @@ -1803,48 +1238,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 @@ -1874,47 +1280,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 { @@ -1945,44 +1322,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 { @@ -1992,46 +1338,15 @@ 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"` - 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) + 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"` } -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 { @@ -2061,46 +1376,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 { @@ -2137,56 +1421,25 @@ 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"` + RefreshBuckets *RefreshBuckets `protobuf:"bytes,9,opt,name=refresh_buckets,json=refreshBuckets" json:"refresh_buckets,omitempty"` // snap_gen_precheck_passed is used to indicate the precheck result when // a follower responds to a leader's snapshot gen precheck request. - SnapGenPrecheckPassed bool `protobuf:"varint,10,opt,name=snap_gen_precheck_passed,json=snapGenPrecheckPassed,proto3" json:"snap_gen_precheck_passed,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) + SnapGenPrecheckPassed bool `protobuf:"varint,10,opt,name=snap_gen_precheck_passed,json=snapGenPrecheckPassed,proto3" json:"snap_gen_precheck_passed,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 { @@ -2259,8 +1512,6 @@ func (m *ExtraMessage) GetSnapGenPrecheckPassed() bool { } 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") @@ -2290,168 +1541,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{ - // 2386 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x1b, 0xc7, - 0x11, 0x26, 0x1e, 0xc4, 0x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1, 0xde, 0x4f, 0xa2, 0xc0, 0x8e, - 0x11, 0x93, 0x6e, 0x71, 0xb7, 0xb0, 0xd7, 0x38, 0x68, 0xee, 0x1b, 0xa3, 0x4e, 0x11, 0x13, 0x5a, - 0x93, 0x6c, 0x39, 0x22, 0x77, 0xa0, 0x2a, 0x22, 0x2d, 0x58, 0x5a, 0x22, 0x58, 0x11, 0x91, 0x12, - 0xbb, 0x07, 0xd5, 0x40, 0xef, 0xdc, 0x2d, 0x2b, 0xb1, 0xce, 0x7e, 0xea, 0xb3, 0xb1, 0x88, 0xa6, - 0x02, 0xe4, 0x13, 0x68, 0x1a, 0xd3, 0x30, 0x8e, 0x9c, 0x61, 0x77, 0x55, 0x29, 0x6c, 0xa4, 0xeb, - 0x52, 0xc5, 0x7b, 0x24, 0x59, 0xb4, 0x91, 0xcc, 0x27, 0xe4, 0x36, 0x34, 0x3d, 0x6e, 0x8b, 0x28, - 0xb8, 0xe0, 0x22, 0x0a, 0xb1, 0x5b, 0xd9, 0x2d, 0xec, 0xd5, 0x68, 0xc3, 0xe3, 0xe7, 0x29, 0x49, - 0x7a, 0xcd, 0x05, 0x4b, 0x84, 0x3d, 0xc2, 0x69, 0xb7, 0xba, 0x5b, 0xd8, 0x6b, 0xd2, 0x9a, 0x22, - 0x7c, 0x89, 0x53, 0x72, 0x03, 0xaa, 0x18, 0xba, 0x8a, 0x55, 0x53, 0xac, 0x0a, 0x86, 0xae, 0x64, - 0x7c, 0x04, 0xcd, 0x00, 0x93, 0x01, 0xda, 0x82, 0x25, 0x03, 0x14, 0xdd, 0xba, 0x32, 0xa8, 0x9d, - 0x37, 0x88, 0x36, 0x94, 0xcc, 0xb9, 0x12, 0x21, 0x9f, 0x41, 0x1d, 0x5f, 0x88, 0x84, 0xd9, 0x01, - 0x1f, 0x74, 0x41, 0xc9, 0x6f, 0xef, 0xe7, 0x91, 0xf0, 0x48, 0xf2, 0x53, 0xe7, 0x6b, 0x4a, 0xba, - 0xc7, 0x07, 0xd2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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 } @@ -2459,139 +1555,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.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) } - if m.DiskUsage != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.DiskUsage)) - i-- - dAtA[i] = 0x60 - } - 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 } @@ -2599,36 +1671,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 } @@ -2636,43 +1699,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 } @@ -2680,82 +1733,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)) } - return len(dAtA) - i, nil + 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) + } + 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 } @@ -2763,45 +1804,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 } @@ -2809,26 +1838,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 } @@ -2836,52 +1856,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 } @@ -2889,50 +1897,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 - } - 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 - } + i++ } - 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 } @@ -2940,64 +1937,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 } @@ -3005,48 +1988,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 } @@ -3054,31 +2026,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 } @@ -3086,119 +2049,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 - } - return len(dAtA) - 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) - 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++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Preview.Size())) + n12, err := m.Preview.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- + i += n12 + } + return i, nil +} +func (m *TabletSnapshotRequest_Chunk) MarshalTo(dAtA []byte) (int, error) { + i := 0 + 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 + } + 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 } @@ -3206,35 +2130,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 } @@ -3242,38 +2163,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 } @@ -3281,40 +2191,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 } @@ -3322,102 +2221,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 } @@ -3425,41 +2305,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 } @@ -3467,31 +2338,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 } @@ -3499,43 +2361,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 } @@ -3543,58 +2394,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 } @@ -3602,48 +2442,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 } @@ -3651,112 +2480,93 @@ 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 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 - } - } - 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)) + } + 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 err != nil { + return 0, err + } + i += n + } } - 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 } @@ -3764,88 +2574,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 } @@ -3853,60 +2646,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 } @@ -3914,63 +2694,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 } @@ -3978,31 +2747,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 } @@ -4010,58 +2770,47 @@ 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 _, b := range m.Keys { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } if len(m.Sizes) > 0 { - dAtA28 := make([]byte, len(m.Sizes)*10) - var j27 int + dAtA29 := make([]byte, len(m.Sizes)*10) + var j28 int for _, num := range m.Sizes { for num >= 1<<7 { - dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) + dAtA29[j28] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j27++ + j28++ } - dAtA28[j27] = uint8(num) - j27++ + dAtA29[j28] = uint8(num) + j28++ } - 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]) } - 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 + 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 } @@ -4069,60 +2818,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())) + n30, err := m.CheckRegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 } - 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())) + n31, err := m.CheckPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 } - 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 } @@ -4130,139 +2866,115 @@ 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.SnapGenPrecheckPassed { - i-- - if m.SnapGenPrecheckPassed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - } - 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())) + n32, err := m.CheckGcPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n32 } - 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())) + n33, err := m.FlushMemtable.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n33 } - 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())) + n34, err := m.AvailabilityContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 } - 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())) + n35, err := m.RefreshBuckets.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n35 + } + if m.SnapGenPrecheckPassed { + dAtA[i] = 0x50 + i++ + if m.SnapGenPrecheckPassed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - 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 { @@ -4310,16 +3022,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 { @@ -4328,16 +3034,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) @@ -4350,16 +3050,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 { @@ -4387,16 +3081,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 { @@ -4407,28 +3095,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 { @@ -4446,16 +3122,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 { @@ -4467,16 +3137,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 { @@ -4498,16 +3162,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 { @@ -4517,46 +3175,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 { @@ -4566,9 +3206,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 { @@ -4578,9 +3215,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 { @@ -4590,9 +3224,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 { @@ -4602,9 +3233,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 { @@ -4613,32 +3241,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) @@ -4649,16 +3265,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 { @@ -4693,16 +3303,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 { @@ -4714,31 +3318,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 { @@ -4748,16 +3340,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 { @@ -4776,16 +3362,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 { @@ -4798,16 +3378,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 { @@ -4848,16 +3422,10 @@ 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 { @@ -4886,16 +3454,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 { @@ -4912,16 +3474,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 { @@ -4937,31 +3493,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 { @@ -4980,16 +3524,10 @@ 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 { @@ -5006,16 +3544,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 { @@ -5055,14 +3587,18 @@ func (m *ExtraMessage) Size() (n int) { if m.SnapGenPrecheckPassed { n += 2 } - 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)))) @@ -5082,7 +3618,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 } @@ -5110,7 +3646,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 } @@ -5129,7 +3665,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 } @@ -5138,9 +3674,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5165,7 +3698,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 } @@ -5174,9 +3707,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5201,7 +3731,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 } @@ -5210,9 +3740,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5237,7 +3764,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 } @@ -5246,9 +3773,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5273,7 +3797,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 } @@ -5293,7 +3817,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 } @@ -5302,9 +3826,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5327,7 +3848,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 } @@ -5336,9 +3857,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5361,7 +3879,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 } @@ -5370,9 +3888,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5397,7 +3912,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 } @@ -5406,9 +3921,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5433,7 +3945,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 } @@ -5442,9 +3954,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5467,7 +3976,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 } @@ -5478,13 +3987,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 } } @@ -5509,7 +4017,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 } @@ -5537,7 +4045,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 } @@ -5556,7 +4064,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 } @@ -5567,13 +4075,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 } } @@ -5598,7 +4105,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 } @@ -5626,7 +4133,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 } @@ -5636,9 +4143,6 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5658,7 +4162,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 } @@ -5677,7 +4181,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 } @@ -5688,13 +4192,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 } } @@ -5719,7 +4222,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 } @@ -5747,7 +4250,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 } @@ -5756,9 +4259,6 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5781,7 +4281,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 } @@ -5801,7 +4301,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 } @@ -5821,7 +4321,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 } @@ -5840,7 +4340,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 } @@ -5859,7 +4359,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 } @@ -5869,9 +4369,6 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5891,7 +4388,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 } @@ -5902,13 +4399,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 } } @@ -5933,7 +4429,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 } @@ -5961,7 +4457,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 } @@ -5970,9 +4466,6 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5997,7 +4490,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 } @@ -6006,9 +4499,6 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6023,13 +4513,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 } } @@ -6054,7 +4543,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 } @@ -6074,13 +4563,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 } } @@ -6105,7 +4593,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 } @@ -6133,7 +4621,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 } @@ -6152,7 +4640,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 } @@ -6162,9 +4650,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6184,7 +4669,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 } @@ -6193,9 +4678,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6218,7 +4700,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 } @@ -6227,9 +4709,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6244,13 +4723,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 } } @@ -6275,7 +4753,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 } @@ -6303,7 +4781,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 } @@ -6312,9 +4790,6 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6337,7 +4812,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 } @@ -6349,13 +4824,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 } } @@ -6380,7 +4854,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 } @@ -6408,7 +4882,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 } @@ -6427,7 +4901,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 } @@ -6437,9 +4911,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6459,7 +4930,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 } @@ -6468,9 +4939,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6493,7 +4961,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 } @@ -6502,9 +4970,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6527,7 +4992,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 } @@ -6536,9 +5001,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6555,13 +5017,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 } } @@ -6586,7 +5047,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 } @@ -6614,7 +5075,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 } @@ -6623,9 +5084,6 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6650,7 +5108,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 } @@ -6662,13 +5120,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 } } @@ -6693,7 +5150,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 } @@ -6721,7 +5178,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 } @@ -6732,13 +5189,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 } } @@ -6763,7 +5219,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 } @@ -6791,7 +5247,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 } @@ -6800,9 +5256,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6826,7 +5279,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 } @@ -6835,9 +5288,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6861,7 +5311,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 } @@ -6870,9 +5320,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6896,7 +5343,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 } @@ -6905,9 +5352,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6923,13 +5367,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 } } @@ -6954,7 +5397,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 } @@ -6982,7 +5425,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 } @@ -6992,9 +5435,6 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7006,13 +5446,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 } } @@ -7037,7 +5476,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 } @@ -7065,7 +5504,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 } @@ -7074,9 +5513,6 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7093,13 +5529,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 } } @@ -7124,7 +5559,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 } @@ -7152,7 +5587,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 } @@ -7161,9 +5596,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7186,7 +5618,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 } @@ -7195,9 +5627,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7212,13 +5641,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 } } @@ -7243,7 +5671,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 } @@ -7271,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 } @@ -7280,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 } @@ -7307,7 +5732,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 } @@ -7326,7 +5751,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 } @@ -7335,9 +5760,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7360,7 +5782,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 } @@ -7379,7 +5801,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 } @@ -7388,9 +5810,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7415,7 +5834,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 } @@ -7424,9 +5843,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7449,7 +5865,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 } @@ -7458,9 +5874,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7475,13 +5888,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 } } @@ -7506,7 +5918,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 } @@ -7534,7 +5946,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 } @@ -7553,7 +5965,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 } @@ -7572,7 +5984,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 } @@ -7583,13 +5995,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 } } @@ -7614,7 +6025,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 } @@ -7642,7 +6053,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 } @@ -7653,13 +6064,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 } } @@ -7684,7 +6094,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 } @@ -7712,7 +6122,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 } @@ -7721,9 +6131,6 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7748,7 +6155,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 } @@ -7759,13 +6166,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 } } @@ -7790,7 +6196,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 } @@ -7818,7 +6224,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 } @@ -7837,7 +6243,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 } @@ -7846,9 +6252,6 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7873,7 +6276,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 } @@ -7892,7 +6295,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 } @@ -7911,7 +6314,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 } @@ -7922,13 +6325,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 } } @@ -7953,7 +6355,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 } @@ -7981,7 +6383,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 } @@ -8000,7 +6402,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 } @@ -8009,9 +6411,6 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8036,7 +6435,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 } @@ -8047,13 +6446,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 } } @@ -8078,7 +6476,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 } @@ -8106,7 +6504,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 } @@ -8125,7 +6523,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 } @@ -8134,9 +6532,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8161,7 +6556,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 } @@ -8170,9 +6565,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8195,7 +6587,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 } @@ -8214,7 +6606,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 } @@ -8223,9 +6615,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8250,7 +6639,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 } @@ -8259,9 +6648,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8284,7 +6670,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 } @@ -8303,7 +6689,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 } @@ -8322,7 +6708,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 } @@ -8331,9 +6717,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8348,13 +6731,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 } } @@ -8379,7 +6761,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 } @@ -8407,7 +6789,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 } @@ -8426,7 +6808,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 } @@ -8435,9 +6817,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8462,7 +6841,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 } @@ -8471,9 +6850,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8498,7 +6874,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 } @@ -8517,7 +6893,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 } @@ -8526,9 +6902,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8551,7 +6924,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 } @@ -8560,9 +6933,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8577,13 +6947,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 } } @@ -8608,7 +6977,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 } @@ -8636,7 +7005,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 } @@ -8655,7 +7024,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 } @@ -8674,7 +7043,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 } @@ -8683,9 +7052,6 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8710,7 +7076,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 } @@ -8719,9 +7085,6 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8738,13 +7101,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 } } @@ -8769,7 +7131,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 } @@ -8797,7 +7159,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 } @@ -8816,7 +7178,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 } @@ -8825,9 +7187,6 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8852,7 +7211,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 } @@ -8872,7 +7231,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 } @@ -8884,13 +7243,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 } } @@ -8915,7 +7273,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 } @@ -8943,7 +7301,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 } @@ -8954,13 +7312,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 } } @@ -8985,7 +7342,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 } @@ -9013,7 +7370,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 } @@ -9032,7 +7389,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 } @@ -9041,9 +7398,6 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9062,7 +7416,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 } @@ -9079,7 +7433,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 } @@ -9088,23 +7442,9 @@ 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 { @@ -9116,7 +7456,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 } @@ -9132,13 +7472,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 } } @@ -9163,7 +7502,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 } @@ -9191,7 +7530,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 } @@ -9210,7 +7549,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 } @@ -9229,7 +7568,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 } @@ -9238,9 +7577,6 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9265,7 +7601,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 } @@ -9274,9 +7610,6 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9293,13 +7626,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 } } @@ -9324,7 +7656,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 } @@ -9352,7 +7684,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 } @@ -9371,7 +7703,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 } @@ -9390,7 +7722,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 } @@ -9399,9 +7731,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9424,7 +7753,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 } @@ -9444,7 +7773,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 } @@ -9464,7 +7793,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 } @@ -9473,9 +7802,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9500,7 +7826,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 } @@ -9509,9 +7835,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9536,7 +7859,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 } @@ -9545,9 +7868,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9572,7 +7892,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 } @@ -9581,9 +7901,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9608,7 +7925,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 } @@ -9620,13 +7937,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 } } @@ -9639,7 +7955,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 { @@ -9671,8 +7986,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 { @@ -9689,34 +8006,209 @@ 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{ + // 2387 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x1b, 0xc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+ 0xac, 0x23, 0x6d, 0x6e, 0xa0, 0x77, 0xaf, 0xd4, 0x35, 0xa8, 0x38, 0x59, 0xa1, 0xa9, 0x1a, 0x79, + 0x00, 0xab, 0x73, 0xe8, 0x35, 0x0e, 0xee, 0xbe, 0x16, 0x20, 0x2a, 0xd8, 0x27, 0x2b, 0x54, 0xab, + 0x91, 0xfb, 0x1a, 0x23, 0xfa, 0xbe, 0xda, 0xbd, 0x52, 0xfb, 0x51, 0x28, 0x0d, 0x97, 0xe2, 0x47, + 0x75, 0xa8, 0xc6, 0x6c, 0xea, 0x47, 0xcc, 0xb5, 0xee, 0xc3, 0xe6, 0xa1, 0xe3, 0x60, 0x2c, 0x4b, + 0x6e, 0x66, 0x1b, 0x9e, 0x87, 0x8c, 0x84, 0x6f, 0x06, 0x32, 0xd6, 0xf9, 0x62, 0x2a, 0x52, 0xe4, + 0x71, 0x14, 0x72, 0x24, 0x9f, 0xc3, 0x6a, 0x5a, 0x21, 0x97, 0x39, 0x64, 0xe9, 0x5e, 0x54, 0xab, + 0x58, 0x07, 0x50, 0xfb, 0x12, 0xa7, 0xdf, 0x30, 0x7f, 0x8c, 0x12, 0xfc, 0x12, 0x70, 0x05, 0x85, + 0x40, 0x39, 0x94, 0x25, 0x70, 0x22, 0x59, 0xa6, 0x38, 0xe8, 0x89, 0xf5, 0x97, 0x22, 0x74, 0x24, + 0x78, 0xd2, 0x05, 0x25, 0x18, 0xc9, 0x5d, 0xa8, 0xe8, 0x4b, 0xd7, 0x58, 0xb1, 0x78, 0x0d, 0x1a, + 0x6e, 0x3e, 0x67, 0x8a, 0x0b, 0x39, 0xf3, 0xc1, 0x2c, 0x2d, 0x64, 0xea, 0xde, 0x58, 0x38, 0x48, + 0x6a, 0xa8, 0xc9, 0x97, 0x2e, 0x54, 0x27, 0x98, 0x70, 0xb9, 0xa5, 0xae, 0xd0, 0xe9, 0x94, 0x7c, + 0x08, 0x65, 0xb9, 0xb9, 0x49, 0x9d, 0xed, 0x57, 0xd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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, 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, 0xc7, 0xd9, 0x5f, 0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x9b, 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, 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, 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a3, 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, 0x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xff, 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, 0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f2, 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 b04b3c30f..960e3a20f 100644 --- a/pkg/resource_manager/resource_manager.pb.go +++ b/pkg/resource_manager/resource_manager.pb.go @@ -1,21 +1,59 @@ // 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" - 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 +65,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 +76,6 @@ const ( var RequestUnitType_name = map[int32]string{ 0: "RU", } - var RequestUnitType_value = map[string]int32{ "RU": 0, } @@ -46,9 +83,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 +100,6 @@ var RawResourceType_name = map[int32]string{ 1: "IOReadFlow", 2: "IOWriteFlow", } - var RawResourceType_value = map[string]int32{ "CPU": 0, "IOReadFlow": 1, @@ -74,9 +109,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 +126,6 @@ var GroupMode_name = map[int32]string{ 1: "RUMode", 2: "RawMode", } - var GroupMode_value = map[string]int32{ "Unknown": 0, "RUMode": 1, @@ -102,10 +135,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 @@ -124,7 +154,6 @@ var RunawayAction_name = map[int32]string{ 3: "Kill", 4: "SwitchGroup", } - var RunawayAction_value = map[string]int32{ "NoneAction": 0, "DryRun": 1, @@ -136,10 +165,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 @@ -156,7 +182,6 @@ var RunawayWatchType_name = map[int32]string{ 2: "Similar", 3: "Plan", } - var RunawayWatchType_value = map[string]int32{ "NoneWatch": 0, "Exact": 1, @@ -167,50 +192,20 @@ 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 { - WithRuStats bool `protobuf:"varint,1,opt,name=with_ru_stats,json=withRuStats,proto3" json:"with_ru_stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + WithRuStats bool `protobuf:"varint,1,opt,name=with_ru_stats,json=withRuStats,proto3" json:"with_ru_stats,omitempty"` } 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 func (m *ListResourceGroupsRequest) GetWithRuStats() bool { if m != nil { @@ -220,46 +215,17 @@ func (m *ListResourceGroupsRequest) GetWithRuStats() bool { } 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 @@ -275,46 +241,17 @@ 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"` - WithRuStats bool `protobuf:"varint,2,opt,name=with_ru_stats,json=withRuStats,proto3" json:"with_ru_stats,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"` + WithRuStats bool `protobuf:"varint,2,opt,name=with_ru_stats,json=withRuStats,proto3" json:"with_ru_stats,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 @@ -330,45 +267,16 @@ func (m *GetResourceGroupRequest) GetWithRuStats() bool { } 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 { @@ -385,44 +293,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 { @@ -432,46 +311,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 @@ -487,44 +337,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 { @@ -534,46 +355,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 @@ -589,46 +381,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 { @@ -658,48 +421,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) @@ -707,10 +441,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() {} @@ -765,53 +499,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 { @@ -821,45 +592,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 @@ -868,45 +610,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 { @@ -925,47 +638,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 @@ -988,46 +672,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 { @@ -1051,47 +706,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 @@ -1114,51 +740,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 { @@ -1217,45 +812,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 { @@ -1272,45 +836,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 { @@ -1331,54 +864,23 @@ 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"` + RunawaySettings *RunawaySettings `protobuf:"bytes,6,opt,name=runaway_settings,json=runawaySettings" json:"runaway_settings,omitempty"` // Background task control settings. - BackgroundSettings *BackgroundSettings `protobuf:"bytes,7,opt,name=background_settings,json=backgroundSettings,proto3" json:"background_settings,omitempty"` + BackgroundSettings *BackgroundSettings `protobuf:"bytes,7,opt,name=background_settings,json=backgroundSettings" json:"background_settings,omitempty"` // RU consumption statistics. - RUStats *Consumption `protobuf:"bytes,8,opt,name=RUStats,proto3" json:"RUStats,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) + RUStats *Consumption `protobuf:"bytes,8,opt,name=RUStats" json:"RUStats,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 { @@ -1437,44 +939,15 @@ func (m *ResourceGroup) GetRUStats() *Consumption { } 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 { @@ -1484,47 +957,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 @@ -1547,46 +991,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 { @@ -1603,46 +1016,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 { @@ -1666,44 +1050,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 { @@ -1713,46 +1066,15 @@ 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"` - ProcessedKeys int64 `protobuf:"varint,2,opt,name=processed_keys,json=processedKeys,proto3" json:"processed_keys,omitempty"` - RequestUnit int64 `protobuf:"varint,3,opt,name=request_unit,json=requestUnit,proto3" json:"request_unit,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"` + ProcessedKeys int64 `protobuf:"varint,2,opt,name=processed_keys,json=processedKeys,proto3" json:"processed_keys,omitempty"` + RequestUnit int64 `protobuf:"varint,3,opt,name=request_unit,json=requestUnit,proto3" json:"request_unit,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 { @@ -1777,45 +1099,14 @@ func (m *RunawayRule) GetRequestUnit() int64 { 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 { @@ -1832,49 +1123,18 @@ func (m *RunawayWatch) GetType() RunawayWatchType { } type RunawaySettings struct { - Rule *RunawayRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + 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,proto3" json:"watch,omitempty"` + Watch *RunawayWatch `protobuf:"bytes,3,opt,name=watch" json:"watch,omitempty"` // When the runaway action is `SwitchGroup`, // this field will be used to indicate which group to switch. - SwitchGroupName string `protobuf:"bytes,4,opt,name=switch_group_name,json=switchGroupName,proto3" json:"switch_group_name,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) + SwitchGroupName string `protobuf:"bytes,4,opt,name=switch_group_name,json=switchGroupName,proto3" json:"switch_group_name,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 { @@ -1906,47 +1166,18 @@ func (m *RunawaySettings) GetSwitchGroupName() string { type BackgroundSettings struct { // background task types. - JobTypes []string `protobuf:"bytes,1,rep,name=job_types,json=jobTypes,proto3" json:"job_types,omitempty"` + JobTypes []string `protobuf:"bytes,1,rep,name=job_types,json=jobTypes" json:"job_types,omitempty"` // the percentage limit of total resource(cpu/io) that background tasks can use. - UtilizationLimit uint64 `protobuf:"varint,2,opt,name=utilization_limit,json=utilizationLimit,proto3" json:"utilization_limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + UtilizationLimit uint64 `protobuf:"varint,2,opt,name=utilization_limit,json=utilizationLimit,proto3" json:"utilization_limit,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 @@ -1968,44 +1199,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_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) + 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 fileDescriptorResourceManager, []int{27} } func (m *Participant) GetName() string { if m != nil { @@ -2029,11 +1229,6 @@ 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") @@ -2064,129 +1259,11 @@ func init() { proto.RegisterType((*RunawaySettings)(nil), "resource_manager.RunawaySettings") proto.RegisterType((*BackgroundSettings)(nil), "resource_manager.BackgroundSettings") proto.RegisterType((*Participant)(nil), "resource_manager.Participant") -} - -func init() { proto.RegisterFile("resource_manager.proto", fileDescriptor_7048dd9233ee965d) } - -var fileDescriptor_7048dd9233ee965d = []byte{ - // 1864 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x73, 0x1b, 0x49, - 0x15, 0xf7, 0xe8, 0x5b, 0x4f, 0xfe, 0x90, 0xdb, 0xce, 0x46, 0xab, 0x54, 0x9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x00, 0x00, 0xff, 0xff, - 0x4b, 0xc9, 0x18, 0x5c, 0x33, 0x16, 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. @@ -2197,9 +1274,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) @@ -2219,7 +1295,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 } @@ -2228,7 +1304,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 } @@ -2237,7 +1313,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 } @@ -2246,7 +1322,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 } @@ -2255,7 +1331,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 } @@ -2263,7 +1339,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 } @@ -2293,7 +1369,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) @@ -2303,29 +1380,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) } @@ -2485,7 +1539,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 } @@ -2493,36 +1547,27 @@ 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) - } if m.WithRuStats { - i-- + dAtA[i] = 0x8 + i++ if m.WithRuStats { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x8 + i++ } - 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 } @@ -2530,52 +1575,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 } @@ -2583,43 +1615,33 @@ 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 { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } if m.WithRuStats { - i-- + dAtA[i] = 0x10 + i++ if m.WithRuStats { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 - } - 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++ } - 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 } @@ -2627,50 +1649,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 } @@ -2678,33 +1687,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 } @@ -2712,45 +1711,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 } @@ -2758,38 +1745,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 } @@ -2797,45 +1773,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 } @@ -2843,50 +1807,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 } @@ -2894,116 +1847,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 + i++ } - 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 - } + 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 } @@ -3011,40 +1936,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 } @@ -3052,40 +1966,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 } @@ -3093,52 +1996,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 } @@ -3146,61 +2036,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 } @@ -3208,48 +2084,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 } @@ -3257,48 +2122,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 } @@ -3306,74 +2160,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 } @@ -3381,37 +2226,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 } @@ -3419,37 +2255,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 } @@ -3457,103 +2284,83 @@ 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.RUStats != nil { - { - size, err := m.RUStats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 + if m.Mode != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Mode)) } - 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.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 + i += n17 } - 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 + if m.RUStats != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RUStats.Size())) + n18, err := m.RUStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - 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 } @@ -3561,38 +2368,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())) + n19, err := m.RU.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - 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 } @@ -3600,62 +2396,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())) + n20, err := m.Cpu.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n20 } 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())) + n21, err := m.IoRead.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - 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())) + n22, err := m.IoWrite.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 *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 } @@ -3663,44 +2444,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())) + n23, err := m.Settings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } 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 } @@ -3708,42 +2478,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 } @@ -3751,33 +2512,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 } @@ -3785,41 +2536,32 @@ 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.RequestUnit != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.RequestUnit)) - i-- - dAtA[i] = 0x18 + if m.ExecElapsedTimeMs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.ExecElapsedTimeMs)) } if m.ProcessedKeys != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.ProcessedKeys)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.ProcessedKeys)) } - if m.ExecElapsedTimeMs != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.ExecElapsedTimeMs)) - i-- - dAtA[i] = 0x8 + if m.RequestUnit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.RequestUnit)) } - 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 } @@ -3827,36 +2569,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 } @@ -3864,62 +2597,48 @@ 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 len(m.SwitchGroupName) > 0 { - i -= len(m.SwitchGroupName) - copy(dAtA[i:], m.SwitchGroupName) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.SwitchGroupName))) - i-- - dAtA[i] = 0x22 - } - 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())) + n24, err := m.Rule.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n24 } 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())) + n25, err := m.Watch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n25 } - return len(dAtA) - i, nil + if len(m.SwitchGroupName) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.SwitchGroupName))) + i += copy(dAtA[i:], m.SwitchGroupName) + } + 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 } @@ -3927,40 +2646,37 @@ 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 m.UtilizationLimit != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.UtilizationLimit)) - i-- - dAtA[i] = 0x10 - } 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 + if m.UtilizationLimit != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.UtilizationLimit)) + } + 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 } @@ -3968,73 +2684,58 @@ 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 = encodeVarintResourceManager(dAtA, i, uint64(len(m.ListenUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + 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 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Id)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Id)) } - 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 + 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 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.WithRuStats { n += 2 } - 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 { @@ -4047,16 +2748,10 @@ 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) @@ -4066,16 +2761,10 @@ func (m *GetResourceGroupRequest) Size() (n int) { if m.WithRuStats { n += 2 } - 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 { @@ -4086,32 +2775,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 { @@ -4122,32 +2799,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 { @@ -4158,16 +2823,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 { @@ -4182,16 +2841,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) @@ -4211,16 +2864,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 { @@ -4230,9 +2877,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 { @@ -4242,9 +2886,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 { @@ -4253,16 +2894,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 { @@ -4271,16 +2906,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 { @@ -4293,16 +2922,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) @@ -4321,16 +2944,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 { @@ -4343,16 +2960,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 { @@ -4365,16 +2976,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 { @@ -4401,16 +3006,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 { @@ -4419,16 +3018,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 { @@ -4437,16 +3030,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) @@ -4479,32 +3066,20 @@ func (m *ResourceGroup) Size() (n int) { l = m.RUStats.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 { @@ -4519,16 +3094,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 { @@ -4538,16 +3107,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 { @@ -4559,32 +3122,20 @@ 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 { @@ -4596,16 +3147,10 @@ func (m *RunawayRule) Size() (n int) { if m.RequestUnit != 0 { n += 1 + sovResourceManager(uint64(m.RequestUnit)) } - 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 { @@ -4614,16 +3159,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 { @@ -4641,16 +3180,10 @@ func (m *RunawaySettings) 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 *BackgroundSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.JobTypes) > 0 { @@ -4662,16 +3195,10 @@ func (m *BackgroundSettings) Size() (n int) { if m.UtilizationLimit != 0 { n += 1 + sovResourceManager(uint64(m.UtilizationLimit)) } - 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) @@ -4687,14 +3214,18 @@ 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) { - 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)))) @@ -4714,7 +3245,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 } @@ -4742,7 +3273,7 @@ func (m *ListResourceGroupsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4754,13 +3285,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 } } @@ -4785,7 +3315,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 } @@ -4813,7 +3343,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 } @@ -4822,9 +3352,6 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4849,7 +3376,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 } @@ -4858,9 +3385,6 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4875,13 +3399,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 } } @@ -4906,7 +3429,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 } @@ -4934,7 +3457,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 } @@ -4944,9 +3467,6 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4966,7 +3486,7 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4978,13 +3498,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 } } @@ -5009,7 +3528,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 } @@ -5037,7 +3556,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 } @@ -5046,9 +3565,6 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5073,7 +3589,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 } @@ -5082,9 +3598,6 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5101,13 +3614,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 } } @@ -5132,7 +3644,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 } @@ -5160,7 +3672,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 } @@ -5170,9 +3682,6 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5184,13 +3693,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 } } @@ -5215,7 +3723,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 } @@ -5243,7 +3751,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 } @@ -5252,9 +3760,6 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5279,7 +3784,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 } @@ -5289,9 +3794,6 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5303,13 +3805,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 } } @@ -5334,7 +3835,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 } @@ -5362,7 +3863,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 } @@ -5371,9 +3872,6 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5390,13 +3888,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 } } @@ -5421,7 +3918,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 } @@ -5449,7 +3946,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 } @@ -5458,9 +3955,6 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5485,7 +3979,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 } @@ -5495,9 +3989,6 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5509,13 +4000,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 } } @@ -5540,7 +4030,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 } @@ -5568,7 +4058,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 } @@ -5577,9 +4067,6 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5602,7 +4089,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 } @@ -5621,7 +4108,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 } @@ -5632,13 +4119,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 } } @@ -5663,7 +4149,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 } @@ -5691,7 +4177,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 } @@ -5701,9 +4187,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5723,7 +4206,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 } @@ -5732,9 +4215,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5758,7 +4238,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 } @@ -5767,9 +4247,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5793,7 +4270,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 } @@ -5802,9 +4279,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5829,7 +4303,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 } @@ -5849,7 +4323,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 } @@ -5861,13 +4335,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 } } @@ -5892,7 +4365,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 } @@ -5920,7 +4393,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 } @@ -5929,9 +4402,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 } @@ -5946,13 +4416,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 } } @@ -5977,7 +4446,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 } @@ -6005,7 +4474,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 } @@ -6014,9 +4483,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 } @@ -6031,13 +4497,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 } } @@ -6062,7 +4527,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 } @@ -6090,7 +4555,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 } @@ -6099,9 +4564,6 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6126,7 +4588,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 } @@ -6135,9 +4597,6 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6152,13 +4611,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 } } @@ -6183,7 +4641,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 } @@ -6211,7 +4669,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 } @@ -6221,9 +4679,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6243,7 +4698,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 } @@ -6252,9 +4707,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6277,7 +4729,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 } @@ -6286,9 +4738,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6303,13 +4752,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 } } @@ -6334,7 +4782,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 } @@ -6362,7 +4810,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 } @@ -6381,7 +4829,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 } @@ -6390,9 +4838,6 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6417,7 +4862,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 } @@ -6428,13 +4873,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 } } @@ -6459,7 +4903,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 } @@ -6487,7 +4931,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 } @@ -6506,7 +4950,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 } @@ -6515,9 +4959,6 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6542,7 +4983,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 } @@ -6553,13 +4994,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 } } @@ -6584,7 +5024,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 } @@ -6692,13 +5132,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 } } @@ -6723,7 +5162,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 } @@ -6751,7 +5190,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 } @@ -6773,13 +5212,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 } } @@ -6804,7 +5242,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 } @@ -6832,7 +5270,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 } @@ -6854,13 +5292,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 } } @@ -6885,7 +5322,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 } @@ -6913,7 +5350,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 } @@ -6923,9 +5360,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6945,7 +5379,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 } @@ -6964,7 +5398,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 } @@ -6973,9 +5407,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7000,7 +5431,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 } @@ -7009,9 +5440,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7036,7 +5464,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 } @@ -7055,7 +5483,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 } @@ -7064,9 +5492,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7091,7 +5516,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 } @@ -7100,9 +5525,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7127,7 +5549,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 } @@ -7136,9 +5558,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7155,13 +5574,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 } } @@ -7186,7 +5604,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 } @@ -7214,7 +5632,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 } @@ -7223,9 +5641,6 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7242,13 +5657,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 } } @@ -7273,7 +5687,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 } @@ -7301,7 +5715,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 } @@ -7310,9 +5724,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7337,7 +5748,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 } @@ -7346,9 +5757,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7373,7 +5781,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 } @@ -7382,9 +5790,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7401,13 +5806,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 } } @@ -7432,7 +5836,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 } @@ -7460,7 +5864,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 } @@ -7469,9 +5873,6 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7499,13 +5900,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 } } @@ -7530,7 +5930,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 } @@ -7558,7 +5958,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 } @@ -7577,7 +5977,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 } @@ -7599,13 +5999,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 } } @@ -7630,7 +6029,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 } @@ -7658,7 +6057,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 } @@ -7668,9 +6067,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7682,13 +6078,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 } } @@ -7713,7 +6108,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 } @@ -7741,7 +6136,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 } @@ -7760,7 +6155,7 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProcessedKeys |= int64(b&0x7F) << shift + m.ProcessedKeys |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7779,7 +6174,7 @@ func (m *RunawayRule) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestUnit |= int64(b&0x7F) << shift + m.RequestUnit |= (int64(b) & 0x7F) << shift if b < 0x80 { break } @@ -7790,13 +6185,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 } } @@ -7821,7 +6215,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 } @@ -7849,7 +6243,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 } @@ -7868,7 +6262,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 } @@ -7879,13 +6273,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 } } @@ -7910,7 +6303,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 } @@ -7938,7 +6331,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 } @@ -7947,9 +6340,6 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7974,7 +6364,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 } @@ -7993,7 +6383,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 } @@ -8002,9 +6392,6 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8029,7 +6416,7 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8039,9 +6426,6 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8053,13 +6437,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 } } @@ -8084,7 +6467,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 } @@ -8112,7 +6495,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 } @@ -8122,9 +6505,6 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8144,7 +6524,7 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UtilizationLimit |= uint64(b&0x7F) << shift + m.UtilizationLimit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8155,13 +6535,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 } } @@ -8186,7 +6565,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 } @@ -8214,7 +6593,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 } @@ -8224,9 +6603,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8246,7 +6622,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 } @@ -8265,7 +6641,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 } @@ -8275,9 +6651,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8289,13 +6662,12 @@ func (m *Participant) 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 } } @@ -8308,7 +6680,6 @@ 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 { @@ -8340,8 +6711,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 { @@ -8358,34 +6731,176 @@ 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{ + // 1864 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x73, 0x1b, 0x49, + 0x15, 0xf7, 0xe8, 0x5b, 0x4f, 0xfe, 0x90, 0xdb, 0xce, 0x46, 0xab, 0x54, 0x9c, 0xcd, 0xc0, 0xa6, + 0x1c, 0x87, 0x75, 0x76, 0x0d, 0xbb, 0xa6, 0x8a, 0x03, 0x1b, 0xdb, 0x21, 0x1b, 0x62, 0x67, 0x5d, + 0x6d, 0xab, 0xf6, 0x44, 0x86, 0xf6, 0xa8, 0xa3, 0x74, 0x34, 0x9a, 0x91, 0xbb, 0x7b, 0xac, 0x88, + 0x13, 0x55, 0x70, 0xa0, 0xf8, 0x0b, 0xf8, 0x13, 0x28, 0x4e, 0x9c, 0xa1, 0xb8, 0x71, 0xe0, 0xc8, + 0x91, 0x1b, 0x54, 0xb8, 0xf0, 0x47, 0x70, 0xa0, 0xfa, 0x63, 0x46, 0x23, 0x4b, 0xb2, 0x1d, 0x57, + 0x8a, 0xbd, 0x4d, 0xbf, 0x8f, 0xdf, 0xfb, 0xe8, 0xf7, 0x5e, 0xf7, 0x34, 0x7c, 0xc0, 0xa9, 0x88, + 0x62, 0xee, 0x53, 0xaf, 0x47, 0x42, 0xd2, 0xa1, 0x7c, 0xb3, 0xcf, 0x23, 0x19, 0xa1, 0xfa, 0x79, + 0x7a, 0x73, 0xb5, 0x13, 0x75, 0x22, 0xcd, 0x7c, 0xa8, 0xbe, 0x8c, 0x5c, 0x73, 0x89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x05, 0x44, 0xa4, 0xf9, 0x6e, 0x14, + 0xb4, 0xd1, 0xdb, 0x93, 0x46, 0x77, 0x47, 0x7a, 0xf8, 0x56, 0x06, 0xe4, 0x48, 0x61, 0xec, 0x13, + 0x91, 0x66, 0xf2, 0x3b, 0xb0, 0xc0, 0x84, 0x77, 0x42, 0xfc, 0xae, 0xca, 0x63, 0xd8, 0x6e, 0x14, + 0xf5, 0x94, 0x98, 0x67, 0x62, 0x27, 0xa5, 0xa1, 0xdb, 0x00, 0x4c, 0x78, 0x92, 0xbd, 0x0c, 0x88, + 0x78, 0xd5, 0x28, 0x69, 0x89, 0x2a, 0x13, 0xc7, 0x86, 0xd0, 0x7c, 0x0e, 0xd5, 0x34, 0x51, 0xe8, + 0x11, 0xd4, 0x92, 0x6a, 0xe0, 0x5e, 0x6c, 0x2b, 0xeb, 0xee, 0xb4, 0x56, 0xd0, 0x42, 0xad, 0x90, + 0x49, 0x15, 0x2d, 0xae, 0xf2, 0x04, 0xa2, 0xc9, 0x00, 0x4d, 0x66, 0x08, 0x1d, 0xc1, 0x6a, 0x0a, + 0x9c, 0x49, 0xff, 0x05, 0x16, 0xc6, 0xf3, 0x89, 0x11, 0x9f, 0x00, 0xdd, 0xa9, 0x42, 0xd9, 0x52, + 0xdd, 0xdf, 0x3a, 0xb0, 0x3a, 0xde, 0x27, 0xd7, 0xeb, 0xc1, 0x5d, 0xa8, 0x72, 0xab, 0x9a, 0x8c, + 0xff, 0x8f, 0x2f, 0xa9, 0x0a, 0x23, 0x8d, 0x47, 0x7a, 0xee, 0xaf, 0x72, 0x63, 0x4d, 0x9b, 0xfa, + 0xf2, 0xae, 0x85, 0x7f, 0x04, 0xa8, 0xc3, 0x49, 0x28, 0x69, 0x5b, 0xed, 0x86, 0x27, 0x15, 0x64, + 0xe2, 0xd5, 0xbd, 0x49, 0xaf, 0x9e, 0x18, 0x59, 0xdc, 0xca, 0xda, 0x5e, 0xea, 0x8c, 0x51, 0x55, + 0x03, 0xdc, 0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0x32, 0xfb, 0x39, 0xad, 0xf9, 0xc9, 0x15, 0xa5, + 0x53, 0xab, 0xaf, 0x61, 0xe5, 0x91, 0x7f, 0x1a, 0x33, 0x9e, 0xfd, 0x6f, 0x11, 0xe8, 0xe2, 0x1f, + 0xda, 0xb4, 0x5a, 0xee, 0x5d, 0x26, 0x96, 0xd8, 0x59, 0x77, 0x3e, 0x75, 0x76, 0x56, 0xff, 0xf1, + 0xfb, 0x8a, 0xf3, 0xb7, 0xb7, 0x6b, 0xce, 0xdf, 0xdf, 0xae, 0x39, 0xff, 0x7a, 0xbb, 0xe6, 0xfc, + 0xee, 0xdf, 0x6b, 0x73, 0x27, 0x25, 0xfd, 0xc0, 0xfb, 0xfd, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, + 0x4b, 0xc9, 0x18, 0x5c, 0x33, 0x16, 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..1e679b393 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() + return fileDescriptorResourceUsageAgent, []int{0} } -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) } -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) -} -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 - } + return fileDescriptorResourceUsageAgent, []int{2} } -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,54 +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"` + RegionId uint64 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,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) + return fileDescriptorResourceUsageAgent, []int{3} } -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 { @@ -237,49 +182,27 @@ func (m *GroupTagRecord) GetItems() []*GroupTagRecordItem { return nil } +func (m *GroupTagRecord) GetRegionId() uint64 { + if m != nil { + return m.RegionId + } + return 0 +} + 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 - } -} -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) + return fileDescriptorResourceUsageAgent, []int{4} } -var xxx_messageInfo_GroupTagRecordItem proto.InternalMessageInfo - func (m *GroupTagRecordItem) GetTimestampSec() uint64 { if m != nil { return m.TimestampSec @@ -316,39 +239,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, 0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 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 +247,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 +264,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 +297,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 +349,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 +366,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 +397,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 +447,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 +455,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 +473,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 +491,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 +530,40 @@ 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 + if m.RegionId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.RegionId)) } - 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 +571,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 +638,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 +650,13 @@ func (m *GroupTagRecord) Size() (n int) { n += 1 + l + sovResourceUsageAgent(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.RegionId != 0 { + n += 1 + sovResourceUsageAgent(uint64(m.RegionId)) } return n } func (m *GroupTagRecordItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TimestampSec != 0 { @@ -878,14 +671,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 +702,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 +722,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 +752,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 +772,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 +802,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 +830,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 +839,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 +854,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 +884,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 +912,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 +921,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 +943,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 +952,6 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceUsageAgent - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1175,19 +960,37 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + 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 ErrIntOverflowResourceUsageAgent + } + 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 := skipResourceUsageAgent(dAtA[iNdEx:]) 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 +1015,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 +1043,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 +1062,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 +1081,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 +1100,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 +1111,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 +1129,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 +1160,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 +1180,87 @@ 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{ + // 448 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x6a, 0x13, 0x41, + 0x14, 0xce, 0xd8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c, 0xcb, 0x14, + 0xe9, 0x93, 0xff, 0x67, 0x5f, 0x39, 0xbc, 0xe0, 0xfa, 0x55, 0xa3, 0xce, 0x33, 0x72, 0xf2, 0xf0, + 0xd7, 0xf7, 0x5d, 0xf2, 0x63, 0x15, 0x92, 0x9f, 0xab, 0x90, 0xfc, 0x5e, 0x85, 0xe4, 0xeb, 0x9f, + 0xb0, 0x03, 0x07, 0x4a, 0x8b, 0xa9, 0x95, 0x8b, 0x8b, 0xe9, 0xe2, 0xc2, 0x9f, 0x7a, 0xda, 0xf3, + 0x8f, 0xe7, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xdc, 0x03, 0x07, 0x4c, 0x03, 0x00, 0x00, +} diff --git a/pkg/schedulingpb/schedulingpb.pb.go b/pkg/schedulingpb/schedulingpb.pb.go index df2349009..b145e5f61 100644 --- a/pkg/schedulingpb/schedulingpb.pb.go +++ b/pkg/schedulingpb/schedulingpb.pb.go @@ -1,22 +1,49 @@ // 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 + ScatterRegionsRequest + ScatterRegionsResponse + SplitRegionsRequest + SplitRegionsResponse + GetOperatorRequest + GetOperatorResponse + AskBatchSplitRequest + AskBatchSplitResponse +*/ package schedulingpb 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" pdpb "github.com/pingcap/kvproto/pkg/pdpb" + + _ "github.com/gogo/protobuf/gogoproto" + + metapb "github.com/pingcap/kvproto/pkg/metapb" + + 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 +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 ErrorType int32 @@ -49,7 +76,6 @@ var ErrorType_name = map[int32]string{ 4: "INVALID_VALUE", 5: "CLUSTER_MISMATCHED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -62,53 +88,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_b4bfd49510230d67, []int{0} -} +func (ErrorType) EnumDescriptor() ([]byte, []int) { return fileDescriptorSchedulingpb, []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"` - 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) + 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 fileDescriptorSchedulingpb, []int{0} } func (m *RequestHeader) GetClusterId() uint64 { if m != nil { @@ -126,45 +118,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_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) + 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 fileDescriptorSchedulingpb, []int{1} } func (m *ResponseHeader) GetClusterId() uint64 { if m != nil { @@ -181,45 +142,14 @@ 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"` - 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) + 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"` } -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 fileDescriptorSchedulingpb, []int{2} } func (m *Error) GetType() ErrorType { if m != nil { @@ -242,44 +172,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_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) + 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 fileDescriptorSchedulingpb, []int{3} } func (m *Participant) GetName() string { if m != nil { @@ -303,46 +202,17 @@ func (m *Participant) GetListenUrls() []string { } type StoreHeartbeatRequest struct { - 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:"-"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Stats *pdpb.StoreStats `protobuf:"bytes,2,opt,name=stats" json:"stats,omitempty"` } 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_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) + return fileDescriptorSchedulingpb, []int{4} } -var xxx_messageInfo_StoreHeartbeatRequest proto.InternalMessageInfo - func (m *StoreHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -358,45 +228,16 @@ func (m *StoreHeartbeatRequest) GetStats() *pdpb.StoreStats { } type StoreHeartbeatResponse struct { - 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:"-"` + 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"` } 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_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() + return fileDescriptorSchedulingpb, []int{5} } -func (m *StoreHeartbeatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StoreHeartbeatResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StoreHeartbeatResponse proto.InternalMessageInfo func (m *StoreHeartbeatResponse) GetHeader() *ResponseHeader { if m != nil { @@ -413,17 +254,17 @@ func (m *StoreHeartbeatResponse) GetClusterVersion() string { } 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"` // 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,proto3" json:"down_peers,omitempty"` + DownPeers []*pdpb.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"` // 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"` @@ -435,47 +276,18 @@ 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,proto3" json:"query_stats,omitempty"` + QueryStats *pdpb.QueryStats `protobuf:"bytes,13,opt,name=query_stats,json=queryStats" json:"query_stats,omitempty"` // Actually reported time interval - 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:"-"` + Interval *pdpb.TimeInterval `protobuf:"bytes,14,opt,name=interval" json:"interval,omitempty"` } 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_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) + return fileDescriptorSchedulingpb, []int{6} } -var xxx_messageInfo_RegionHeartbeatRequest proto.InternalMessageInfo - func (m *RegionHeartbeatRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -575,12 +387,12 @@ func (m *RegionHeartbeatRequest) GetInterval() *pdpb.TimeInterval { } 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"` // 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,proto3" json:"region_epoch,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,3,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,4,opt,name=target_peer,json=targetPeer,proto3" json:"target_peer,omitempty"` + TargetPeer *metapb.Peer `protobuf:"bytes,4,opt,name=target_peer,json=targetPeer" 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 @@ -595,57 +407,28 @@ 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,proto3" json:"change_peer,omitempty"` + ChangePeer *pdpb.ChangePeer `protobuf:"bytes,5,opt,name=change_peer,json=changePeer" 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,proto3" json:"transfer_leader,omitempty"` - Merge *pdpb.Merge `protobuf:"bytes,7,opt,name=merge,proto3" json:"merge,omitempty"` + 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"` // 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,proto3" json:"split_region,omitempty"` + SplitRegion *pdpb.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 *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:"-"` + 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"` } 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_b4bfd49510230d67, []int{7} -} -func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return fileDescriptorSchedulingpb, []int{7} } -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 { @@ -718,52 +501,23 @@ func (m *RegionHeartbeatResponse) GetSwitchWitnesses() *pdpb.BatchSwitchWitness } type ScatterRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,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,2,opt,name=group,proto3" json:"group,omitempty"` // If regions_id is defined, the region_id would be ignored. - RegionsId []uint64 `protobuf:"varint,3,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` - RetryLimit uint64 `protobuf:"varint,4,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` - SkipStoreLimit bool `protobuf:"varint,5,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:"-"` + RegionsId []uint64 `protobuf:"varint,3,rep,packed,name=regions_id,json=regionsId" json:"regions_id,omitempty"` + RetryLimit uint64 `protobuf:"varint,4,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` + SkipStoreLimit bool `protobuf:"varint,5,opt,name=skip_store_limit,json=skipStoreLimit,proto3" json:"skip_store_limit,omitempty"` } func (m *ScatterRegionsRequest) Reset() { *m = ScatterRegionsRequest{} } func (m *ScatterRegionsRequest) String() string { return proto.CompactTextString(m) } func (*ScatterRegionsRequest) ProtoMessage() {} func (*ScatterRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b4bfd49510230d67, []int{8} -} -func (m *ScatterRegionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScatterRegionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ScatterRegionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScatterRegionsRequest.Merge(m, src) -} -func (m *ScatterRegionsRequest) XXX_Size() int { - return m.Size() -} -func (m *ScatterRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ScatterRegionsRequest.DiscardUnknown(m) + return fileDescriptorSchedulingpb, []int{8} } -var xxx_messageInfo_ScatterRegionsRequest proto.InternalMessageInfo - func (m *ScatterRegionsRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -800,45 +554,16 @@ func (m *ScatterRegionsRequest) GetSkipStoreLimit() bool { } type ScatterRegionsResponse 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:"-"` + 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"` } func (m *ScatterRegionsResponse) Reset() { *m = ScatterRegionsResponse{} } func (m *ScatterRegionsResponse) String() string { return proto.CompactTextString(m) } func (*ScatterRegionsResponse) ProtoMessage() {} func (*ScatterRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4bfd49510230d67, []int{9} -} -func (m *ScatterRegionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScatterRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScatterRegionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ScatterRegionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScatterRegionsResponse.Merge(m, src) -} -func (m *ScatterRegionsResponse) XXX_Size() int { - return m.Size() + return fileDescriptorSchedulingpb, []int{9} } -func (m *ScatterRegionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ScatterRegionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ScatterRegionsResponse proto.InternalMessageInfo func (m *ScatterRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -855,47 +580,18 @@ func (m *ScatterRegionsResponse) GetFinishedPercentage() uint64 { } 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:"-"` + 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"` } 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_b4bfd49510230d67, []int{10} -} -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) + return fileDescriptorSchedulingpb, []int{10} } -var xxx_messageInfo_SplitRegionsRequest proto.InternalMessageInfo - func (m *SplitRegionsRequest) GetHeader() *RequestHeader { if m != nil { return m.Header @@ -918,46 +614,17 @@ 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:"-"` + 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"` } 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_b4bfd49510230d67, []int{11} -} -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 - } + return fileDescriptorSchedulingpb, []int{11} } -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) -} - -var xxx_messageInfo_SplitRegionsResponse proto.InternalMessageInfo func (m *SplitRegionsResponse) GetHeader() *ResponseHeader { if m != nil { @@ -981,45 +648,14 @@ func (m *SplitRegionsResponse) GetRegionsId() []uint64 { } 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_b4bfd49510230d67, []int{12} -} -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 fileDescriptorSchedulingpb, []int{12} } func (m *GetOperatorRequest) GetHeader() *RequestHeader { if m != nil { @@ -1036,49 +672,20 @@ 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 pdpb.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:"-"` + 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 pdpb.OperatorStatus `protobuf:"varint,4,opt,name=status,proto3,enum=pdpb.OperatorStatus" json:"status,omitempty"` + Kind []byte `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` } func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } func (*GetOperatorResponse) ProtoMessage() {} func (*GetOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4bfd49510230d67, []int{13} -} -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) + return fileDescriptorSchedulingpb, []int{13} } -var xxx_messageInfo_GetOperatorResponse proto.InternalMessageInfo - func (m *GetOperatorResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -1115,46 +722,17 @@ func (m *GetOperatorResponse) GetKind() []byte { } 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:"-"` + 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"` } 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_b4bfd49510230d67, []int{14} -} -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 - } + return fileDescriptorSchedulingpb, []int{14} } -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) -} - -var xxx_messageInfo_AskBatchSplitRequest proto.InternalMessageInfo func (m *AskBatchSplitRequest) GetHeader() *RequestHeader { if m != nil { @@ -1178,46 +756,17 @@ func (m *AskBatchSplitRequest) GetSplitCount() uint32 { } type AskBatchSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Ids []*pdpb.SplitID `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Ids []*pdpb.SplitID `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"` } 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_b4bfd49510230d67, []int{15} -} -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) + return fileDescriptorSchedulingpb, []int{15} } -var xxx_messageInfo_AskBatchSplitResponse proto.InternalMessageInfo - func (m *AskBatchSplitResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header @@ -1233,7 +782,6 @@ func (m *AskBatchSplitResponse) GetIds() []*pdpb.SplitID { } 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") @@ -1250,98 +798,7 @@ func init() { proto.RegisterType((*GetOperatorResponse)(nil), "schedulingpb.GetOperatorResponse") proto.RegisterType((*AskBatchSplitRequest)(nil), "schedulingpb.AskBatchSplitRequest") proto.RegisterType((*AskBatchSplitResponse)(nil), "schedulingpb.AskBatchSplitResponse") -} - -func init() { proto.RegisterFile("schedulingpb.proto", fileDescriptor_b4bfd49510230d67) } - -var fileDescriptor_b4bfd49510230d67 = []byte{ - // 1366 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xc6, 0x1f, 0x8d, 0xdf, 0xae, 0x3f, 0x3a, 0x71, 0x53, 0xcb, 0xa1, 0x69, 0xb2, 0x2d, - 0x25, 0xe5, 0xc3, 0x05, 0xb7, 0x42, 0x5c, 0x38, 0xb8, 0x89, 0x45, 0xad, 0xa4, 0x49, 0x18, 0x3b, - 0x89, 0xa8, 0x84, 0x56, 0x1b, 0xef, 0xd4, 0x5e, 0xc5, 0xde, 0xdd, 0xce, 0x8c, 0x13, 0x5c, 0x0e, - 0xdc, 0x39, 0x73, 0xe0, 0x00, 0x77, 0xfe, 0x07, 0x24, 0xce, 0x1c, 0x90, 0xe0, 0xc8, 0x11, 0x95, - 0x7f, 0x04, 0xcd, 0x87, 0x1d, 0xef, 0x26, 0x4a, 0x91, 0x02, 0x3d, 0x65, 0xe6, 0xbd, 0xdf, 0x7b, - 0x33, 0xef, 0xf7, 0x7e, 0xf3, 0xbc, 0x01, 0xc4, 0xba, 0x7d, 0xe2, 0x8d, 0x06, 0x7e, 0xd0, 0x8b, - 0x8e, 0x6a, 0x11, 0x0d, 0x79, 0x88, 0xac, 0x59, 0x5b, 0x15, 0x22, 0x6f, 0xe2, 0xa9, 0x96, 0x7b, - 0x61, 0x2f, 0x94, 0xcb, 0x07, 0x62, 0xa5, 0xad, 0x45, 0x3a, 0x62, 0x5c, 0x2e, 0xb5, 0xc1, 0x1a, - 0x12, 0xee, 0x4e, 0x82, 0xec, 0x2d, 0xc8, 0x63, 0xf2, 0x62, 0x44, 0x18, 0x7f, 0x42, 0x5c, 0x8f, - 0x50, 0x74, 0x0b, 0xa0, 0x3b, 0x18, 0x31, 0x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64, - 0xaf, 0xe5, 0x01, 0x6d, 0x61, 0xc7, 0xca, 0x6d, 0x9f, 0xc2, 0x52, 0xf2, 0x54, 0xd5, 0x03, 0xf4, - 0x28, 0x71, 0xec, 0x5b, 0xc9, 0x63, 0x67, 0x7b, 0x35, 0x3d, 0xf7, 0x1d, 0x28, 0x4e, 0x7a, 0x76, - 0x42, 0x28, 0xf3, 0xc3, 0x40, 0x73, 0x57, 0xd0, 0xe6, 0x03, 0x65, 0xb5, 0x7f, 0x4f, 0xc3, 0x12, - 0x26, 0x3d, 0x3f, 0x0c, 0xfe, 0xab, 0x82, 0xb3, 0x54, 0xa6, 0xd3, 0x15, 0x17, 0x6a, 0x5a, 0xaa, - 0xea, 0x10, 0xac, 0xbd, 0xe8, 0x2e, 0x64, 0x07, 0x2a, 0x79, 0x4a, 0xe2, 0xac, 0x09, 0x6e, 0x8f, - 0x88, 0x6c, 0xca, 0x27, 0x3a, 0xca, 0x09, 0x1d, 0x56, 0xd2, 0xb2, 0x7f, 0x72, 0x8d, 0x6a, 0x00, - 0x5e, 0x78, 0x1a, 0x38, 0x11, 0x21, 0x94, 0x55, 0x32, 0xab, 0xa9, 0x75, 0xb3, 0x5e, 0x54, 0xbc, - 0x8a, 0x58, 0x45, 0x6b, 0x4e, 0x40, 0xc4, 0x96, 0xa1, 0x8f, 0x20, 0x1f, 0x91, 0xc0, 0xf3, 0x83, - 0x9e, 0x0e, 0xc9, 0xca, 0x90, 0xf8, 0x81, 0x96, 0x86, 0xa8, 0x90, 0x3b, 0x90, 0x3f, 0x1a, 0x73, - 0xc2, 0x9c, 0x53, 0xea, 0x73, 0x4e, 0x82, 0xca, 0x35, 0x79, 0xbe, 0x25, 0x8d, 0x87, 0xca, 0x26, - 0x9e, 0x85, 0x02, 0x51, 0xe2, 0x7a, 0x95, 0x05, 0xf5, 0x2c, 0xa4, 0x05, 0x13, 0xd7, 0x43, 0x6b, - 0x60, 0x1d, 0x93, 0xf1, 0x59, 0x8a, 0x9c, 0x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b1, 0x31, 0x7c, - 0x8e, 0x9d, 0x8b, 0x7e, 0x72, 0xce, 0xb1, 0x73, 0xe1, 0x24, 0xb7, 0xe7, 0x50, 0x07, 0xcc, 0x99, - 0xf7, 0x8c, 0x56, 0xe3, 0x61, 0xe7, 0x67, 0x4a, 0x75, 0xed, 0x12, 0xc4, 0x34, 0xeb, 0x33, 0xc8, - 0xc7, 0xe4, 0x8c, 0x12, 0xb5, 0x5e, 0xf4, 0x02, 0xab, 0x77, 0x2e, 0xc5, 0x4c, 0x72, 0x3f, 0xbe, - 0xf7, 0xe7, 0x4f, 0x0b, 0xc6, 0xaf, 0xaf, 0x56, 0x8c, 0x3f, 0x5e, 0xad, 0x18, 0x7f, 0xbd, 0x5a, - 0x31, 0xbe, 0xff, 0x7b, 0x65, 0x0e, 0x4a, 0x21, 0xed, 0xd5, 0xb8, 0x7f, 0x7c, 0x52, 0x3b, 0x3e, - 0x91, 0xff, 0x3c, 0x1e, 0x65, 0xe5, 0x9f, 0x87, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x51, 0x83, - 0x88, 0x0a, 0xa8, 0x0e, 0x00, 0x00, + proto.RegisterEnum("schedulingpb.ErrorType", ErrorType_name, ErrorType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1352,9 +809,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// 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. +// Client API for Scheduling service + type SchedulingClient interface { StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (Scheduling_RegionHeartbeatClient, error) @@ -1374,7 +830,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 := c.cc.Invoke(ctx, "/schedulingpb.Scheduling/StoreHeartbeat", in, out, opts...) + err := grpc.Invoke(ctx, "/schedulingpb.Scheduling/StoreHeartbeat", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1382,7 +838,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 := c.cc.NewStream(ctx, &_Scheduling_serviceDesc.Streams[0], "/schedulingpb.Scheduling/RegionHeartbeat", opts...) + stream, err := grpc.NewClientStream(ctx, &_Scheduling_serviceDesc.Streams[0], c.cc, "/schedulingpb.Scheduling/RegionHeartbeat", opts...) if err != nil { return nil, err } @@ -1414,7 +870,7 @@ func (x *schedulingRegionHeartbeatClient) Recv() (*RegionHeartbeatResponse, erro func (c *schedulingClient) SplitRegions(ctx context.Context, in *SplitRegionsRequest, opts ...grpc.CallOption) (*SplitRegionsResponse, error) { out := new(SplitRegionsResponse) - err := c.cc.Invoke(ctx, "/schedulingpb.Scheduling/SplitRegions", in, out, opts...) + err := grpc.Invoke(ctx, "/schedulingpb.Scheduling/SplitRegions", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1423,7 +879,7 @@ func (c *schedulingClient) SplitRegions(ctx context.Context, in *SplitRegionsReq func (c *schedulingClient) ScatterRegions(ctx context.Context, in *ScatterRegionsRequest, opts ...grpc.CallOption) (*ScatterRegionsResponse, error) { out := new(ScatterRegionsResponse) - err := c.cc.Invoke(ctx, "/schedulingpb.Scheduling/ScatterRegions", in, out, opts...) + err := grpc.Invoke(ctx, "/schedulingpb.Scheduling/ScatterRegions", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1432,7 +888,7 @@ func (c *schedulingClient) ScatterRegions(ctx context.Context, in *ScatterRegion func (c *schedulingClient) GetOperator(ctx context.Context, in *GetOperatorRequest, opts ...grpc.CallOption) (*GetOperatorResponse, error) { out := new(GetOperatorResponse) - err := c.cc.Invoke(ctx, "/schedulingpb.Scheduling/GetOperator", in, out, opts...) + err := grpc.Invoke(ctx, "/schedulingpb.Scheduling/GetOperator", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1441,14 +897,15 @@ func (c *schedulingClient) GetOperator(ctx context.Context, in *GetOperatorReque func (c *schedulingClient) AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) { out := new(AskBatchSplitResponse) - err := c.cc.Invoke(ctx, "/schedulingpb.Scheduling/AskBatchSplit", in, out, opts...) + err := grpc.Invoke(ctx, "/schedulingpb.Scheduling/AskBatchSplit", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// SchedulingServer is the server API for Scheduling service. +// Server API for Scheduling service + type SchedulingServer interface { StoreHeartbeat(context.Context, *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) RegionHeartbeat(Scheduling_RegionHeartbeatServer) error @@ -1458,29 +915,6 @@ type SchedulingServer interface { AskBatchSplit(context.Context, *AskBatchSplitRequest) (*AskBatchSplitResponse, 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 (*UnimplementedSchedulingServer) SplitRegions(ctx context.Context, req *SplitRegionsRequest) (*SplitRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SplitRegions not implemented") -} -func (*UnimplementedSchedulingServer) ScatterRegions(ctx context.Context, req *ScatterRegionsRequest) (*ScatterRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScatterRegions not implemented") -} -func (*UnimplementedSchedulingServer) GetOperator(ctx context.Context, req *GetOperatorRequest) (*GetOperatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOperator not implemented") -} -func (*UnimplementedSchedulingServer) AskBatchSplit(ctx context.Context, req *AskBatchSplitRequest) (*AskBatchSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AskBatchSplit not implemented") -} - func RegisterSchedulingServer(s *grpc.Server, srv SchedulingServer) { s.RegisterService(&_Scheduling_serviceDesc, srv) } @@ -1640,7 +1074,7 @@ var _Scheduling_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 } @@ -1648,36 +1082,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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.ClusterId)) } if m.SenderId != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SenderId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SenderId)) } - if m.ClusterId != 0 { - i = encodeVarintSchedulingpb(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 } @@ -1685,43 +1110,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 = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) - } - i-- 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 + } + i += n1 } - if m.ClusterId != 0 { - i = encodeVarintSchedulingpb(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 } @@ -1729,38 +1143,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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.Type)) } if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Message))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Message))) + i += copy(dAtA[i:], m.Message) } - if m.Type != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - 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 } @@ -1768,47 +1172,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 = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.ListenUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + 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 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Id)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Id)) } - 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 + 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 *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 } @@ -1816,50 +1216,37 @@ 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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n2, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } 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 - } - 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++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Stats.Size())) + n3, err := m.Stats.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 *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 } @@ -1867,45 +1254,33 @@ 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.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 len(m.ClusterVersion) > 0 { - i -= len(m.ClusterVersion) - copy(dAtA[i:], m.ClusterVersion) - i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.ClusterVersion))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.ClusterVersion))) + i += copy(dAtA[i:], m.ClusterVersion) } - 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 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 } @@ -1913,149 +1288,126 @@ 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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - if m.Interval != nil { - { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + 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 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 err != nil { return 0, err } - i -= size - i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x72 } - if m.QueryStats != nil { - { - size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + 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 err != nil { return 0, err } - i -= size - i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x6a - } - if m.ApproximateKeys != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateKeys)) - i-- - dAtA[i] = 0x60 } - 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 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysWritten)) - i-- - dAtA[i] = 0x48 + if m.BytesWritten != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesWritten)) } if m.BytesRead != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesRead)) - i-- dAtA[i] = 0x40 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesRead)) } - if m.BytesWritten != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x38 - } - 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.KeysWritten != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysWritten)) } - 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 - } + if m.KeysRead != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysRead)) } - if m.Term != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x20 + if m.ApproximateSize != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateSize)) } - 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.ApproximateKeys != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateKeys)) } - 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)) + 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 } - i-- - dAtA[i] = 0x12 + i += n8 } - 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)) + 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 } - i-- - dAtA[i] = 0xa + i += n9 } - 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 } @@ -2063,139 +1415,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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + 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-- - dAtA[i] = 0x52 + i += n10 } - 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)) + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RegionId)) + } + 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 } - i-- - dAtA[i] = 0x4a + i += n11 } - 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)) + 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 } - i-- - dAtA[i] = 0x42 + i += n12 } - 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)) + 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 } - i-- - dAtA[i] = 0x3a + i += n13 } if m.TransferLeader != nil { - { - size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 - } - 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++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.TransferLeader.Size())) + n14, err := m.TransferLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n14 } - 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)) + 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 } - i-- - dAtA[i] = 0x22 + i += n15 } - 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)) + 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 } - i-- - dAtA[i] = 0x1a + i += n16 } - if m.RegionId != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 + 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 + } + i += n17 } - 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)) + 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 } - i-- - dAtA[i] = 0xa + i += n18 } - return len(dAtA) - i, nil + return i, nil } func (m *ScatterRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2203,78 +1528,65 @@ func (m *ScatterRegionsRequest) Marshal() (dAtA []byte, err error) { } func (m *ScatterRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScatterRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = 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 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n19, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x28 + i += n19 } - if m.RetryLimit != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x20 + if len(m.Group) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Group))) + i += copy(dAtA[i:], m.Group) } if len(m.RegionsId) > 0 { - dAtA20 := make([]byte, len(m.RegionsId)*10) - var j19 int + dAtA21 := make([]byte, len(m.RegionsId)*10) + var j20 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) + dAtA21[j20] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j19++ + j20++ } - dAtA20[j19] = uint8(num) - j19++ + dAtA21[j20] = uint8(num) + j20++ } - i -= j19 - copy(dAtA[i:], dAtA20[:j19]) - i = encodeVarintSchedulingpb(dAtA, i, uint64(j19)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(j20)) + i += copy(dAtA[i:], dAtA21[:j20]) } - if len(m.Group) > 0 { - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x12 + if m.RetryLimit != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + if m.SkipStoreLimit { + dAtA[i] = 0x28 + 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 *ScatterRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2282,43 +1594,32 @@ func (m *ScatterRegionsResponse) Marshal() (dAtA []byte, err error) { } func (m *ScatterRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScatterRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i 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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n22, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } if m.FinishedPercentage != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.FinishedPercentage)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) - } - 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 } @@ -2326,52 +1627,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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n23, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } 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 = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) - i-- + for _, b := range m.SplitKeys { dAtA[i] = 0x12 + i++ + i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.RetryLimit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSchedulingpb(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 } @@ -2379,61 +1668,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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n24, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 + } + if m.FinishedPercentage != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.FinishedPercentage)) } if len(m.RegionsId) > 0 { - dAtA25 := make([]byte, len(m.RegionsId)*10) - var j24 int + dAtA26 := make([]byte, len(m.RegionsId)*10) + var j25 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA25[j24] = uint8(uint64(num)&0x7f | 0x80) + dAtA26[j25] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j24++ + j25++ } - dAtA25[j24] = uint8(num) - j24++ + dAtA26[j25] = uint8(num) + j25++ } - i -= j24 - copy(dAtA[i:], dAtA25[:j24]) - i = encodeVarintSchedulingpb(dAtA, i, uint64(j24)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(j25)) + i += copy(dAtA[i:], dAtA26[:j25]) } - if m.FinishedPercentage != 0 { - i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) - } - 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 } @@ -2441,43 +1718,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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n27, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 } if m.RegionId != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(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 } @@ -2485,62 +1751,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 = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x2a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n28, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } - if m.Status != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x20 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RegionId)) } if len(m.Desc) > 0 { - i -= len(m.Desc) - copy(dAtA[i:], m.Desc) - i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Desc))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Desc))) + i += copy(dAtA[i:], m.Desc) } - if m.RegionId != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 + if m.Status != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Kind) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) } - 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 } @@ -2548,55 +1801,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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.SplitCount)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n29, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 } 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++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Region.Size())) + n30, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n30 } - return len(dAtA) - i, nil + if m.SplitCount != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SplitCount)) + } + 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 } @@ -2604,63 +1844,45 @@ 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 = encodeVarintSchedulingpb(dAtA, i, uint64(m.Header.Size())) + n31, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 } 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 = encodeVarintSchedulingpb(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 = encodeVarintSchedulingpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintSchedulingpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + return 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 base + return offset + 1 } func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -2669,16 +1891,10 @@ 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 { @@ -2688,16 +1904,10 @@ 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 { @@ -2707,16 +1917,10 @@ 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) @@ -2732,16 +1936,10 @@ 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 { @@ -2752,16 +1950,10 @@ 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 { @@ -2772,16 +1964,10 @@ 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 { @@ -2837,16 +2023,10 @@ 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 { @@ -2888,16 +2068,10 @@ 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 (m *ScatterRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2921,16 +2095,10 @@ func (m *ScatterRegionsRequest) Size() (n int) { if m.SkipStoreLimit { n += 2 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func (m *ScatterRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2940,16 +2108,10 @@ func (m *ScatterRegionsResponse) Size() (n int) { if m.FinishedPercentage != 0 { n += 1 + sovSchedulingpb(uint64(m.FinishedPercentage)) } - 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 { @@ -2965,16 +2127,10 @@ func (m *SplitRegionsRequest) Size() (n int) { if m.RetryLimit != 0 { n += 1 + sovSchedulingpb(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 { @@ -2991,16 +2147,10 @@ func (m *SplitRegionsResponse) Size() (n int) { } n += 1 + sovSchedulingpb(uint64(l)) + 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 { @@ -3010,16 +2160,10 @@ func (m *GetOperatorRequest) Size() (n int) { if m.RegionId != 0 { n += 1 + sovSchedulingpb(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 { @@ -3040,16 +2184,10 @@ func (m *GetOperatorResponse) 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 *AskBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -3063,16 +2201,10 @@ func (m *AskBatchSplitRequest) Size() (n int) { if m.SplitCount != 0 { n += 1 + sovSchedulingpb(uint64(m.SplitCount)) } - 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 { @@ -3085,14 +2217,18 @@ func (m *AskBatchSplitResponse) Size() (n int) { n += 1 + l + sovSchedulingpb(uint64(l)) } } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } return n } func sovSchedulingpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozSchedulingpb(x uint64) (n int) { return sovSchedulingpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -3112,7 +2248,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 } @@ -3140,7 +2276,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 } @@ -3159,7 +2295,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 } @@ -3170,13 +2306,12 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3201,7 +2336,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 } @@ -3229,7 +2364,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 } @@ -3248,7 +2383,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 } @@ -3257,9 +2392,6 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3276,13 +2408,12 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3307,7 +2438,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 } @@ -3335,7 +2466,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 } @@ -3354,7 +2485,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 } @@ -3364,9 +2495,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3378,13 +2506,12 @@ func (m *Error) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3409,7 +2536,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 } @@ -3437,7 +2564,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 } @@ -3447,9 +2574,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3469,7 +2593,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 } @@ -3488,7 +2612,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 } @@ -3498,9 +2622,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3512,13 +2633,12 @@ func (m *Participant) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3543,7 +2663,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 } @@ -3571,7 +2691,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 } @@ -3580,9 +2700,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3607,7 +2724,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 } @@ -3616,9 +2733,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3635,13 +2749,12 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3666,7 +2779,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 } @@ -3694,7 +2807,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 } @@ -3703,9 +2816,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3730,7 +2840,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 } @@ -3740,9 +2850,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3754,13 +2861,12 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -3785,7 +2891,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 } @@ -3813,7 +2919,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 } @@ -3822,9 +2928,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3849,7 +2952,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 } @@ -3858,9 +2961,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3885,7 +2985,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 } @@ -3894,9 +2994,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3921,7 +3018,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 } @@ -3940,7 +3037,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 } @@ -3949,9 +3046,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3974,7 +3068,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 } @@ -3983,9 +3077,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4008,7 +3099,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 } @@ -4027,7 +3118,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 } @@ -4046,7 +3137,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 } @@ -4065,7 +3156,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 } @@ -4084,7 +3175,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 } @@ -4103,7 +3194,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 } @@ -4122,7 +3213,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 } @@ -4131,9 +3222,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4158,7 +3246,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 } @@ -4167,9 +3255,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4186,13 +3271,12 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4217,7 +3301,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 } @@ -4245,7 +3329,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 } @@ -4254,9 +3338,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4281,7 +3362,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 } @@ -4300,7 +3381,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 } @@ -4309,9 +3390,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4336,7 +3414,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 } @@ -4345,9 +3423,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4372,7 +3447,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 } @@ -4381,9 +3456,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4408,7 +3480,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 } @@ -4417,9 +3489,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4444,7 +3513,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 } @@ -4453,9 +3522,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4480,7 +3546,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 } @@ -4489,9 +3555,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4516,7 +3579,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 } @@ -4525,9 +3588,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4552,7 +3612,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 } @@ -4561,9 +3621,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4580,13 +3637,12 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4611,7 +3667,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4639,7 +3695,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4648,9 +3704,6 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4675,7 +3728,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4685,9 +3738,6 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4705,7 +3755,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4722,7 +3772,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= int(b&0x7F) << shift + packedLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4731,23 +3781,9 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } 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 { @@ -4759,7 +3795,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint64(b&0x7F) << shift + v |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4783,7 +3819,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RetryLimit |= uint64(b&0x7F) << shift + m.RetryLimit |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4802,7 +3838,7 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4814,13 +3850,12 @@ func (m *ScatterRegionsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4845,7 +3880,7 @@ func (m *ScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4873,7 +3908,7 @@ func (m *ScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -4882,9 +3917,6 @@ func (m *ScatterRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4909,7 +3941,7 @@ func (m *ScatterRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FinishedPercentage |= uint64(b&0x7F) << shift + m.FinishedPercentage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -4920,13 +3952,12 @@ func (m *ScatterRegionsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -4951,7 +3982,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 } @@ -4979,7 +4010,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 } @@ -4988,9 +4019,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5015,7 +4043,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 } @@ -5024,9 +4052,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5047,7 +4072,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 } @@ -5058,13 +4083,12 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5089,7 +4113,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 } @@ -5117,7 +4141,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 } @@ -5126,9 +4150,6 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5153,7 +4174,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 } @@ -5170,7 +4191,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 } @@ -5187,7 +4208,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 } @@ -5196,23 +4217,9 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } 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 { @@ -5224,7 +4231,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 } @@ -5240,13 +4247,12 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5271,7 +4277,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 } @@ -5299,7 +4305,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 } @@ -5308,9 +4314,6 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5335,7 +4338,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 } @@ -5346,13 +4349,12 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5377,7 +4379,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 } @@ -5405,7 +4407,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 } @@ -5414,9 +4416,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5441,7 +4440,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 } @@ -5460,7 +4459,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 } @@ -5469,9 +4468,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5494,7 +4490,7 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= pdpb.OperatorStatus(b&0x7F) << shift + m.Status |= (pdpb.OperatorStatus(b) & 0x7F) << shift if b < 0x80 { break } @@ -5513,7 +4509,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 } @@ -5522,9 +4518,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5539,13 +4532,12 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5570,7 +4562,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 } @@ -5598,7 +4590,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 } @@ -5607,9 +4599,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5634,7 +4623,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 } @@ -5643,9 +4632,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5670,7 +4656,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 } @@ -5681,13 +4667,12 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5712,7 +4697,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 } @@ -5740,7 +4725,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 } @@ -5749,9 +4734,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5776,7 +4758,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 } @@ -5785,9 +4767,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSchedulingpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchedulingpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5802,13 +4781,12 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthSchedulingpb } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } @@ -5821,7 +4799,6 @@ func (m *AskBatchSplitResponse) 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 { @@ -5853,8 +4830,10 @@ 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 { @@ -5871,34 +4850,145 @@ func skipSchedulingpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthSchedulingpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupSchedulingpb + 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 } - 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, ErrInvalidLengthSchedulingpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthSchedulingpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowSchedulingpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupSchedulingpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthSchedulingpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchedulingpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("schedulingpb.proto", fileDescriptorSchedulingpb) } + +var fileDescriptorSchedulingpb = []byte{ + // 1366 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xc6, 0x1f, 0x8d, 0xdf, 0xae, 0x3f, 0x3a, 0x71, 0x53, 0xcb, 0xa1, 0x69, 0xb2, 0x2d, + 0x25, 0xe5, 0xc3, 0x05, 0xb7, 0x42, 0x5c, 0x38, 0xb8, 0x89, 0x45, 0xad, 0xa4, 0x49, 0x18, 0x3b, + 0x89, 0xa8, 0x84, 0x56, 0x1b, 0xef, 0xd4, 0x5e, 0xc5, 0xde, 0xdd, 0xce, 0x8c, 0x13, 0x5c, 0x0e, + 0xdc, 0x39, 0x73, 0xe0, 0x00, 0x77, 0xfe, 0x07, 0x24, 0xce, 0x1c, 0x90, 0xe0, 0xc8, 0x11, 0x95, + 0x7f, 0x04, 0xcd, 0x87, 0x1d, 0xef, 0x26, 0x4a, 0x91, 0x02, 0x3d, 0x65, 0xe6, 0xbd, 0xdf, 0x7b, + 0x33, 0xef, 0xf7, 0x7e, 0xf3, 0xbc, 0x01, 0xc4, 0xba, 0x7d, 0xe2, 0x8d, 0x06, 0x7e, 0xd0, 0x8b, + 0x8e, 0x6a, 0x11, 0x0d, 0x79, 0x88, 0xac, 0x59, 0x5b, 0x15, 0x22, 0x6f, 0xe2, 0xa9, 0x96, 0x7b, + 0x61, 0x2f, 0x94, 0xcb, 0x07, 0x62, 0xa5, 0xad, 0x45, 0x3a, 0x62, 0x5c, 0x2e, 0xb5, 0xc1, 0x1a, + 0x12, 0xee, 0x4e, 0x82, 0xec, 0x2d, 0xc8, 0x63, 0xf2, 0x62, 0x44, 0x18, 0x7f, 0x42, 0x5c, 0x8f, + 0x50, 0x74, 0x0b, 0xa0, 0x3b, 0x18, 0x31, 0x4e, 0xa8, 0xe3, 0x7b, 0x15, 0x63, 0xd5, 0x58, 0x4f, + 0xe3, 0x9c, 0xb6, 0xb4, 0x3c, 0xb4, 0x0c, 0x39, 0x46, 0x02, 0x4f, 0x79, 0xe7, 0xa5, 0x77, 0x41, + 0x19, 0x5a, 0x9e, 0xfd, 0x0c, 0x0a, 0x98, 0xb0, 0x28, 0x0c, 0x18, 0xf9, 0x77, 0xd9, 0xee, 0x43, + 0x86, 0x50, 0x1a, 0x52, 0x99, 0xc9, 0xac, 0x2f, 0xd6, 0x62, 0x05, 0x37, 0x85, 0x0b, 0x2b, 0x84, + 0xbd, 0x03, 0x19, 0xb9, 0x47, 0xef, 0x41, 0x9a, 0x8f, 0x23, 0x22, 0x93, 0x15, 0xea, 0x37, 0x2f, + 0x08, 0xe9, 0x8c, 0x23, 0x82, 0x25, 0x08, 0x55, 0xe0, 0xda, 0x90, 0x30, 0xe6, 0xf6, 0x88, 0x3c, + 0x22, 0x87, 0x27, 0x5b, 0x1b, 0x83, 0xb9, 0xe7, 0x52, 0xee, 0x77, 0xfd, 0xc8, 0x0d, 0x38, 0x42, + 0x90, 0x0e, 0xdc, 0xa1, 0xca, 0x9a, 0xc3, 0x72, 0x8d, 0x0a, 0x30, 0x3f, 0x2d, 0x72, 0xde, 0xf7, + 0xd0, 0x6d, 0x30, 0x07, 0x3e, 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91, 0xc0, 0xf3, 0x83, + 0x9e, 0x0e, 0xc9, 0xca, 0x90, 0xf8, 0x81, 0x96, 0x86, 0xa8, 0x90, 0x3b, 0x90, 0x3f, 0x1a, 0x73, + 0xc2, 0x9c, 0x53, 0xea, 0x73, 0x4e, 0x82, 0xca, 0x35, 0x79, 0xbe, 0x25, 0x8d, 0x87, 0xca, 0x26, + 0x9e, 0x85, 0x02, 0x51, 0xe2, 0x7a, 0x95, 0x05, 0xf5, 0x2c, 0xa4, 0x05, 0x13, 0xd7, 0x43, 0x6b, + 0x60, 0x1d, 0x93, 0xf1, 0x59, 0x8a, 0x9c, 0x04, 0x98, 0xc2, 0x36, 0xc9, 0xb0, 0x0c, 0x39, 0x09, + 0x91, 0x09, 0x40, 0xbd, 0x43, 0x61, 0x90, 0xf1, 0xf7, 0xa1, 0xe4, 0x46, 0x11, 0x0d, 0xbf, 0xf2, + 0x87, 0x2e, 0x27, 0x0e, 0xf3, 0x5f, 0x92, 0x8a, 0x29, 0x31, 0xc5, 0x19, 0x7b, 0xdb, 0x7f, 0x49, + 0x92, 0x50, 0x91, 0xa2, 0x62, 0x9d, 0x83, 0x6e, 0x91, 0xb1, 0x20, 0xc3, 0x7c, 0x31, 0x22, 0x74, + 0xec, 0x28, 0x55, 0xe6, 0x67, 0x55, 0xf9, 0xb9, 0x70, 0x28, 0xfa, 0xe0, 0xc5, 0x74, 0x8d, 0x6a, + 0xb0, 0xe0, 0x07, 0x9c, 0xd0, 0x13, 0x77, 0x50, 0x29, 0x48, 0x3c, 0x52, 0xf8, 0x8e, 0x3f, 0x24, + 0x2d, 0xed, 0xc1, 0x53, 0x8c, 0xfd, 0x63, 0x1a, 0x6e, 0x9e, 0x53, 0xd4, 0x95, 0xc4, 0xbc, 0x0c, + 0x39, 0xa5, 0x9a, 0x99, 0x79, 0xa5, 0x0c, 0x2d, 0x0f, 0x7d, 0x0c, 0x96, 0x76, 0x92, 0x28, 0xec, + 0xf6, 0xb5, 0x9c, 0x16, 0x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d1, 0x9d, 0x78, 0x91, 0x17, 0x7e, 0xb6, 0x56, 0xef, 0x5e, 0x0e, 0x52, 0xbc, + 0xd8, 0x73, 0xc8, 0x83, 0x62, 0xe2, 0x57, 0x1b, 0xdd, 0x4d, 0x92, 0x78, 0xd1, 0x67, 0x62, 0xf5, + 0xed, 0xd7, 0xa0, 0x26, 0x27, 0xac, 0x1b, 0x1f, 0x1a, 0xe8, 0x10, 0xac, 0xd9, 0xf1, 0x80, 0xd6, + 0x12, 0xb7, 0x3b, 0x3f, 0xc7, 0xaa, 0xf6, 0x65, 0x90, 0xe9, 0xf5, 0x05, 0x3b, 0xb1, 0x31, 0x7c, + 0x8e, 0x9d, 0x8b, 0x7e, 0x72, 0xce, 0xb1, 0x73, 0xe1, 0x24, 0xb7, 0xe7, 0x50, 0x07, 0xcc, 0x99, + 0xf7, 0x8c, 0x56, 0xe3, 0x61, 0xe7, 0x67, 0x4a, 0x75, 0xed, 0x12, 0xc4, 0x34, 0xeb, 0x33, 0xc8, + 0xc7, 0xe4, 0x8c, 0x12, 0xb5, 0x5e, 0xf4, 0x02, 0xab, 0x77, 0x2e, 0xc5, 0x4c, 0x72, 0x3f, 0xbe, + 0xf7, 0xe7, 0x4f, 0x0b, 0xc6, 0xaf, 0xaf, 0x56, 0x8c, 0x3f, 0x5e, 0xad, 0x18, 0x7f, 0xbd, 0x5a, + 0x31, 0xbe, 0xff, 0x7b, 0x65, 0x0e, 0x4a, 0x21, 0xed, 0xd5, 0xb8, 0x7f, 0x7c, 0x52, 0x3b, 0x3e, + 0x91, 0xff, 0x3c, 0x1e, 0x65, 0xe5, 0x9f, 0x87, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x51, 0x83, + 0x88, 0x0a, 0xa8, 0x0e, 0x00, 0x00, +} diff --git a/pkg/tikvpb/tikvpb.pb.go b/pkg/tikvpb/tikvpb.pb.go index f05fc0802..02732a796 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 { @@ -124,44 +112,15 @@ type BatchCommandsRequest_Request struct { // *BatchCommandsRequest_Request_BufferBatchGet // *BatchCommandsRequest_Request_GetHealthFeedback // *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() @@ -170,106 +129,106 @@ 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_Flush struct { - Flush *kvrpcpb.FlushRequest `protobuf:"bytes,37,opt,name=Flush,proto3,oneof" json:"Flush,omitempty"` + Flush *kvrpcpb.FlushRequest `protobuf:"bytes,37,opt,name=Flush,oneof"` } type BatchCommandsRequest_Request_BufferBatchGet struct { - BufferBatchGet *kvrpcpb.BufferBatchGetRequest `protobuf:"bytes,38,opt,name=BufferBatchGet,proto3,oneof" json:"BufferBatchGet,omitempty"` + BufferBatchGet *kvrpcpb.BufferBatchGetRequest `protobuf:"bytes,38,opt,name=BufferBatchGet,oneof"` } type BatchCommandsRequest_Request_GetHealthFeedback struct { - GetHealthFeedback *kvrpcpb.GetHealthFeedbackRequest `protobuf:"bytes,39,opt,name=GetHealthFeedback,proto3,oneof" json:"GetHealthFeedback,omitempty"` + GetHealthFeedback *kvrpcpb.GetHealthFeedbackRequest `protobuf:"bytes,39,opt,name=GetHealthFeedback,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() {} @@ -552,9 +511,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), @@ -592,49 +551,660 @@ 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"` - HealthFeedback *kvrpcpb.HealthFeedback `protobuf:"bytes,4,opt,name=health_feedback,json=healthFeedback,proto3" json:"health_feedback,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 + } + 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_Flush: + _ = b.EncodeVarint(37<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Flush); err != nil { + return err + } + case *BatchCommandsRequest_Request_BufferBatchGet: + _ = b.EncodeVarint(38<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BufferBatchGet); err != nil { + return err } - return b[:n], nil + case *BatchCommandsRequest_Request_GetHealthFeedback: + _ = b.EncodeVarint(39<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GetHealthFeedback); 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 37: // cmd.Flush + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.FlushRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_Flush{msg} + return true, err + case 38: // cmd.BufferBatchGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.BufferBatchGetRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_BufferBatchGet{msg} + return true, err + case 39: // cmd.GetHealthFeedback + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.GetHealthFeedbackRequest) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsRequest_Request_GetHealthFeedback{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_Flush: + s := proto.Size(x.Flush) + n += proto.SizeVarint(37<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_BufferBatchGet: + s := proto.Size(x.BufferBatchGet) + n += proto.SizeVarint(38<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_GetHealthFeedback: + s := proto.Size(x.GetHealthFeedback) + n += proto.SizeVarint(39<<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"` + HealthFeedback *kvrpcpb.HealthFeedback `protobuf:"bytes,4,opt,name=health_feedback,json=healthFeedback" json:"health_feedback,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 { @@ -700,45 +1270,16 @@ type BatchCommandsResponse_Response struct { // *BatchCommandsResponse_Response_BufferBatchGet // *BatchCommandsResponse_Response_GetHealthFeedback // *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) @@ -746,106 +1287,106 @@ 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_Flush struct { - Flush *kvrpcpb.FlushResponse `protobuf:"bytes,37,opt,name=Flush,proto3,oneof" json:"Flush,omitempty"` + Flush *kvrpcpb.FlushResponse `protobuf:"bytes,37,opt,name=Flush,oneof"` } type BatchCommandsResponse_Response_BufferBatchGet struct { - BufferBatchGet *kvrpcpb.BufferBatchGetResponse `protobuf:"bytes,38,opt,name=BufferBatchGet,proto3,oneof" json:"BufferBatchGet,omitempty"` + BufferBatchGet *kvrpcpb.BufferBatchGetResponse `protobuf:"bytes,38,opt,name=BufferBatchGet,oneof"` } type BatchCommandsResponse_Response_GetHealthFeedback struct { - GetHealthFeedback *kvrpcpb.GetHealthFeedbackResponse `protobuf:"bytes,39,opt,name=GetHealthFeedback,proto3,oneof" json:"GetHealthFeedback,omitempty"` + GetHealthFeedback *kvrpcpb.GetHealthFeedbackResponse `protobuf:"bytes,39,opt,name=GetHealthFeedback,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() {} @@ -1129,9 +1670,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), @@ -1169,45 +1710,656 @@ 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 } - return b[:n], nil + 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_Flush: + _ = b.EncodeVarint(37<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Flush); err != nil { + return err + } + case *BatchCommandsResponse_Response_BufferBatchGet: + _ = b.EncodeVarint(38<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BufferBatchGet); err != nil { + return err + } + case *BatchCommandsResponse_Response_GetHealthFeedback: + _ = b.EncodeVarint(39<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GetHealthFeedback); 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 37: // cmd.Flush + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.FlushResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_Flush{msg} + return true, err + case 38: // cmd.BufferBatchGet + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.BufferBatchGetResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_BufferBatchGet{msg} + return true, err + case 39: // cmd.GetHealthFeedback + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(kvrpcpb.GetHealthFeedbackResponse) + err := b.DecodeMessage(msg) + m.Cmd = &BatchCommandsResponse_Response_GetHealthFeedback{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_Flush: + s := proto.Size(x.Flush) + n += proto.SizeVarint(37<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_BufferBatchGet: + s := proto.Size(x.BufferBatchGet) + n += proto.SizeVarint(38<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_GetHealthFeedback: + s := proto.Size(x.GetHealthFeedback) + n += proto.SizeVarint(39<<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 { @@ -1220,44 +2372,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 { @@ -1275,45 +2396,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 @@ -1331,192 +2423,16 @@ func init() { proto.RegisterType((*BatchCommandsEmptyResponse)(nil), "tikvpb.BatchCommandsEmptyResponse") } -func init() { proto.RegisterFile("tikvpb.proto", fileDescriptor_274fe050f0c997b3) } - -var fileDescriptor_274fe050f0c997b3 = []byte{ - // 2703 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x9a, 0x4b, 0x57, 0x1b, 0xc9, - 0xf5, 0xc0, 0x5b, 0xb6, 0xcc, 0xa3, 0x18, 0x5e, 0x05, 0x98, 0xa6, 0x8d, 0xc1, 0x6e, 0x63, 0x9b, - 0x99, 0x39, 0x7f, 0xfe, 0xb6, 0xc7, 0x19, 0x67, 0x3c, 0x93, 0x09, 0x46, 0x98, 0xc7, 0x08, 0xce, - 0x28, 0x92, 0x3c, 0xe3, 0xe4, 0x24, 0x87, 0x53, 0x48, 0x85, 0x50, 0x90, 0xd4, 0x4a, 0x77, 0x49, - 0x58, 0xdf, 0x24, 0xab, 0x64, 0x91, 0x4d, 0xbe, 0x43, 0xf6, 0x39, 0x59, 0x66, 0x99, 0x65, 0x8e, - 0xf3, 0x41, 0x92, 0x53, 0xd5, 0xdd, 0xf5, 0xea, 0xaa, 0x16, 0xb3, 0xa2, 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3d, 0x30, 0x5b, 0x42, 0xbd, 0x06, 0xee, 0xa4, 0x7e, 0xee, - 0x32, 0xed, 0x78, 0x4c, 0xf6, 0xb2, 0x9a, 0x19, 0xe7, 0x3e, 0xea, 0xe0, 0xee, 0xdb, 0x88, 0xa0, - 0xf3, 0x4e, 0x3b, 0xa2, 0xd3, 0x29, 0x05, 0xbd, 0x1e, 0x6e, 0x90, 0x18, 0x5c, 0xa9, 0x91, 0x59, - 0x98, 0x3a, 0x86, 0x4c, 0xe7, 0xb4, 0x52, 0xd9, 0x47, 0x04, 0x55, 0x50, 0xe3, 0x0a, 0x13, 0x76, - 0xda, 0xbf, 0x04, 0x93, 0xc7, 0xd1, 0x9b, 0x4e, 0x7b, 0x88, 0xe1, 0x12, 0x53, 0x49, 0x7e, 0x13, - 0x5d, 0x07, 0x65, 0x50, 0x9a, 0xcd, 0x52, 0x15, 0xd3, 0xfa, 0x2d, 0x59, 0x51, 0x52, 0xe9, 0xae, - 0x33, 0xf5, 0x58, 0x22, 0x86, 0xc5, 0xae, 0x9b, 0xa5, 0xdc, 0xeb, 0x11, 0x98, 0x89, 0x6f, 0x0a, - 0x8c, 0x9a, 0x38, 0x94, 0x4e, 0x80, 0x34, 0x9a, 0x3d, 0x01, 0x8a, 0x30, 0xe9, 0xb6, 0x94, 0xc1, - 0xdc, 0x21, 0x26, 0x35, 0x12, 0x84, 0xb8, 0x86, 0x2e, 0x70, 0xbd, 0x26, 0x1f, 0x27, 0x31, 0x6a, - 0x38, 0x4e, 0xb2, 0x30, 0x71, 0x56, 0x07, 0xf3, 0x87, 0x98, 0xd0, 0xd4, 0xff, 0x23, 0x6a, 0x93, - 0xe3, 0xde, 0x45, 0x20, 0xb5, 0x38, 0x34, 0x49, 0xb6, 0xc5, 0x91, 0x51, 0x48, 0xbc, 0x7e, 0x03, - 0x26, 0x19, 0xae, 0x34, 0x08, 0x54, 0x6a, 0x6a, 0x3a, 0x62, 0x28, 0x76, 0x53, 0x41, 0x62, 0xfd, - 0x3b, 0x00, 0x25, 0xc7, 0x47, 0xed, 0x88, 0x04, 0xe1, 0x08, 0xfa, 0xa6, 0xa8, 0x89, 0x30, 0x7b, - 0x6b, 0x9a, 0x74, 0x12, 0xf7, 0xe7, 0x60, 0xe5, 0x10, 0x93, 0x7a, 0x9b, 0x95, 0x39, 0xb5, 0x51, - 0x44, 0x70, 0x97, 0xe5, 0x2e, 0x29, 0x42, 0x56, 0x98, 0x8d, 0x60, 0xd2, 0x91, 0x28, 0x15, 0x90, - 0x70, 0xf4, 0xa6, 0xd9, 0x4c, 0x6e, 0x64, 0xf5, 0x7f, 0xde, 0xea, 0x5c, 0x24, 0x12, 0x81, 0x5d, - 0x43, 0x62, 0x95, 0x59, 0x12, 0x8e, 0x4e, 0x51, 0x78, 0x95, 0xe0, 0xf8, 0xa3, 0xac, 0x95, 0x90, - 0x8a, 0x06, 0x49, 0xae, 0x12, 0xf7, 0xde, 0x03, 0x4b, 0xfc, 0x9c, 0xed, 0x33, 0x0b, 0x76, 0x9c, - 0x3f, 0xd5, 0xcc, 0x0d, 0x3a, 0xa2, 0x56, 0xbd, 0x81, 0xaa, 0x04, 0x78, 0x0b, 0x71, 0x32, 0x90, - 0x82, 0x3d, 0xd1, 0x3c, 0xe8, 0x0a, 0x69, 0xa4, 0xa7, 0x63, 0xf5, 0x78, 0x98, 0xdf, 0x80, 0x85, - 0x03, 0x4c, 0x0b, 0x11, 0x26, 0xac, 0xa0, 0x16, 0x8e, 0x32, 0x61, 0x74, 0x05, 0x71, 0x83, 0xa8, - 0x7a, 0x4c, 0x28, 0x65, 0x98, 0x73, 0x76, 0x78, 0x62, 0xc3, 0x52, 0xd0, 0xbb, 0x68, 0xb7, 0xe0, - 0x63, 0xcd, 0x44, 0x93, 0xa7, 0x9e, 0x9f, 0x8c, 0x53, 0x93, 0x01, 0x35, 0xdb, 0x71, 0x1e, 0xff, - 0x6f, 0x06, 0xde, 0x0d, 0xba, 0xd9, 0xbe, 0xb3, 0xf7, 0xe4, 0x5f, 0x7f, 0x9d, 0x2a, 0xfc, 0xe3, - 0xe3, 0x46, 0xe1, 0x9f, 0x1f, 0x37, 0x0a, 0xff, 0xfe, 0xb8, 0x51, 0xf8, 0xe3, 0x7f, 0x36, 0x1c, - 0xb0, 0x10, 0x84, 0x2d, 0x76, 0x8b, 0xec, 0x5c, 0x0d, 0xd9, 0x3f, 0x5e, 0x9e, 0x4f, 0xb0, 0x1f, - 0x5f, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x70, 0xb9, 0x21, 0x15, 0x2a, 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) @@ -1588,39 +2504,39 @@ 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) - /// Get health feedback info from the TiKV node. + // / Get health feedback info from the TiKV node. GetHealthFeedback(ctx context.Context, in *kvrpcpb.GetHealthFeedbackRequest, opts ...grpc.CallOption) (*kvrpcpb.GetHealthFeedbackResponse, error) } @@ -1634,7 +2550,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 } @@ -1643,7 +2559,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 } @@ -1652,7 +2568,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 } @@ -1661,7 +2577,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 } @@ -1670,7 +2586,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 } @@ -1679,7 +2595,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 } @@ -1688,7 +2604,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 } @@ -1697,7 +2613,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 } @@ -1706,7 +2622,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 } @@ -1715,7 +2631,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 } @@ -1724,7 +2640,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 } @@ -1733,7 +2649,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 } @@ -1742,7 +2658,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 } @@ -1751,7 +2667,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 } @@ -1760,7 +2676,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 } @@ -1769,7 +2685,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 } @@ -1778,7 +2694,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 } @@ -1787,7 +2703,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 } @@ -1796,7 +2712,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 } @@ -1805,7 +2721,7 @@ func (c *tikvClient) KvFlashbackToVersion(ctx context.Context, in *kvrpcpb.Flash func (c *tikvClient) KvFlush(ctx context.Context, in *kvrpcpb.FlushRequest, opts ...grpc.CallOption) (*kvrpcpb.FlushResponse, error) { out := new(kvrpcpb.FlushResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvFlush", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvFlush", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1814,7 +2730,7 @@ func (c *tikvClient) KvFlush(ctx context.Context, in *kvrpcpb.FlushRequest, opts func (c *tikvClient) KvBufferBatchGet(ctx context.Context, in *kvrpcpb.BufferBatchGetRequest, opts ...grpc.CallOption) (*kvrpcpb.BufferBatchGetResponse, error) { out := new(kvrpcpb.BufferBatchGetResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/KvBufferBatchGet", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/KvBufferBatchGet", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1823,7 +2739,7 @@ func (c *tikvClient) KvBufferBatchGet(ctx context.Context, in *kvrpcpb.BufferBat 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 } @@ -1832,7 +2748,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 } @@ -1841,7 +2757,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 } @@ -1850,7 +2766,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 } @@ -1859,7 +2775,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 } @@ -1868,7 +2784,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 } @@ -1877,7 +2793,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 } @@ -1886,7 +2802,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 } @@ -1895,7 +2811,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 } @@ -1904,7 +2820,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 } @@ -1913,7 +2829,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 } @@ -1922,7 +2838,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 } @@ -1931,7 +2847,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 } @@ -1940,7 +2856,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 } @@ -1949,7 +2865,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 } @@ -1958,7 +2874,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 } @@ -1967,7 +2883,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 } @@ -1976,7 +2892,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 } @@ -1984,7 +2900,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 } @@ -2016,7 +2932,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 } @@ -2049,7 +2965,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 } @@ -2057,7 +2973,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 } @@ -2091,7 +3007,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 } @@ -2125,7 +3041,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 } @@ -2159,7 +3075,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 } @@ -2191,7 +3107,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 } @@ -2200,7 +3116,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 } @@ -2209,7 +3125,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 } @@ -2218,7 +3134,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 } @@ -2226,7 +3142,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 } @@ -2258,7 +3174,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 } @@ -2267,7 +3183,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 } @@ -2275,7 +3191,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 } @@ -2308,7 +3224,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 } @@ -2317,7 +3233,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 } @@ -2326,7 +3242,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 } @@ -2335,7 +3251,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 } @@ -2344,7 +3260,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 } @@ -2353,7 +3269,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 } @@ -2362,7 +3278,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 } @@ -2371,7 +3287,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 } @@ -2380,7 +3296,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 } @@ -2389,7 +3305,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 } @@ -2398,7 +3314,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 } @@ -2407,7 +3323,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 } @@ -2415,7 +3331,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 } @@ -2448,7 +3364,7 @@ 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 } @@ -2457,14 +3373,15 @@ func (c *tikvClient) GetDisaggConfig(ctx context.Context, in *disaggregated.GetD func (c *tikvClient) GetHealthFeedback(ctx context.Context, in *kvrpcpb.GetHealthFeedbackRequest, opts ...grpc.CallOption) (*kvrpcpb.GetHealthFeedbackResponse, error) { out := new(kvrpcpb.GetHealthFeedbackResponse) - err := c.cc.Invoke(ctx, "/tikvpb.Tikv/GetHealthFeedback", in, out, opts...) + err := grpc.Invoke(ctx, "/tikvpb.Tikv/GetHealthFeedback", 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) @@ -2536,254 +3453,42 @@ 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) - /// Get health feedback info from the TiKV node. + // / Get health feedback info from the TiKV node. GetHealthFeedback(context.Context, *kvrpcpb.GetHealthFeedbackRequest) (*kvrpcpb.GetHealthFeedbackResponse, 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) KvFlush(ctx context.Context, req *kvrpcpb.FlushRequest) (*kvrpcpb.FlushResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvFlush not implemented") -} -func (*UnimplementedTikvServer) KvBufferBatchGet(ctx context.Context, req *kvrpcpb.BufferBatchGetRequest) (*kvrpcpb.BufferBatchGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvBufferBatchGet 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 (*UnimplementedTikvServer) GetHealthFeedback(ctx context.Context, req *kvrpcpb.GetHealthFeedbackRequest) (*kvrpcpb.GetHealthFeedbackResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetHealthFeedback not implemented") -} - func RegisterTikvServer(s *grpc.Server, srv TikvServer) { s.RegisterService(&_Tikv_serviceDesc, srv) } @@ -4382,7 +5087,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 } @@ -4390,18 +5095,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) @@ -4415,33 +5123,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 } @@ -4449,787 +5142,538 @@ 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_Flush) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Flush != nil { - { - size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0xaa + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Flush.Size())) + n34, err := m.Flush.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_BufferBatchGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_BufferBatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.BufferBatchGet != nil { - { - size, err := m.BufferBatchGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.BufferBatchGet.Size())) + n35, err := m.BufferBatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n35 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsRequest_Request_GetHealthFeedback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsRequest_Request_GetHealthFeedback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.GetHealthFeedback != nil { - { - size, err := m.GetHealthFeedback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0xba + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.GetHealthFeedback.Size())) + n36, err := m.GetHealthFeedback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 } - 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())) + n37, err := m.Empty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n37 } - 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 } @@ -5237,35 +5681,21 @@ 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.HealthFeedback != nil { - { - size, err := m.HealthFeedback.MarshalToSizedBuffer(dAtA[:i]) + 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 -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x22 - } - if m.TransportLayerLoad != 0 { - i = encodeVarintTikvpb(dAtA, i, uint64(m.TransportLayerLoad)) - i-- - dAtA[i] = 0x18 } if len(m.RequestIds) > 0 { dAtA39 := make([]byte, len(m.RequestIds)*10) @@ -5279,33 +5709,33 @@ func (m *BatchCommandsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA39[j38] = uint8(num) j38++ } - i -= j38 - copy(dAtA[i:], dAtA39[:j38]) - i = encodeVarintTikvpb(dAtA, i, uint64(j38)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(j38)) + i += copy(dAtA[i:], dAtA39[:j38]) } - 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)) + } + if m.HealthFeedback != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.HealthFeedback.Size())) + n40, err := m.HealthFeedback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n40 } - 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 } @@ -5313,787 +5743,538 @@ 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 - } + nn41, err := m.Cmd.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn41 } - 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())) + n42, err := m.Get.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 } - 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 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Scan.Size())) + n43, err := m.Scan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n43 } - return len(dAtA) - i, nil + return 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) + 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())) + n44, err := m.Prewrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n44 } - 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())) + n45, err := m.Commit.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 } - 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())) + n46, err := m.Import.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n46 } - 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())) + n47, err := m.Cleanup.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 } - 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())) + n48, err := m.BatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 } - 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())) + n49, err := m.BatchRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n49 } - 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())) + n50, err := m.ScanLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 } - 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())) + n51, err := m.ResolveLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n51 } - 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())) + n52, err := m.GC.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n52 } - 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())) + n53, err := m.DeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n53 } - 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())) + n54, err := m.RawGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 } - 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())) + n55, err := m.RawBatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n55 } - 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())) + n56, err := m.RawPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 } - 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())) + n57, err := m.RawBatchPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 } - 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())) + n58, err := m.RawDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n58 } - 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())) + n59, err := m.RawBatchDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 } - 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())) + n60, err := m.RawScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n60 } - 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())) + n61, err := m.RawDeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 } - 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())) + n62, err := m.RawBatchScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 } - 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())) + n63, err := m.Coprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 } - 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())) + n64, err := m.PessimisticLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n64 } - 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())) + n65, err := m.PessimisticRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 } - 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())) + n66, err := m.CheckTxnStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 } - 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())) + n67, err := m.TxnHeartBeat.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n67 } - 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())) + n68, err := m.CheckSecondaryLocks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n68 } - 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())) + n69, err := m.RawCoprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 } - 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())) + n70, err := m.FlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n70 } - 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())) + n71, err := m.PrepareFlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n71 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_Flush) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Flush != nil { - { - size, err := m.Flush.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *BatchCommandsResponse_Response_BufferBatchGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_BufferBatchGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.BufferBatchGet != nil { - { - size, err := m.BufferBatchGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- + i++ dAtA[i] = 0x2 - i-- + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Flush.Size())) + n72, err := m.Flush.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n72 + } + return i, nil +} +func (m *BatchCommandsResponse_Response_BufferBatchGet) MarshalTo(dAtA []byte) (int, error) { + i := 0 + if m.BufferBatchGet != nil { dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.BufferBatchGet.Size())) + n73, err := m.BufferBatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n73 } - return len(dAtA) - i, nil + return i, nil } func (m *BatchCommandsResponse_Response_GetHealthFeedback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchCommandsResponse_Response_GetHealthFeedback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.GetHealthFeedback != nil { - { - size, err := m.GetHealthFeedback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTikvpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- dAtA[i] = 0xba + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.GetHealthFeedback.Size())) + n74, err := m.GetHealthFeedback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n74 } - 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())) + n75, err := m.Empty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n75 } - 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 } @@ -6101,40 +6282,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 } @@ -6142,36 +6312,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 } @@ -6179,42 +6340,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 { @@ -6230,31 +6377,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 { @@ -6264,9 +6399,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 { @@ -6276,9 +6408,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 { @@ -6288,9 +6417,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 { @@ -6300,9 +6426,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 { @@ -6312,9 +6435,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 { @@ -6324,9 +6444,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 { @@ -6336,9 +6453,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 { @@ -6348,9 +6462,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 { @@ -6360,9 +6471,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 { @@ -6372,9 +6480,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 { @@ -6384,9 +6489,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 { @@ -6396,9 +6498,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 { @@ -6408,9 +6507,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 { @@ -6420,9 +6516,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 { @@ -6432,9 +6525,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 { @@ -6444,9 +6534,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 { @@ -6456,9 +6543,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 { @@ -6468,9 +6552,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 { @@ -6480,9 +6561,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 { @@ -6492,9 +6570,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 { @@ -6504,9 +6579,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 { @@ -6516,9 +6588,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 { @@ -6528,9 +6597,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 { @@ -6540,9 +6606,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 { @@ -6552,9 +6615,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 { @@ -6564,9 +6624,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 { @@ -6576,9 +6633,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 { @@ -6588,9 +6642,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 { @@ -6600,9 +6651,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 { @@ -6612,9 +6660,6 @@ func (m *BatchCommandsRequest_Request_PrepareFlashbackToVersion) Size() (n int) return n } func (m *BatchCommandsRequest_Request_Flush) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Flush != nil { @@ -6624,9 +6669,6 @@ func (m *BatchCommandsRequest_Request_Flush) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_BufferBatchGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BufferBatchGet != nil { @@ -6636,9 +6678,6 @@ func (m *BatchCommandsRequest_Request_BufferBatchGet) Size() (n int) { return n } func (m *BatchCommandsRequest_Request_GetHealthFeedback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.GetHealthFeedback != nil { @@ -6648,9 +6687,6 @@ func (m *BatchCommandsRequest_Request_GetHealthFeedback) 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 { @@ -6660,9 +6696,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 { @@ -6685,31 +6718,19 @@ func (m *BatchCommandsResponse) Size() (n int) { l = m.HealthFeedback.Size() n += 1 + l + sovTikvpb(uint64(l)) } - 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 { @@ -6719,9 +6740,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 { @@ -6731,9 +6749,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 { @@ -6743,9 +6758,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 { @@ -6755,9 +6767,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 { @@ -6767,9 +6776,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 { @@ -6779,9 +6785,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 { @@ -6791,9 +6794,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 { @@ -6803,9 +6803,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 { @@ -6815,9 +6812,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 { @@ -6827,9 +6821,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 { @@ -6839,9 +6830,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 { @@ -6851,9 +6839,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 { @@ -6863,9 +6848,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 { @@ -6875,9 +6857,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 { @@ -6887,9 +6866,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 { @@ -6899,9 +6875,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 { @@ -6911,9 +6884,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 { @@ -6923,9 +6893,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 { @@ -6935,9 +6902,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 { @@ -6947,9 +6911,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 { @@ -6959,9 +6920,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 { @@ -6971,9 +6929,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 { @@ -6983,9 +6938,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 { @@ -6995,9 +6947,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 { @@ -7007,9 +6956,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 { @@ -7019,9 +6965,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 { @@ -7031,9 +6974,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 { @@ -7043,9 +6983,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 { @@ -7055,9 +6992,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 { @@ -7067,9 +7001,6 @@ func (m *BatchCommandsResponse_Response_PrepareFlashbackToVersion) Size() (n int return n } func (m *BatchCommandsResponse_Response_Flush) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Flush != nil { @@ -7079,9 +7010,6 @@ func (m *BatchCommandsResponse_Response_Flush) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_BufferBatchGet) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BufferBatchGet != nil { @@ -7091,9 +7019,6 @@ func (m *BatchCommandsResponse_Response_BufferBatchGet) Size() (n int) { return n } func (m *BatchCommandsResponse_Response_GetHealthFeedback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.GetHealthFeedback != nil { @@ -7103,9 +7028,6 @@ func (m *BatchCommandsResponse_Response_GetHealthFeedback) 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 { @@ -7115,9 +7037,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 { @@ -7126,16 +7045,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 { @@ -7144,29 +7057,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)))) @@ -7186,7 +7097,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 } @@ -7214,7 +7125,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 } @@ -7223,9 +7134,6 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7246,7 +7154,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 } @@ -7263,7 +7171,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 } @@ -7272,23 +7180,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 { @@ -7300,7 +7194,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 } @@ -7316,13 +7210,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 } } @@ -7347,7 +7240,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 } @@ -7375,7 +7268,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 } @@ -7384,9 +7277,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 } @@ -7410,7 +7300,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 } @@ -7419,9 +7309,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 } @@ -7445,7 +7332,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 } @@ -7454,9 +7341,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 } @@ -7480,7 +7364,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 } @@ -7489,9 +7373,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 } @@ -7515,7 +7396,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 } @@ -7524,9 +7405,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 } @@ -7550,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 } @@ -7559,9 +7437,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 } @@ -7585,7 +7460,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 } @@ -7594,9 +7469,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 } @@ -7620,7 +7492,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 } @@ -7629,9 +7501,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 } @@ -7655,7 +7524,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 } @@ -7664,9 +7533,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 } @@ -7690,7 +7556,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,9 +7565,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 } @@ -7725,7 +7588,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 } @@ -7734,9 +7597,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 } @@ -7760,7 +7620,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 } @@ -7769,9 +7629,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 } @@ -7795,7 +7652,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 } @@ -7804,9 +7661,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 } @@ -7830,7 +7684,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 } @@ -7839,9 +7693,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 } @@ -7865,7 +7716,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 } @@ -7874,9 +7725,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 } @@ -7900,7 +7748,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 } @@ -7909,9 +7757,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 } @@ -7935,7 +7780,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 } @@ -7944,9 +7789,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 } @@ -7970,7 +7812,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 } @@ -7979,9 +7821,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 } @@ -8005,7 +7844,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 } @@ -8014,9 +7853,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 } @@ -8040,7 +7876,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 } @@ -8049,9 +7885,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 } @@ -8075,7 +7908,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 } @@ -8084,9 +7917,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 } @@ -8110,7 +7940,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 } @@ -8119,9 +7949,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 } @@ -8145,7 +7972,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 } @@ -8154,9 +7981,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 } @@ -8180,7 +8004,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 } @@ -8189,9 +8013,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 } @@ -8215,7 +8036,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 } @@ -8224,9 +8045,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 } @@ -8250,7 +8068,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 } @@ -8259,9 +8077,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 } @@ -8285,7 +8100,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 } @@ -8294,9 +8109,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 } @@ -8320,7 +8132,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 } @@ -8329,9 +8141,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 } @@ -8355,7 +8164,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 } @@ -8364,9 +8173,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 } @@ -8390,7 +8196,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 } @@ -8399,9 +8205,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 } @@ -8425,7 +8228,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 } @@ -8434,9 +8237,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 } @@ -8460,7 +8260,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 } @@ -8469,9 +8269,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 } @@ -8495,7 +8292,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 } @@ -8504,9 +8301,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 } @@ -8530,7 +8324,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 } @@ -8539,9 +8333,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 } @@ -8557,13 +8348,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 } } @@ -8588,7 +8378,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 } @@ -8616,7 +8406,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 } @@ -8625,9 +8415,6 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8648,7 +8435,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 } @@ -8665,7 +8452,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 } @@ -8674,23 +8461,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 { @@ -8702,7 +8475,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 } @@ -8726,7 +8499,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 } @@ -8745,7 +8518,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 } @@ -8754,9 +8527,6 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8773,13 +8543,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 } } @@ -8804,7 +8573,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 } @@ -8832,7 +8601,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 } @@ -8841,9 +8610,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 } @@ -8867,7 +8633,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 } @@ -8876,9 +8642,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 } @@ -8902,7 +8665,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 } @@ -8911,9 +8674,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 } @@ -8937,7 +8697,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 } @@ -8946,9 +8706,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 } @@ -8972,7 +8729,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 } @@ -8981,9 +8738,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 } @@ -9007,7 +8761,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 } @@ -9016,9 +8770,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 } @@ -9042,7 +8793,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 } @@ -9051,9 +8802,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 } @@ -9077,7 +8825,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 } @@ -9086,9 +8834,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 } @@ -9112,7 +8857,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 } @@ -9121,9 +8866,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 } @@ -9147,7 +8889,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 } @@ -9155,10 +8897,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 } @@ -9182,7 +8921,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,9 +8930,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 } @@ -9217,7 +8953,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 } @@ -9226,9 +8962,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 } @@ -9252,7 +8985,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 } @@ -9261,9 +8994,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 } @@ -9287,7 +9017,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 } @@ -9296,9 +9026,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 } @@ -9322,7 +9049,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 } @@ -9331,9 +9058,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 } @@ -9357,7 +9081,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 } @@ -9366,9 +9090,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 } @@ -9392,7 +9113,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 } @@ -9401,9 +9122,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 } @@ -9427,7 +9145,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 } @@ -9436,9 +9154,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 } @@ -9462,7 +9177,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 } @@ -9471,9 +9186,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 } @@ -9497,7 +9209,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 } @@ -9506,9 +9218,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 } @@ -9532,7 +9241,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 } @@ -9541,9 +9250,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 } @@ -9567,7 +9273,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 } @@ -9576,9 +9282,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 } @@ -9602,7 +9305,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 } @@ -9611,9 +9314,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 } @@ -9637,7 +9337,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 } @@ -9646,9 +9346,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 } @@ -9672,7 +9369,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 } @@ -9681,9 +9378,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 } @@ -9707,7 +9401,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 } @@ -9716,9 +9410,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 } @@ -9742,7 +9433,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 } @@ -9751,9 +9442,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 } @@ -9777,7 +9465,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 } @@ -9786,9 +9474,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 } @@ -9812,7 +9497,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 } @@ -9821,9 +9506,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 } @@ -9847,7 +9529,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 } @@ -9856,9 +9538,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 } @@ -9882,7 +9561,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 } @@ -9891,9 +9570,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 } @@ -9917,7 +9593,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 } @@ -9926,9 +9602,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 } @@ -9952,7 +9625,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 } @@ -9961,9 +9634,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 } @@ -9987,7 +9657,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 } @@ -9996,9 +9666,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 } @@ -10014,13 +9681,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 } } @@ -10045,7 +9711,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 } @@ -10073,7 +9739,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 } @@ -10082,9 +9748,6 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10099,13 +9762,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 } } @@ -10130,7 +9792,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 } @@ -10158,7 +9820,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 } @@ -10177,7 +9839,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 } @@ -10188,13 +9850,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 } } @@ -10219,7 +9880,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 } @@ -10247,7 +9908,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 } @@ -10258,13 +9919,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 } } @@ -10277,7 +9937,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 { @@ -10309,8 +9968,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 { @@ -10327,34 +9988,228 @@ 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{ + // 2703 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff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36, 0x3c, 0x02, + 0x73, 0xa9, 0xa7, 0xc4, 0x1e, 0x32, 0xfb, 0x8d, 0x4c, 0x78, 0xdd, 0x89, 0x66, 0x47, 0x3f, 0xff, + 0x2a, 0xba, 0x66, 0x27, 0x79, 0x49, 0xfb, 0xfc, 0x93, 0x71, 0xe9, 0xf3, 0x4f, 0x46, 0x92, 0xf0, + 0xf2, 0x3b, 0x5e, 0xce, 0x86, 0x37, 0xbe, 0x66, 0xcd, 0x0e, 0xee, 0x81, 0x4f, 0xd2, 0x09, 0xb1, + 0x39, 0xac, 0x30, 0x3f, 0xeb, 0x99, 0x65, 0xa8, 0x13, 0x51, 0x6c, 0xe0, 0xcf, 0xc1, 0x4c, 0x49, + 0xa4, 0x6e, 0xf7, 0x6e, 0x92, 0x90, 0xe4, 0x74, 0x2e, 0xbd, 0x01, 0x49, 0x15, 0x96, 0xc1, 0x7c, + 0x05, 0x47, 0x51, 0xbb, 0xdb, 0x8e, 0x48, 0xbb, 0xc1, 0xce, 0xc4, 0x2a, 0xb3, 0xde, 0x14, 0xe9, + 0x49, 0x95, 0x0b, 0x47, 0xba, 0x25, 0xfc, 0x11, 0x2c, 0x49, 0x43, 0xfc, 0x84, 0xbb, 0xcc, 0xe1, + 0x23, 0x93, 0xc3, 0xec, 0x39, 0x37, 0x79, 0xa0, 0xbb, 0x5d, 0xba, 0xc4, 0x8d, 0xab, 0xfa, 0x87, + 0x5e, 0x8d, 0x20, 0x32, 0x88, 0xdc, 0x35, 0x6d, 0xb7, 0x55, 0xb1, 0xb4, 0xdb, 0xaa, 0x80, 0xee, + 0x76, 0xfd, 0x43, 0xef, 0x08, 0xa3, 0x90, 0xec, 0x61, 0x44, 0x5c, 0x4f, 0xdb, 0x6d, 0x59, 0x28, + 0xed, 0xb6, 0x3c, 0x4c, 0x97, 0xc9, 0xbc, 0xd6, 0x70, 0x23, 0xe8, 0x35, 0x51, 0x38, 0xa2, 0x8b, + 0x8f, 0xdc, 0x87, 0xda, 0x32, 0x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98, 0x89, 0x6f, 0x0a, + 0x8c, 0x9a, 0x38, 0x94, 0x4e, 0x80, 0x34, 0x9a, 0x3d, 0x01, 0x8a, 0x30, 0xe9, 0xb6, 0x94, 0xc1, + 0xdc, 0x21, 0x26, 0x35, 0x12, 0x84, 0xb8, 0x86, 0x2e, 0x70, 0xbd, 0x26, 0x1f, 0x27, 0x31, 0x6a, + 0x38, 0x4e, 0xb2, 0x30, 0x71, 0x56, 0x07, 0xf3, 0x87, 0x98, 0xd0, 0xd4, 0xff, 0x23, 0x6a, 0x93, + 0xe3, 0xde, 0x45, 0x20, 0xb5, 0x38, 0x34, 0x49, 0xb6, 0xc5, 0x91, 0x51, 0x48, 0xbc, 0x7e, 0x03, + 0x26, 0x19, 0xae, 0x34, 0x08, 0x54, 0x6a, 0x6a, 0x3a, 0x62, 0x28, 0x76, 0x53, 0x41, 0x62, 0xfd, + 0x3b, 0x00, 0x25, 0xc7, 0x47, 0xed, 0x88, 0x04, 0xe1, 0x08, 0xfa, 0xa6, 0xa8, 0x89, 0x30, 0x7b, + 0x6b, 0x9a, 0x74, 0x12, 0xf7, 0xe7, 0x60, 0xe5, 0x10, 0x93, 0x7a, 0x9b, 0x95, 0x39, 0xb5, 0x51, + 0x44, 0x70, 0x97, 0xe5, 0x2e, 0x29, 0x42, 0x56, 0x98, 0x8d, 0x60, 0xd2, 0x91, 0x28, 0x15, 0x90, + 0x70, 0xf4, 0xa6, 0xd9, 0x4c, 0x6e, 0x64, 0xf5, 0x7f, 0xde, 0xea, 0x5c, 0x24, 0x12, 0x81, 0x5d, + 0x43, 0x62, 0x95, 0x59, 0x12, 0x8e, 0x4e, 0x51, 0x78, 0x95, 0xe0, 0xf8, 0xa3, 0xac, 0x95, 0x90, + 0x8a, 0x06, 0x49, 0xae, 0x12, 0xf7, 0xde, 0x03, 0x4b, 0xfc, 0x9c, 0xed, 0x33, 0x0b, 0x76, 0x9c, + 0x3f, 0xd5, 0xcc, 0x0d, 0x3a, 0xa2, 0x56, 0xbd, 0x81, 0xaa, 0x04, 0x78, 0x0b, 0x71, 0x32, 0x90, + 0x82, 0x3d, 0xd1, 0x3c, 0xe8, 0x0a, 0x69, 0xa4, 0xa7, 0x63, 0xf5, 0x78, 0x98, 0xdf, 0x80, 0x85, + 0x03, 0x4c, 0x0b, 0x11, 0x26, 0xac, 0xa0, 0x16, 0x8e, 0x32, 0x61, 0x74, 0x05, 0x71, 0x83, 0xa8, + 0x7a, 0x4c, 0x28, 0x65, 0x98, 0x73, 0x76, 0x78, 0x62, 0xc3, 0x52, 0xd0, 0xbb, 0x68, 0xb7, 0xe0, + 0x63, 0xcd, 0x44, 0x93, 0xa7, 0x9e, 0x9f, 0x8c, 0x53, 0x93, 0x01, 0x35, 0xdb, 0x71, 0x1e, 0xff, + 0x6f, 0x06, 0xde, 0x0d, 0xba, 0xd9, 0xbe, 0xb3, 0xf7, 0xe4, 0x5f, 0x7f, 0x9d, 0x2a, 0xfc, 0xe3, + 0xe3, 0x46, 0xe1, 0x9f, 0x1f, 0x37, 0x0a, 0xff, 0xfe, 0xb8, 0x51, 0xf8, 0xe3, 0x7f, 0x36, 0x1c, + 0xb0, 0x10, 0x84, 0x2d, 0x76, 0x8b, 0xec, 0x5c, 0x0d, 0xd9, 0x3f, 0x5e, 0x9e, 0x4f, 0xb0, 0x1f, + 0x5f, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x70, 0xb9, 0x21, 0x15, 0x2a, 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, - 0xb4, 0xb5, 0x92, 0xce, 0x98, 0x99, 0x71, 0x94, 0x7c, 0x02, 0x0b, 0xf6, 0x7c, 0x12, 0x62, 0xc5, - 0x27, 0xa0, 0xf0, 0x23, 0xc8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a, 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, 0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6b, 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, 0x88, 0x0b, 0xe2, 0xe0, 0xd4, 0x26, 0xb5, 0xe2, 0xd8, 0xd1, 0xec, - 0xa6, 0x88, 0xd3, 0xb2, 0xf1, 0x8e, 0xcc, 0x28, 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 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, 0x3d, 0x68, 0x25, 0xa6, 0x46, 0x6c, 0xca, 0x84, 0xa4, 0x91, 0x3f, 0xe7, 0x53, - 0xd1, 0x2c, 0xef, 0x97, 0xd3, 0xbc, 0x32, 0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 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, 0x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xfe, 0xdf, 0xe7, 0x9b, + 0xea, 0xf3, 0xe9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x47, 0xfb, 0x84, 0xaf, 0x0f, 0x08, 0x00, + 0x00, +} diff --git a/proto/resource_usage_agent.proto b/proto/resource_usage_agent.proto index 4250ec259..5ea2cc535 100644 --- a/proto/resource_usage_agent.proto +++ b/proto/resource_usage_agent.proto @@ -40,6 +40,7 @@ message ResourceUsageRecord { message GroupTagRecord { bytes resource_group_tag = 1; repeated GroupTagRecordItem items = 2; + uint64 region_id = 3; } message GroupTagRecordItem { diff --git a/scripts/proto.lock b/scripts/proto.lock index 3b3ab532f..84530f073 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -777,20 +777,17 @@ { "id": 3, "name": "cluster_id_error", - "type": "ClusterIDError", - "oneof_parent": "detail" + "type": "ClusterIDError" }, { "id": 4, "name": "kv_error", - "type": "kvrpcpb.KeyError", - "oneof_parent": "detail" + "type": "kvrpcpb.KeyError" }, { "id": 5, "name": "region_error", - "type": "errorpb.Error", - "oneof_parent": "detail" + "type": "errorpb.Error" } ] }, @@ -800,14 +797,12 @@ { "id": 1, "name": "plaintext_data_key", - "type": "CipherInfo", - "oneof_parent": "encryption" + "type": "CipherInfo" }, { "id": 2, "name": "master_key_config", - "type": "MasterKeyConfig", - "oneof_parent": "encryption" + "type": "MasterKeyConfig" } ] }, @@ -1001,44 +996,37 @@ { "id": 1, "name": "noop", - "type": "Noop", - "oneof_parent": "backend" + "type": "Noop" }, { "id": 2, "name": "local", - "type": "Local", - "oneof_parent": "backend" + "type": "Local" }, { "id": 3, "name": "s3", - "type": "S3", - "oneof_parent": "backend" + "type": "S3" }, { "id": 4, "name": "gcs", - "type": "GCS", - "oneof_parent": "backend" + "type": "GCS" }, { "id": 5, "name": "cloud_dynamic", - "type": "CloudDynamic", - "oneof_parent": "backend" + "type": "CloudDynamic" }, { "id": 6, "name": "hdfs", - "type": "HDFS", - "oneof_parent": "backend" + "type": "HDFS" }, { "id": 7, "name": "azure_blob_storage", - "type": "AzureBlobStorage", - "oneof_parent": "backend" + "type": "AzureBlobStorage" } ] }, @@ -2270,20 +2258,17 @@ { "id": 3, "name": "entries", - "type": "Entries", - "oneof_parent": "event" + "type": "Entries" }, { "id": 4, "name": "admin", - "type": "Admin", - "oneof_parent": "event" + "type": "Admin" }, { "id": 5, "name": "error", - "type": "Error", - "oneof_parent": "event" + "type": "Error" }, { "id": 6, @@ -2294,14 +2279,12 @@ "name": "deprecated", "value": "true" } - ], - "oneof_parent": "event" + ] }, { "id": 8, "name": "long_txn", - "type": "LongTxn", - "oneof_parent": "event" + "type": "LongTxn" } ], "messages": [ @@ -2482,20 +2465,17 @@ { "id": 9, "name": "register", - "type": "Register", - "oneof_parent": "request" + "type": "Register" }, { "id": 10, "name": "notify_txn_status", - "type": "NotifyTxnStatus", - "oneof_parent": "request" + "type": "NotifyTxnStatus" }, { "id": 13, "name": "deregister", - "type": "Deregister", - "oneof_parent": "request" + "type": "Deregister" }, { "id": 11, @@ -2687,14 +2667,12 @@ { "id": 1, "name": "local", - "type": "Local", - "oneof_parent": "kind" + "type": "Local" }, { "id": 2, "name": "global", - "type": "Global", - "oneof_parent": "kind" + "type": "Global" } ] }, @@ -4846,20 +4824,17 @@ { "id": 1, "name": "success", - "type": "Success", - "oneof_parent": "error" + "type": "Success" }, { "id": 2, "name": "not_owner", - "type": "NotOwner", - "oneof_parent": "error" + "type": "NotOwner" }, { "id": 3, "name": "conflict", - "type": "Conflict", - "oneof_parent": "error" + "type": "Conflict" } ] }, @@ -5043,20 +5018,17 @@ { "id": 1, "name": "error_region", - "type": "ErrorRegion", - "oneof_parent": "errors" + "type": "ErrorRegion" }, { "id": 2, "name": "error_locked", - "type": "ErrorLocked", - "oneof_parent": "errors" + "type": "ErrorLocked" }, { "id": 99, "name": "error_other", - "type": "ErrorOther", - "oneof_parent": "errors" + "type": "ErrorOther" } ] }, @@ -5436,20 +5408,17 @@ { "id": 1, "name": "plaintext", - "type": "MasterKeyPlaintext", - "oneof_parent": "backend" + "type": "MasterKeyPlaintext" }, { "id": 2, "name": "file", - "type": "MasterKeyFile", - "oneof_parent": "backend" + "type": "MasterKeyFile" }, { "id": 3, "name": "kms", - "type": "MasterKeyKms", - "oneof_parent": "backend" + "type": "MasterKeyKms" } ] }, @@ -5622,14 +5591,12 @@ { "id": 1, "name": "plain_text_data_key", - "type": "PlainTextDataKey", - "oneof_parent": "mode" + "type": "PlainTextDataKey" }, { "id": 2, "name": "master_key_based", - "type": "MasterKeyBased", - "oneof_parent": "mode" + "type": "MasterKeyBased" }, { "id": 3, @@ -5867,14 +5834,12 @@ { "id": 1, "name": "state", - "type": "SnapshotState", - "oneof_parent": "chunk" + "type": "SnapshotState" }, { "id": 2, "name": "data", - "type": "SnapshotData", - "oneof_parent": "chunk" + "type": "SnapshotData" } ] }, @@ -6769,14 +6734,12 @@ { "id": 1, "name": "head", - "type": "WriteHead", - "oneof_parent": "chunk" + "type": "WriteHead" }, { "id": 2, "name": "batch", - "type": "WriteBatch", - "oneof_parent": "chunk" + "type": "WriteBatch" } ] }, @@ -7255,14 +7218,12 @@ { "id": 1, "name": "meta", - "type": "SSTMeta", - "oneof_parent": "chunk" + "type": "SSTMeta" }, { "id": 2, "name": "data", - "type": "bytes", - "oneof_parent": "chunk" + "type": "bytes" } ] }, @@ -7528,14 +7489,12 @@ { "id": 1, "name": "meta", - "type": "SSTMeta", - "oneof_parent": "chunk" + "type": "SSTMeta" }, { "id": 2, "name": "batch", - "type": "WriteBatch", - "oneof_parent": "chunk" + "type": "WriteBatch" }, { "id": 3, @@ -7587,14 +7546,12 @@ { "id": 1, "name": "meta", - "type": "SSTMeta", - "oneof_parent": "chunk" + "type": "SSTMeta" }, { "id": 2, "name": "batch", - "type": "RawWriteBatch", - "oneof_parent": "chunk" + "type": "RawWriteBatch" }, { "id": 3, @@ -11906,26 +11863,22 @@ { "id": 1, "name": "err_invalid_start_key", - "type": "CompactErrorInvalidStartKey", - "oneof_parent": "error" + "type": "CompactErrorInvalidStartKey" }, { "id": 2, "name": "err_physical_table_not_exist", - "type": "CompactErrorPhysicalTableNotExist", - "oneof_parent": "error" + "type": "CompactErrorPhysicalTableNotExist" }, { "id": 3, "name": "err_compact_in_progress", - "type": "CompactErrorCompactInProgress", - "oneof_parent": "error" + "type": "CompactErrorCompactInProgress" }, { "id": 4, "name": "err_too_many_pending_tasks", - "type": "CompactErrorTooManyPendingTasks", - "oneof_parent": "error" + "type": "CompactErrorTooManyPendingTasks" } ] }, @@ -18372,26 +18325,22 @@ { "id": 1, "name": "head", - "type": "TabletSnapshotHead", - "oneof_parent": "payload" + "type": "TabletSnapshotHead" }, { "id": 2, "name": "preview", - "type": "TabletSnapshotPreview", - "oneof_parent": "payload" + "type": "TabletSnapshotPreview" }, { "id": 3, "name": "chunk", - "type": "TabletSnapshotFileChunk", - "oneof_parent": "payload" + "type": "TabletSnapshotFileChunk" }, { "id": 4, "name": "end", - "type": "TabletSnapshotEnd", - "oneof_parent": "payload" + "type": "TabletSnapshotEnd" } ] }, @@ -19453,14 +19402,12 @@ { "id": 2, "name": "ru_items", - "type": "RequestRU", - "oneof_parent": "request" + "type": "RequestRU" }, { "id": 3, "name": "raw_resource_items", - "type": "RequestRawResource", - "oneof_parent": "request" + "type": "RequestRawResource" }, { "id": 4, @@ -19960,8 +19907,7 @@ { "id": 1, "name": "record", - "type": "GroupTagRecord", - "oneof_parent": "record_oneof" + "type": "GroupTagRecord" } ] }, @@ -19978,6 +19924,11 @@ "name": "items", "type": "GroupTagRecordItem", "is_repeated": true + }, + { + "id": 3, + "name": "region_id", + "type": "uint64" } ] }, @@ -20605,206 +20556,172 @@ { "id": 1, "name": "Get", - "type": "kvrpcpb.GetRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.GetRequest" }, { "id": 2, "name": "Scan", - "type": "kvrpcpb.ScanRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.ScanRequest" }, { "id": 3, "name": "Prewrite", - "type": "kvrpcpb.PrewriteRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.PrewriteRequest" }, { "id": 4, "name": "Commit", - "type": "kvrpcpb.CommitRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.CommitRequest" }, { "id": 5, "name": "Import", - "type": "kvrpcpb.ImportRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.ImportRequest" }, { "id": 6, "name": "Cleanup", - "type": "kvrpcpb.CleanupRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.CleanupRequest" }, { "id": 7, "name": "BatchGet", - "type": "kvrpcpb.BatchGetRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.BatchGetRequest" }, { "id": 8, "name": "BatchRollback", - "type": "kvrpcpb.BatchRollbackRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.BatchRollbackRequest" }, { "id": 9, "name": "ScanLock", - "type": "kvrpcpb.ScanLockRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.ScanLockRequest" }, { "id": 10, "name": "ResolveLock", - "type": "kvrpcpb.ResolveLockRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.ResolveLockRequest" }, { "id": 11, "name": "GC", - "type": "kvrpcpb.GCRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.GCRequest" }, { "id": 12, "name": "DeleteRange", - "type": "kvrpcpb.DeleteRangeRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.DeleteRangeRequest" }, { "id": 13, "name": "RawGet", - "type": "kvrpcpb.RawGetRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawGetRequest" }, { "id": 14, "name": "RawBatchGet", - "type": "kvrpcpb.RawBatchGetRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchGetRequest" }, { "id": 15, "name": "RawPut", - "type": "kvrpcpb.RawPutRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawPutRequest" }, { "id": 16, "name": "RawBatchPut", - "type": "kvrpcpb.RawBatchPutRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchPutRequest" }, { "id": 17, "name": "RawDelete", - "type": "kvrpcpb.RawDeleteRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawDeleteRequest" }, { "id": 18, "name": "RawBatchDelete", - "type": "kvrpcpb.RawBatchDeleteRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchDeleteRequest" }, { "id": 19, "name": "RawScan", - "type": "kvrpcpb.RawScanRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawScanRequest" }, { "id": 20, "name": "RawDeleteRange", - "type": "kvrpcpb.RawDeleteRangeRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawDeleteRangeRequest" }, { "id": 21, "name": "RawBatchScan", - "type": "kvrpcpb.RawBatchScanRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchScanRequest" }, { "id": 22, "name": "Coprocessor", - "type": "coprocessor.Request", - "oneof_parent": "cmd" + "type": "coprocessor.Request" }, { "id": 23, "name": "PessimisticLock", - "type": "kvrpcpb.PessimisticLockRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.PessimisticLockRequest" }, { "id": 24, "name": "PessimisticRollback", - "type": "kvrpcpb.PessimisticRollbackRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.PessimisticRollbackRequest" }, { "id": 25, "name": "CheckTxnStatus", - "type": "kvrpcpb.CheckTxnStatusRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.CheckTxnStatusRequest" }, { "id": 26, "name": "TxnHeartBeat", - "type": "kvrpcpb.TxnHeartBeatRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.TxnHeartBeatRequest" }, { "id": 33, "name": "CheckSecondaryLocks", - "type": "kvrpcpb.CheckSecondaryLocksRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.CheckSecondaryLocksRequest" }, { "id": 34, "name": "RawCoprocessor", - "type": "kvrpcpb.RawCoprocessorRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawCoprocessorRequest" }, { "id": 35, "name": "FlashbackToVersion", - "type": "kvrpcpb.FlashbackToVersionRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.FlashbackToVersionRequest" }, { "id": 36, "name": "PrepareFlashbackToVersion", - "type": "kvrpcpb.PrepareFlashbackToVersionRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.PrepareFlashbackToVersionRequest" }, { "id": 37, "name": "Flush", - "type": "kvrpcpb.FlushRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.FlushRequest" }, { "id": 38, "name": "BufferBatchGet", - "type": "kvrpcpb.BufferBatchGetRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.BufferBatchGetRequest" }, { "id": 39, "name": "GetHealthFeedback", - "type": "kvrpcpb.GetHealthFeedbackRequest", - "oneof_parent": "cmd" + "type": "kvrpcpb.GetHealthFeedbackRequest" }, { "id": 255, "name": "Empty", - "type": "BatchCommandsEmptyRequest", - "oneof_parent": "cmd" + "type": "BatchCommandsEmptyRequest" } ], "reserved_ids": [ @@ -20851,206 +20768,172 @@ { "id": 1, "name": "Get", - "type": "kvrpcpb.GetResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.GetResponse" }, { "id": 2, "name": "Scan", - "type": "kvrpcpb.ScanResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.ScanResponse" }, { "id": 3, "name": "Prewrite", - "type": "kvrpcpb.PrewriteResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.PrewriteResponse" }, { "id": 4, "name": "Commit", - "type": "kvrpcpb.CommitResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.CommitResponse" }, { "id": 5, "name": "Import", - "type": "kvrpcpb.ImportResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.ImportResponse" }, { "id": 6, "name": "Cleanup", - "type": "kvrpcpb.CleanupResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.CleanupResponse" }, { "id": 7, "name": "BatchGet", - "type": "kvrpcpb.BatchGetResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.BatchGetResponse" }, { "id": 8, "name": "BatchRollback", - "type": "kvrpcpb.BatchRollbackResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.BatchRollbackResponse" }, { "id": 9, "name": "ScanLock", - "type": "kvrpcpb.ScanLockResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.ScanLockResponse" }, { "id": 10, "name": "ResolveLock", - "type": "kvrpcpb.ResolveLockResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.ResolveLockResponse" }, { "id": 11, "name": "GC", - "type": "kvrpcpb.GCResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.GCResponse" }, { "id": 12, "name": "DeleteRange", - "type": "kvrpcpb.DeleteRangeResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.DeleteRangeResponse" }, { "id": 13, "name": "RawGet", - "type": "kvrpcpb.RawGetResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawGetResponse" }, { "id": 14, "name": "RawBatchGet", - "type": "kvrpcpb.RawBatchGetResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchGetResponse" }, { "id": 15, "name": "RawPut", - "type": "kvrpcpb.RawPutResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawPutResponse" }, { "id": 16, "name": "RawBatchPut", - "type": "kvrpcpb.RawBatchPutResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchPutResponse" }, { "id": 17, "name": "RawDelete", - "type": "kvrpcpb.RawDeleteResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawDeleteResponse" }, { "id": 18, "name": "RawBatchDelete", - "type": "kvrpcpb.RawBatchDeleteResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchDeleteResponse" }, { "id": 19, "name": "RawScan", - "type": "kvrpcpb.RawScanResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawScanResponse" }, { "id": 20, "name": "RawDeleteRange", - "type": "kvrpcpb.RawDeleteRangeResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawDeleteRangeResponse" }, { "id": 21, "name": "RawBatchScan", - "type": "kvrpcpb.RawBatchScanResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawBatchScanResponse" }, { "id": 22, "name": "Coprocessor", - "type": "coprocessor.Response", - "oneof_parent": "cmd" + "type": "coprocessor.Response" }, { "id": 23, "name": "PessimisticLock", - "type": "kvrpcpb.PessimisticLockResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.PessimisticLockResponse" }, { "id": 24, "name": "PessimisticRollback", - "type": "kvrpcpb.PessimisticRollbackResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.PessimisticRollbackResponse" }, { "id": 25, "name": "CheckTxnStatus", - "type": "kvrpcpb.CheckTxnStatusResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.CheckTxnStatusResponse" }, { "id": 26, "name": "TxnHeartBeat", - "type": "kvrpcpb.TxnHeartBeatResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.TxnHeartBeatResponse" }, { "id": 33, "name": "CheckSecondaryLocks", - "type": "kvrpcpb.CheckSecondaryLocksResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.CheckSecondaryLocksResponse" }, { "id": 34, "name": "RawCoprocessor", - "type": "kvrpcpb.RawCoprocessorResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.RawCoprocessorResponse" }, { "id": 35, "name": "FlashbackToVersion", - "type": "kvrpcpb.FlashbackToVersionResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.FlashbackToVersionResponse" }, { "id": 36, "name": "PrepareFlashbackToVersion", - "type": "kvrpcpb.PrepareFlashbackToVersionResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.PrepareFlashbackToVersionResponse" }, { "id": 37, "name": "Flush", - "type": "kvrpcpb.FlushResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.FlushResponse" }, { "id": 38, "name": "BufferBatchGet", - "type": "kvrpcpb.BufferBatchGetResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.BufferBatchGetResponse" }, { "id": 39, "name": "GetHealthFeedback", - "type": "kvrpcpb.GetHealthFeedbackResponse", - "oneof_parent": "cmd" + "type": "kvrpcpb.GetHealthFeedbackResponse" }, { "id": 255, "name": "Empty", - "type": "BatchCommandsEmptyResponse", - "oneof_parent": "cmd" + "type": "BatchCommandsEmptyResponse" } ], "reserved_ids": [ @@ -21527,14 +21410,12 @@ { "id": 1, "name": "report", - "type": "Report", - "oneof_parent": "record_oneof" + "type": "Report" }, { "id": 2, "name": "notify_collect", - "type": "NotifyCollect", - "oneof_parent": "record_oneof" + "type": "NotifyCollect" } ] },