diff --git a/go.mod b/go.mod index 2245495965..d28a5e6f6e 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 a4b5e1b8db..3e4cff9332 100644 --- a/pkg/autoid/autoid.pb.go +++ b/pkg/autoid/autoid.pb.go @@ -4,17 +4,16 @@ 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,7 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.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"` @@ -45,7 +44,7 @@ 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} + return fileDescriptor_autoid_b509131482d06f0a, []int{0} } func (m *AutoIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -55,15 +54,15 @@ func (m *AutoIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_AutoIDRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AutoIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AutoIDRequest.Merge(dst, src) } func (m *AutoIDRequest) XXX_Size() int { return m.Size() @@ -136,7 +135,7 @@ 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} + return fileDescriptor_autoid_b509131482d06f0a, []int{1} } func (m *AutoIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,15 +145,15 @@ func (m *AutoIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_AutoIDResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AutoIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AutoIDResponse.Merge(dst, src) } func (m *AutoIDResponse) XXX_Size() int { return m.Size() @@ -201,7 +200,7 @@ 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} + return fileDescriptor_autoid_b509131482d06f0a, []int{2} } func (m *RebaseRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -211,15 +210,15 @@ func (m *RebaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RebaseRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RebaseRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebaseRequest.Merge(dst, src) } func (m *RebaseRequest) XXX_Size() int { return m.Size() @@ -276,7 +275,7 @@ 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} + return fileDescriptor_autoid_b509131482d06f0a, []int{3} } func (m *RebaseResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -286,15 +285,15 @@ func (m *RebaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RebaseResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RebaseResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebaseResponse.Merge(dst, src) } func (m *RebaseResponse) XXX_Size() int { return m.Size() @@ -319,36 +318,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,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0e, 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 +326,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) @@ -391,23 +359,13 @@ func (c *autoIDAllocClient) Rebase(ctx context.Context, in *RebaseRequest, opts 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 +426,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 +434,60 @@ 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)) + } + 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 +495,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +532,55 @@ 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 + i++ } - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +588,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -717,9 +644,6 @@ func (m *AutoIDRequest) Size() (n int) { } func (m *AutoIDResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Min != 0 { @@ -739,9 +663,6 @@ func (m *AutoIDResponse) Size() (n int) { } func (m *RebaseRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.DbID != 0 { @@ -766,9 +687,6 @@ func (m *RebaseRequest) Size() (n int) { } func (m *RebaseResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Errmsg) @@ -782,7 +700,14 @@ func (m *RebaseResponse) Size() (n int) { } 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 +727,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 +755,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 +774,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 +793,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 +813,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 +832,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 +851,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 +870,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,7 +881,7 @@ 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 { @@ -987,7 +912,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 +940,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 +959,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 +978,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 +987,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,7 +1001,7 @@ 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 { @@ -1110,7 +1032,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 +1060,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 +1079,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 +1098,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 +1118,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 +1137,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,7 +1149,7 @@ 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 { @@ -1258,7 +1180,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 +1208,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 +1217,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,7 +1231,7 @@ 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 { @@ -1331,7 +1250,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 +1281,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 +1301,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", fileDescriptor_autoid_b509131482d06f0a) } + +var fileDescriptor_autoid_b509131482d06f0a = []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, +} diff --git a/pkg/brpb/brpb.pb.go b/pkg/brpb/brpb.pb.go index 432d9607ff..782831a0ef 100644 --- a/pkg/brpb/brpb.pb.go +++ b/pkg/brpb/brpb.pb.go @@ -4,21 +4,24 @@ 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" + 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. @@ -30,7 +33,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 +56,6 @@ var PrepareSnapshotBackupRequestType_name = map[int32]string{ 1: "WaitApply", 2: "Finish", } - var PrepareSnapshotBackupRequestType_value = map[string]int32{ "UpdateLease": 0, "WaitApply": 1, @@ -63,9 +65,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 fileDescriptor_brpb_89b16a7051b28740, []int{0} } type PrepareSnapshotBackupEventType int32 @@ -81,7 +82,6 @@ var PrepareSnapshotBackupEventType_name = map[int32]string{ 0: "WaitApplyDone", 1: "UpdateLeaseResult", } - var PrepareSnapshotBackupEventType_value = map[string]int32{ "WaitApplyDone": 0, "UpdateLeaseResult": 1, @@ -90,9 +90,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 fileDescriptor_brpb_89b16a7051b28740, []int{1} } // sst files or log files compression algorithm @@ -112,7 +111,6 @@ var CompressionType_name = map[int32]string{ 2: "SNAPPY", 3: "ZSTD", } - var CompressionType_value = map[string]int32{ "UNKNOWN": 0, "LZ4": 1, @@ -123,9 +121,8 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{2} } // BackupMpde represents the mode of this whole backup request to the cluster. @@ -147,7 +144,6 @@ var BackupMode_name = map[int32]string{ 0: "SCAN", 1: "FILE", } - var BackupMode_value = map[string]int32{ "SCAN": 0, "FILE": 1, @@ -156,9 +152,8 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{3} } type MetaVersion int32 @@ -172,7 +167,6 @@ var MetaVersion_name = map[int32]string{ 0: "V1", 1: "V2", } - var MetaVersion_value = map[string]int32{ "V1": 0, "V2": 1, @@ -181,9 +175,8 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{4} } type FileType int32 @@ -197,7 +190,6 @@ var FileType_name = map[int32]string{ 0: "Delete", 1: "Put", } - var FileType_value = map[string]int32{ "Delete": 0, "Put": 1, @@ -206,9 +198,8 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{5} } type PrepareSnapshotBackupRequest struct { @@ -216,7 +207,7 @@ type PrepareSnapshotBackupRequest struct { 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:"-"` @@ -228,7 +219,7 @@ func (m *PrepareSnapshotBackupRequest) Reset() { *m = PrepareSnapshotBac func (m *PrepareSnapshotBackupRequest) String() string { return proto.CompactTextString(m) } func (*PrepareSnapshotBackupRequest) ProtoMessage() {} func (*PrepareSnapshotBackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{0} + return fileDescriptor_brpb_89b16a7051b28740, []int{0} } func (m *PrepareSnapshotBackupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -238,15 +229,15 @@ func (m *PrepareSnapshotBackupRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_PrepareSnapshotBackupRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareSnapshotBackupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareSnapshotBackupRequest.Merge(dst, src) } func (m *PrepareSnapshotBackupRequest) XXX_Size() int { return m.Size() @@ -283,9 +274,9 @@ 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"` @@ -298,7 +289,7 @@ func (m *PrepareSnapshotBackupResponse) Reset() { *m = PrepareSnapshotBa func (m *PrepareSnapshotBackupResponse) String() string { return proto.CompactTextString(m) } func (*PrepareSnapshotBackupResponse) ProtoMessage() {} func (*PrepareSnapshotBackupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{1} + return fileDescriptor_brpb_89b16a7051b28740, []int{1} } func (m *PrepareSnapshotBackupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -308,15 +299,15 @@ func (m *PrepareSnapshotBackupResponse) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_PrepareSnapshotBackupResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareSnapshotBackupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareSnapshotBackupResponse.Merge(dst, src) } func (m *PrepareSnapshotBackupResponse) XXX_Size() int { return m.Size() @@ -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,39 +371,39 @@ 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:"-"` @@ -424,7 +415,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{2} } func (m *BackupMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -434,15 +425,15 @@ func (m *BackupMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BackupMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BackupMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupMeta.Merge(dst, src) } func (m *BackupMeta) XXX_Size() int { return m.Size() @@ -624,7 +615,7 @@ 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"` + Files []*File `protobuf:"bytes,3,rep,name=files" json:"files,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -634,7 +625,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{3} } func (m *BackupRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -644,15 +635,15 @@ func (m *BackupRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_BackupRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BackupRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupRange.Merge(dst, src) } func (m *BackupRange) XXX_Size() int { return m.Size() @@ -707,7 +698,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{4} } func (m *File) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -717,15 +708,15 @@ func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_File.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *File) XXX_Merge(src proto.Message) { + xxx_messageInfo_File.Merge(dst, src) } func (m *File) XXX_Size() int { return m.Size() @@ -824,17 +815,17 @@ 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"` + Ddls [][]byte `protobuf:"bytes,5,rep,name=ddls" json:"ddls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -844,7 +835,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{5} } func (m *MetaFile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -854,15 +845,15 @@ func (m *MetaFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MetaFile.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MetaFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetaFile.Merge(dst, src) } func (m *MetaFile) XXX_Size() int { return m.Size() @@ -926,7 +917,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{6} } func (m *PlacementPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -936,15 +927,15 @@ func (m *PlacementPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_PlacementPolicy.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PlacementPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlacementPolicy.Merge(dst, src) } func (m *PlacementPolicy) XXX_Size() int { return m.Size() @@ -976,7 +967,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{7} } func (m *StatsBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -986,15 +977,15 @@ func (m *StatsBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StatsBlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StatsBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatsBlock.Merge(dst, src) } func (m *StatsBlock) XXX_Size() int { return m.Size() @@ -1021,7 +1012,7 @@ 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"` + Blocks []*StatsBlock `protobuf:"bytes,1,rep,name=blocks" json:"blocks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1031,7 +1022,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{8} } func (m *StatsFile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1041,15 +1032,15 @@ func (m *StatsFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StatsFile.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StatsFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatsFile.Merge(dst, src) } func (m *StatsFile) XXX_Size() int { return m.Size() @@ -1087,7 +1078,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{9} } func (m *StatsFileIndex) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1097,15 +1088,15 @@ func (m *StatsFileIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_StatsFileIndex.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StatsFileIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatsFileIndex.Merge(dst, src) } func (m *StatsFileIndex) XXX_Size() int { return m.Size() @@ -1169,7 +1160,7 @@ 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"` + StatsIndex []*StatsFileIndex `protobuf:"bytes,8,rep,name=stats_index,json=statsIndex" json:"stats_index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1179,7 +1170,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{10} } func (m *Schema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1189,15 +1180,15 @@ func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Schema.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Schema) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schema.Merge(dst, src) } func (m *Schema) XXX_Size() int { return m.Size() @@ -1276,7 +1267,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{11} } func (m *IDMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1286,15 +1277,15 @@ func (m *IDMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IDMap.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IDMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_IDMap.Merge(dst, src) } func (m *IDMap) XXX_Size() int { return m.Size() @@ -1321,8 +1312,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1332,7 +1323,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{12} } func (m *PitrTableMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1342,15 +1333,15 @@ func (m *PitrTableMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_PitrTableMap.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PitrTableMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_PitrTableMap.Merge(dst, src) } func (m *PitrTableMap) XXX_Size() int { return m.Size() @@ -1384,8 +1375,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1395,7 +1386,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{13} } func (m *PitrDBMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1405,15 +1396,15 @@ func (m *PitrDBMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PitrDBMap.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PitrDBMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_PitrDBMap.Merge(dst, src) } func (m *PitrDBMap) XXX_Size() int { return m.Size() @@ -1458,7 +1449,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{14} } func (m *RawRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1468,15 +1459,15 @@ func (m *RawRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RawRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawRange.Merge(dst, src) } func (m *RawRange) XXX_Size() int { return m.Size() @@ -1520,7 +1511,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{15} } func (m *ClusterIDError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1530,15 +1521,15 @@ func (m *ClusterIDError) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ClusterIDError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ClusterIDError) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterIDError.Merge(dst, src) } func (m *ClusterIDError) XXX_Size() int { return m.Size() @@ -1579,7 +1570,7 @@ 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} + return fileDescriptor_brpb_89b16a7051b28740, []int{16} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1589,15 +1580,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -1615,13 +1606,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,15 +1654,99 @@ 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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Error_KvError: + s := proto.Size(x.KvError) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Error_RegionError: + s := proto.Size(x.RegionError) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + 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"` @@ -1684,7 +1759,7 @@ 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{17} + return fileDescriptor_brpb_89b16a7051b28740, []int{17} } func (m *CipherInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1694,15 +1769,15 @@ func (m *CipherInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CipherInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *CipherInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_CipherInfo.Merge(m, src) +func (dst *CipherInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CipherInfo.Merge(dst, src) } func (m *CipherInfo) XXX_Size() int { return m.Size() @@ -1737,7 +1812,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"` @@ -1747,7 +1822,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 @@ -1757,7 +1832,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. @@ -1767,7 +1842,7 @@ type BackupRequest struct { // 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"` + Context *kvrpcpb.Context `protobuf:"bytes,20,opt,name=context" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1777,7 +1852,7 @@ 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{18} + return fileDescriptor_brpb_89b16a7051b28740, []int{18} } func (m *BackupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1787,15 +1862,15 @@ func (m *BackupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_BackupRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BackupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupRequest.Merge(dst, src) } func (m *BackupRequest) XXX_Size() int { return m.Size() @@ -1941,7 +2016,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"` @@ -1950,7 +2025,7 @@ type StreamBackupTaskInfo struct { Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // The table filter of the task. // Only for displaying the task info. - TableFilter []string `protobuf:"bytes,5,rep,name=table_filter,json=tableFilter,proto3" json:"table_filter,omitempty"` + TableFilter []string `protobuf:"bytes,5,rep,name=table_filter,json=tableFilter" json:"table_filter,omitempty"` // compression type CompressionType CompressionType `protobuf:"varint,6,opt,name=compression_type,json=compressionType,proto3,enum=backup.CompressionType" json:"compression_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1962,7 +2037,7 @@ 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{19} + return fileDescriptor_brpb_89b16a7051b28740, []int{19} } func (m *StreamBackupTaskInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1972,15 +2047,15 @@ func (m *StreamBackupTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_StreamBackupTaskInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StreamBackupTaskInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamBackupTaskInfo.Merge(dst, src) } func (m *StreamBackupTaskInfo) XXX_Size() int { return m.Size() @@ -2052,7 +2127,7 @@ 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{20} + return fileDescriptor_brpb_89b16a7051b28740, []int{20} } func (m *StorageBackend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2062,15 +2137,15 @@ func (m *StorageBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_StorageBackend.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StorageBackend) XXX_Merge(src proto.Message) { + xxx_messageInfo_StorageBackend.Merge(dst, src) } func (m *StorageBackend) XXX_Size() int { return m.Size() @@ -2088,25 +2163,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() {} @@ -2173,9 +2248,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), @@ -2186,6 +2261,162 @@ func (*StorageBackend) XXX_OneofWrappers() []interface{} { } } +func _StorageBackend_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*StorageBackend) + // backend + switch x := m.Backend.(type) { + case *StorageBackend_Noop: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Noop); err != nil { + return err + } + case *StorageBackend_Local: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Local); err != nil { + return err + } + case *StorageBackend_S3: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.S3); err != nil { + return err + } + case *StorageBackend_Gcs: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Gcs); err != nil { + return err + } + case *StorageBackend_CloudDynamic: + _ = b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CloudDynamic); err != nil { + return err + } + case *StorageBackend_Hdfs: + _ = b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hdfs); err != nil { + return err + } + case *StorageBackend_AzureBlobStorage: + _ = b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.AzureBlobStorage); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("StorageBackend.Backend has unexpected type %T", x) + } + return nil +} + +func _StorageBackend_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*StorageBackend) + switch tag { + case 1: // backend.noop + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Noop) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Noop{msg} + return true, err + case 2: // backend.local + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Local) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Local{msg} + return true, err + case 3: // backend.s3 + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(S3) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_S3{msg} + return true, err + case 4: // backend.gcs + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GCS) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Gcs{msg} + return true, err + case 5: // backend.cloud_dynamic + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(CloudDynamic) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_CloudDynamic{msg} + return true, err + case 6: // backend.hdfs + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(HDFS) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_Hdfs{msg} + return true, err + case 7: // backend.azure_blob_storage + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AzureBlobStorage) + err := b.DecodeMessage(msg) + m.Backend = &StorageBackend_AzureBlobStorage{msg} + return true, err + default: + return false, nil + } +} + +func _StorageBackend_OneofSizer(msg proto.Message) (n int) { + m := msg.(*StorageBackend) + // backend + switch x := m.Backend.(type) { + case *StorageBackend_Noop: + s := proto.Size(x.Noop) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_Local: + s := proto.Size(x.Local) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_S3: + s := proto.Size(x.S3) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_Gcs: + s := proto.Size(x.Gcs) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_CloudDynamic: + s := proto.Size(x.CloudDynamic) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_Hdfs: + s := proto.Size(x.Hdfs) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *StorageBackend_AzureBlobStorage: + s := proto.Size(x.AzureBlobStorage) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + // Noop storage backend saves files into void. type Noop struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -2197,7 +2428,7 @@ 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{21} + return fileDescriptor_brpb_89b16a7051b28740, []int{21} } func (m *Noop) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2207,15 +2438,15 @@ func (m *Noop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Noop.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *Noop) XXX_Merge(src proto.Message) { - xxx_messageInfo_Noop.Merge(m, src) +func (dst *Noop) XXX_Merge(src proto.Message) { + xxx_messageInfo_Noop.Merge(dst, src) } func (m *Noop) XXX_Size() int { return m.Size() @@ -2238,7 +2469,7 @@ 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{22} + return fileDescriptor_brpb_89b16a7051b28740, []int{22} } func (m *Local) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2248,15 +2479,15 @@ func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Local.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Local) XXX_Merge(src proto.Message) { + xxx_messageInfo_Local.Merge(dst, src) } func (m *Local) XXX_Size() int { return m.Size() @@ -2304,7 +2535,7 @@ 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{23} + return fileDescriptor_brpb_89b16a7051b28740, []int{23} } func (m *S3) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2314,15 +2545,15 @@ func (m *S3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_S3.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *S3) XXX_Merge(src proto.Message) { + xxx_messageInfo_S3.Merge(dst, src) } func (m *S3) XXX_Size() int { return m.Size() @@ -2475,7 +2706,7 @@ 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{24} + return fileDescriptor_brpb_89b16a7051b28740, []int{24} } func (m *GCS) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2485,15 +2716,15 @@ func (m *GCS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GCS.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GCS) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCS.Merge(dst, src) } func (m *GCS) XXX_Size() int { return m.Size() @@ -2561,7 +2792,7 @@ 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{25} + return fileDescriptor_brpb_89b16a7051b28740, []int{25} } func (m *AzureCustomerKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2571,15 +2802,15 @@ func (m *AzureCustomerKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_AzureCustomerKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AzureCustomerKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_AzureCustomerKey.Merge(dst, src) } func (m *AzureCustomerKey) XXX_Size() int { return m.Size() @@ -2651,7 +2882,7 @@ 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"` + EncryptionKey *AzureCustomerKey `protobuf:"bytes,10,opt,name=encryption_key,json=encryptionKey" json:"encryption_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2661,7 +2892,7 @@ 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{26} + return fileDescriptor_brpb_89b16a7051b28740, []int{26} } func (m *AzureBlobStorage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2671,15 +2902,15 @@ func (m *AzureBlobStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_AzureBlobStorage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AzureBlobStorage) XXX_Merge(src proto.Message) { + xxx_messageInfo_AzureBlobStorage.Merge(dst, src) } func (m *AzureBlobStorage) XXX_Size() int { return m.Size() @@ -2768,7 +2999,7 @@ 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{27} + return fileDescriptor_brpb_89b16a7051b28740, []int{27} } func (m *Bucket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2778,15 +3009,15 @@ func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Bucket.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Bucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bucket.Merge(dst, src) } func (m *Bucket) XXX_Size() int { return m.Size() @@ -2834,9 +3065,9 @@ 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"` + 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,proto3" json:"attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2846,7 +3077,7 @@ 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{28} + return fileDescriptor_brpb_89b16a7051b28740, []int{28} } func (m *CloudDynamic) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2856,15 +3087,15 @@ func (m *CloudDynamic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_CloudDynamic.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CloudDynamic) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloudDynamic.Merge(dst, src) } func (m *CloudDynamic) XXX_Size() int { return m.Size() @@ -2909,7 +3140,7 @@ 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{29} + return fileDescriptor_brpb_89b16a7051b28740, []int{29} } func (m *HDFS) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2919,15 +3150,15 @@ func (m *HDFS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_HDFS.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *HDFS) XXX_Merge(src proto.Message) { + xxx_messageInfo_HDFS.Merge(dst, src) } func (m *HDFS) XXX_Size() int { return m.Size() @@ -2946,10 +3177,10 @@ 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:"-"` @@ -2961,7 +3192,7 @@ 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{30} + return fileDescriptor_brpb_89b16a7051b28740, []int{30} } func (m *BackupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2971,15 +3202,15 @@ func (m *BackupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_BackupResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BackupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackupResponse.Merge(dst, src) } func (m *BackupResponse) XXX_Size() int { return m.Size() @@ -3038,7 +3269,7 @@ 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{31} + return fileDescriptor_brpb_89b16a7051b28740, []int{31} } func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3048,15 +3279,15 @@ func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CleanupRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CleanupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupRequest.Merge(dst, src) } func (m *CleanupRequest) XXX_Size() int { return m.Size() @@ -3075,7 +3306,7 @@ func (m *CleanupRequest) GetUniqueId() string { } type CleanupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3086,7 +3317,7 @@ 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{32} + return fileDescriptor_brpb_89b16a7051b28740, []int{32} } func (m *CleanupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3096,15 +3327,15 @@ func (m *CleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_CleanupResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CleanupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupResponse.Merge(dst, src) } func (m *CleanupResponse) XXX_Size() int { return m.Size() @@ -3141,7 +3372,7 @@ 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{33} + return fileDescriptor_brpb_89b16a7051b28740, []int{33} } func (m *PrepareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3151,15 +3382,15 @@ func (m *PrepareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_PrepareRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareRequest.Merge(dst, src) } func (m *PrepareRequest) XXX_Size() int { return m.Size() @@ -3178,7 +3409,7 @@ 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. @@ -3194,7 +3425,7 @@ 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{34} + return fileDescriptor_brpb_89b16a7051b28740, []int{34} } func (m *PrepareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3204,15 +3435,15 @@ func (m *PrepareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_PrepareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareResponse.Merge(dst, src) } func (m *PrepareResponse) XXX_Size() int { return m.Size() @@ -3261,7 +3492,7 @@ 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{35} + return fileDescriptor_brpb_89b16a7051b28740, []int{35} } func (m *CheckAdminRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3271,15 +3502,15 @@ func (m *CheckAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_CheckAdminRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckAdminRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckAdminRequest.Merge(dst, src) } func (m *CheckAdminRequest) XXX_Size() int { return m.Size() @@ -3291,8 +3522,8 @@ func (m *CheckAdminRequest) XXX_DiscardUnknown() { var xxx_messageInfo_CheckAdminRequest proto.InternalMessageInfo 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3303,7 +3534,7 @@ 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{36} + return fileDescriptor_brpb_89b16a7051b28740, []int{36} } func (m *CheckAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3313,15 +3544,15 @@ func (m *CheckAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CheckAdminResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckAdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckAdminResponse.Merge(dst, src) } func (m *CheckAdminResponse) XXX_Size() int { return m.Size() @@ -3354,7 +3585,7 @@ func (m *CheckAdminResponse) GetHasPendingAdmin() bool { } type ExternalStorageRestoreRequest struct { - StorageBackend *StorageBackend `protobuf:"bytes,1,opt,name=storage_backend,json=storageBackend,proto3" json:"storage_backend,omitempty"` + 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"` @@ -3367,7 +3598,7 @@ func (m *ExternalStorageRestoreRequest) Reset() { *m = ExternalStorageRe func (m *ExternalStorageRestoreRequest) String() string { return proto.CompactTextString(m) } func (*ExternalStorageRestoreRequest) ProtoMessage() {} func (*ExternalStorageRestoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{37} + return fileDescriptor_brpb_89b16a7051b28740, []int{37} } func (m *ExternalStorageRestoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3377,15 +3608,15 @@ func (m *ExternalStorageRestoreRequest) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_ExternalStorageRestoreRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ExternalStorageRestoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageRestoreRequest.Merge(dst, src) } func (m *ExternalStorageRestoreRequest) XXX_Size() int { return m.Size() @@ -3434,7 +3665,7 @@ func (m *ExternalStorageRestoreResponse) Reset() { *m = ExternalStorageR func (m *ExternalStorageRestoreResponse) String() string { return proto.CompactTextString(m) } func (*ExternalStorageRestoreResponse) ProtoMessage() {} func (*ExternalStorageRestoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{38} + return fileDescriptor_brpb_89b16a7051b28740, []int{38} } func (m *ExternalStorageRestoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3444,15 +3675,15 @@ func (m *ExternalStorageRestoreResponse) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_ExternalStorageRestoreResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ExternalStorageRestoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageRestoreResponse.Merge(dst, src) } func (m *ExternalStorageRestoreResponse) XXX_Size() int { return m.Size() @@ -3464,7 +3695,7 @@ func (m *ExternalStorageRestoreResponse) XXX_DiscardUnknown() { 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -3476,7 +3707,7 @@ func (m *ExternalStorageSaveRequest) Reset() { *m = ExternalStorageSaveR func (m *ExternalStorageSaveRequest) String() string { return proto.CompactTextString(m) } func (*ExternalStorageSaveRequest) ProtoMessage() {} func (*ExternalStorageSaveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{39} + return fileDescriptor_brpb_89b16a7051b28740, []int{39} } func (m *ExternalStorageSaveRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3486,15 +3717,15 @@ func (m *ExternalStorageSaveRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_ExternalStorageSaveRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ExternalStorageSaveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageSaveRequest.Merge(dst, src) } func (m *ExternalStorageSaveRequest) XXX_Size() int { return m.Size() @@ -3536,7 +3767,7 @@ func (m *ExternalStorageSaveResponse) Reset() { *m = ExternalStorageSave func (m *ExternalStorageSaveResponse) String() string { return proto.CompactTextString(m) } func (*ExternalStorageSaveResponse) ProtoMessage() {} func (*ExternalStorageSaveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_483d1f48d58a4885, []int{40} + return fileDescriptor_brpb_89b16a7051b28740, []int{40} } func (m *ExternalStorageSaveResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3546,15 +3777,15 @@ func (m *ExternalStorageSaveResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_ExternalStorageSaveResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ExternalStorageSaveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalStorageSaveResponse.Merge(dst, src) } func (m *ExternalStorageSaveResponse) XXX_Size() int { return m.Size() @@ -3567,10 +3798,10 @@ 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"` + 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"` + Watermark uint64 `protobuf:"varint,3,opt,name=watermark,proto3" json:"watermark,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"` @@ -3583,7 +3814,7 @@ 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{41} + return fileDescriptor_brpb_89b16a7051b28740, []int{41} } func (m *Metadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3593,15 +3824,15 @@ func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Metadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metadata.Merge(dst, src) } func (m *Metadata) XXX_Size() int { return m.Size() @@ -3633,9 +3864,9 @@ func (m *Metadata) GetStoreId() int64 { return 0 } -func (m *Metadata) GetResolvedTs() uint64 { +func (m *Metadata) GetWatermark() uint64 { if m != nil { - return m.ResolvedTs + return m.Watermark } return 0 } @@ -3666,14 +3897,14 @@ 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. MaxTs uint64 `protobuf:"varint,4,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - // 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 watermark of the region when saving the file. + MinWatermark uint64 `protobuf:"varint,5,opt,name=min_watermark,json=minWatermark,proto3" json:"min_watermark,omitempty"` // The file length after compressed. Length uint64 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -3685,7 +3916,7 @@ 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{42} + return fileDescriptor_brpb_89b16a7051b28740, []int{42} } func (m *DataFileGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3695,15 +3926,15 @@ func (m *DataFileGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_DataFileGroup.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DataFileGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataFileGroup.Merge(dst, src) } func (m *DataFileGroup) XXX_Size() int { return m.Size() @@ -3742,9 +3973,9 @@ func (m *DataFileGroup) GetMaxTs() uint64 { return 0 } -func (m *DataFileGroup) GetMinResolvedTs() uint64 { +func (m *DataFileGroup) GetMinWatermark() uint64 { if m != nil { - return m.MinResolvedTs + return m.MinWatermark } return 0 } @@ -3762,13 +3993,13 @@ 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. MaxTs uint64 `protobuf:"varint,5,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - // The resolved ts of the region when saving the file. - ResolvedTs uint64 `protobuf:"varint,6,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + // The watermark of the region when saving the file. + Watermark uint64 `protobuf:"varint,6,opt,name=watermark,proto3" json:"watermark,omitempty"` // The region of the file. RegionId int64 `protobuf:"varint,7,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` // The key range of the file. @@ -3802,7 +4033,7 @@ 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{43} + return fileDescriptor_brpb_89b16a7051b28740, []int{43} } func (m *DataFileInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3812,15 +4043,15 @@ func (m *DataFileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_DataFileInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DataFileInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataFileInfo.Merge(dst, src) } func (m *DataFileInfo) XXX_Size() int { return m.Size() @@ -3866,9 +4097,9 @@ func (m *DataFileInfo) GetMaxTs() uint64 { return 0 } -func (m *DataFileInfo) GetResolvedTs() uint64 { +func (m *DataFileInfo) GetWatermark() uint64 { if m != nil { - return m.ResolvedTs + return m.Watermark } return 0 } @@ -3975,7 +4206,7 @@ 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{44} + return fileDescriptor_brpb_89b16a7051b28740, []int{44} } func (m *StreamBackupError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3985,15 +4216,15 @@ func (m *StreamBackupError) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_StreamBackupError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StreamBackupError) XXX_Merge(src proto.Message) { + xxx_messageInfo_StreamBackupError.Merge(dst, src) } func (m *StreamBackupError) XXX_Size() int { return m.Size() @@ -4033,12 +4264,6 @@ func (m *StreamBackupError) GetStoreId() uint64 { } 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") @@ -4085,245 +4310,12 @@ func init() { proto.RegisterType((*DataFileGroup)(nil), "backup.DataFileGroup") proto.RegisterType((*DataFileInfo)(nil), "backup.DataFileInfo") proto.RegisterType((*StreamBackupError)(nil), "backup.StreamBackupError") -} - -func init() { proto.RegisterFile("brpb.proto", fileDescriptor_483d1f48d58a4885) } - -var fileDescriptor_483d1f48d58a4885 = []byte{ - // 3723 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x7a, 0x5b, 0x6f, 0x23, 0x47, - 0x76, 0xbf, 0x9a, 0x77, 0x1e, 0x92, 0x22, 0x55, 0x73, 0x31, 0xad, 0xd9, 0x99, 0x91, 0x7b, 0x3c, - 0xf3, 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xde, 0x09, 0x05, 0x52, 0x93, 0x97, 0xbc, 0x13, 0xd4, 0x08, 0x59, 0xaa, 0x45, 0x9c, - 0xf4, 0x8c, 0x6f, 0xf0, 0x82, 0x64, 0x88, 0xf9, 0x76, 0x42, 0xb9, 0xb0, 0xcd, 0x1b, 0x0a, 0x38, - 0x98, 0xd8, 0xdf, 0x95, 0xa0, 0x61, 0xa2, 0x8b, 0x7d, 0x04, 0x80, 0x75, 0xc1, 0x51, 0x16, 0xb0, - 0x16, 0x58, 0xa0, 0x39, 0xd2, 0xbc, 0x12, 0x99, 0x7d, 0x37, 0x67, 0x2e, 0x2d, 0x62, 0x46, 0xba, - 0x62, 0x2e, 0x24, 0xb6, 0xf2, 0xd5, 0x89, 0x6d, 0x36, 0x0f, 0x55, 0xde, 0x26, 0x0f, 0xe5, 0x69, - 0x40, 0xcd, 0xa9, 0x5d, 0xee, 0xd7, 0x26, 0x37, 0xa8, 0x99, 0x26, 0x0f, 0x55, 0xd7, 0xca, 0x26, - 0x0f, 0xd9, 0xf7, 0xa1, 0x3b, 0x17, 0xe1, 0xc8, 0x16, 0x44, 0x27, 0xb1, 0xf6, 0x61, 0x7a, 0xb6, - 0x9f, 0x01, 0x1c, 0x65, 0x6e, 0x26, 0xb7, 0xc3, 0xd8, 0x3b, 0x43, 0x33, 0x25, 0xc3, 0x0b, 0x19, - 0x78, 0x6e, 0x68, 0x6a, 0x5a, 0x99, 0x83, 0x81, 0x0e, 0x7c, 0xac, 0x55, 0xbf, 0x94, 0x71, 0xe4, - 0x64, 0x18, 0xf3, 0xda, 0x31, 0x9b, 0x88, 0x1c, 0x23, 0x60, 0xff, 0x14, 0x9a, 0xb4, 0x1a, 0x19, - 0x61, 0x03, 0x6a, 0x03, 0x5c, 0xd5, 0x18, 0x20, 0x0f, 0xe5, 0xe9, 0x0b, 0xb9, 0xe6, 0xb0, 0xff, - 0xce, 0x82, 0xe5, 0x7c, 0x66, 0x9e, 0x5c, 0xdf, 0x3a, 0x26, 0xde, 0x87, 0x06, 0x7a, 0x88, 0x23, - 0x22, 0x4f, 0xb7, 0x24, 0x75, 0x1c, 0xef, 0x45, 0x5e, 0x4e, 0x8a, 0xd3, 0x80, 0x42, 0x42, 0x93, - 0x5e, 0xa6, 0xc1, 0xac, 0x3f, 0x55, 0x67, 0xfd, 0x09, 0x55, 0x11, 0x44, 0x61, 0x10, 0x09, 0x07, - 0x8d, 0x4f, 0xb1, 0xd0, 0xe6, 0xa0, 0xa0, 0x5d, 0x37, 0x73, 0xed, 0x3f, 0x2e, 0x41, 0x4d, 0xd9, - 0x1c, 0x9d, 0xd7, 0x1f, 0x68, 0xb5, 0x96, 0xfc, 0x01, 0xbb, 0x0e, 0xd5, 0xa2, 0x82, 0xd4, 0x60, - 0x26, 0x78, 0xca, 0x57, 0x05, 0x4f, 0xe5, 0xea, 0xe0, 0xa9, 0xbe, 0x16, 0x3c, 0xff, 0x1f, 0x7a, - 0x59, 0x70, 0x12, 0xba, 0x72, 0xe8, 0xa4, 0x22, 0x09, 0x03, 0xcf, 0x95, 0x24, 0x70, 0x87, 0x77, - 0x35, 0xce, 0x35, 0x8c, 0xa2, 0x49, 0xd4, 0x33, 0x85, 0x6f, 0x9b, 0xab, 0x01, 0xfb, 0x29, 0xb4, - 0xe8, 0x41, 0x97, 0xbf, 0x06, 0xd9, 0xeb, 0xe6, 0x8c, 0xbd, 0x72, 0xc3, 0x70, 0x20, 0x56, 0x7a, - 0xb6, 0x9f, 0x43, 0xf5, 0x60, 0xf7, 0xb9, 0x9b, 0xa0, 0x8c, 0xe3, 0x44, 0x66, 0xa9, 0x70, 0x47, - 0x05, 0xcf, 0x31, 0xd0, 0x81, 0x8f, 0x09, 0xc8, 0x8f, 0x5f, 0x45, 0x53, 0x96, 0x12, 0xb1, 0xb4, - 0xa7, 0xe0, 0x81, 0x6f, 0xbf, 0x82, 0x36, 0x16, 0x04, 0x72, 0x26, 0x5c, 0x75, 0x91, 0x0f, 0x7c, - 0x08, 0xb5, 0xc0,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, 0x50, 0xdd, 0x54, 0x47, 0x93, 0xbc, 0x8c, 0x4d, 0x9d, 0xca, 0xf8, 0x07, 0x39, 0xd8, 0xe7, - 0xd0, 0xf5, 0x65, 0xe6, 0x14, 0x9b, 0xf5, 0xee, 0xe5, 0xcd, 0x7a, 0xc7, 0x97, 0xd9, 0xd6, 0xb4, - 0x5f, 0xff, 0x04, 0x40, 0x8e, 0x07, 0xa6, 0x01, 0xe8, 0xe9, 0x5e, 0xb9, 0x10, 0x1c, 0xba, 0x6b, - 0x90, 0xe3, 0x81, 0xae, 0xfd, 0x1f, 0x60, 0x70, 0x50, 0x72, 0x77, 0x52, 0xe1, 0xfa, 0x74, 0x76, - 0x68, 0x60, 0x28, 0x10, 0xc6, 0x85, 0xeb, 0xe7, 0x1d, 0x35, 0x7b, 0x43, 0x47, 0x7d, 0x0b, 0x9a, - 0xe3, 0x28, 0xf8, 0xd5, 0x58, 0xa0, 0x9f, 0x5e, 0x23, 0xb5, 0x37, 0x14, 0x70, 0xe0, 0x63, 0x0b, - 0xef, 0xc5, 0x51, 0x26, 0xce, 0x33, 0x3a, 0x05, 0x60, 0x2f, 0x63, 0xc4, 0xda, 0x51, 0x38, 0x37, - 0x0c, 0x5f, 0x55, 0x1a, 0xb5, 0x5e, 0x5d, 0x37, 0xd3, 0x7f, 0x51, 0x82, 0xeb, 0x47, 0x94, 0xdf, - 0xd5, 0xfb, 0x8e, 0x5d, 0x79, 0x46, 0x7a, 0xfa, 0x04, 0xea, 0xda, 0x17, 0x28, 0x26, 0x2e, 0x77, - 0x19, 0xc3, 0x46, 0xa5, 0x9c, 0x7c, 0x3e, 0x93, 0x26, 0x65, 0xd1, 0xf8, 0x58, 0xb2, 0x1b, 0x80, - 0x81, 0x81, 0x04, 0x55, 0x59, 0xab, 0x22, 0xf2, 0x8f, 0x65, 0x9e, 0xc9, 0x2b, 0x85, 0x4c, 0xfe, - 0x01, 0xb4, 0x29, 0xff, 0x62, 0xbf, 0x97, 0x89, 0x94, 0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be, 0xbf, 0x63, 0xfd, 0xe5, 0x7f, 0xde, 0x59, 0x82, 0x5e, 0x9c, 0x9e, 0x6e, 0x66, - 0xc1, 0xd9, 0x64, 0xf3, 0x6c, 0x42, 0xff, 0x39, 0x1b, 0xd4, 0xe8, 0xe7, 0xd1, 0xff, 0x04, 0x00, - 0x00, 0xff, 0xff, 0x1c, 0x1b, 0xef, 0xfe, 0xf7, 0x26, 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. @@ -4334,9 +4326,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. @@ -4475,7 +4466,8 @@ func (c *backupClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ... 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. @@ -4493,26 +4485,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) } @@ -4655,9 +4627,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) @@ -4691,7 +4662,8 @@ func (c *externalStorageClient) Save(ctx context.Context, in *ExternalStorageSav 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) @@ -4699,17 +4671,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) } @@ -4770,7 +4731,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 } @@ -4778,50 +4739,42 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4829,65 +4782,55 @@ 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 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Error.Size())) + n2, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } - 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)) + if m.LastLeaseIsValid { + dAtA[i] = 0x20 + i++ + if m.LastLeaseIsValid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x12 + i++ } - if m.Ty != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Ty)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4895,268 +4838,237 @@ 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-- + if len(m.Ddls) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls))) + i += copy(dAtA[i:], m.Ddls) + } + if len(m.BrVersion) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.BrVersion))) + i += copy(dAtA[i:], m.BrVersion) + } + if m.Version != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) + } + if m.FileIndex != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.FileIndex.Size())) + n3, err := m.FileIndex.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.SchemaIndex != nil { + 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.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 += n5 + } + if m.DdlIndexes != nil { + dAtA[i] = 0x82 + i++ dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + 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.BackupResult) > 0 { - i -= len(m.BackupResult) - copy(dAtA[i:], m.BackupResult) + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ i = encodeVarintBrpb(dAtA, i, uint64(len(m.BackupResult))) - i-- + i += copy(dAtA[i:], m.BackupResult) + } + if m.ApiVersion != 0 { + dAtA[i] = 0x90 + i++ dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ApiVersion)) } - if m.DdlIndexes != nil { - { - size, err := m.DdlIndexes.MarshalToSizedBuffer(dAtA[:i]) + 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 -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 } - if m.RawRangeIndex != nil { - { - size, err := m.RawRangeIndex.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - 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 - } - if m.FileIndex != nil { - { - size, err := m.FileIndex.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.Version != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x60 - } - if len(m.BrVersion) > 0 { - i -= len(m.BrVersion) - copy(dAtA[i:], m.BrVersion) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.BrVersion))) - i-- - dAtA[i] = 0x5a - } - if len(m.Ddls) > 0 { - i -= len(m.Ddls) - copy(dAtA[i:], m.Ddls) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls))) - i-- - dAtA[i] = 0x52 - } - if len(m.RawRanges) > 0 { - for iNdEx := len(m.RawRanges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RawRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } + if 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.IsRawKv { - i-- - if m.IsRawKv { + 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.BackupSize != 0 { + dAtA[i] = 0xc8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.BackupSize)) } - if m.ClusterId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5164,54 +5076,44 @@ 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.StartKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) + } + if len(m.EndKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } if len(m.Files) > 0 { - for 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-- + 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 } } - 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 - } - 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5219,98 +5121,86 @@ 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.TotalKvs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalKvs)) } - if m.StartVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x28 + if m.TotalBytes != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TotalBytes)) } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x22 + if len(m.Cf) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x1a + if m.Size_ != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Size_)) } - 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] = 0x62 + 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5318,105 +5208,88 @@ 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 + i += n } } - if len(m.Ddls) > 0 { - for iNdEx := len(m.Ddls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ddls[iNdEx]) - copy(dAtA[i:], m.Ddls[iNdEx]) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Ddls[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.RawRanges) > 0 { - for 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -5424,33 +5297,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -5458,38 +5324,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5497,40 +5356,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -5538,64 +5389,54 @@ 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.CipherIv) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CipherIv))) + i += copy(dAtA[i:], m.CipherIv) } - 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.InlineData) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.InlineData))) + i += copy(dAtA[i:], m.InlineData) } - 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5603,81 +5444,70 @@ 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.TiflashReplicas != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TiflashReplicas)) } - if m.Crc64Xor != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Crc64Xor)) - i-- - dAtA[i] = 0x18 + 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.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.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 + } } - 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5685,36 +5515,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5722,59 +5546,48 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5782,59 +5595,48 @@ func (m *PitrDBMap) Marshal() (dAtA []byte, err error) { } func (m *PitrDBMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PitrDBMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.Tables) > 0 { - for iNdEx := len(m.Tables) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tables[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.IdMap != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.IdMap.Size())) + n8, err := m.IdMap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n8 } - if m.IdMap != nil { - { - size, err := m.IdMap.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Tables) > 0 { + for _, msg := range m.Tables { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5842,47 +5644,38 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5890,36 +5683,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5927,105 +5714,75 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 *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 } @@ -6033,38 +5790,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6072,179 +5822,161 @@ func (m *BackupRequest) Marshal() (dAtA []byte, err error) { } func (m *BackupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.ClusterId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 + if len(m.StartKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } - if len(m.UniqueId) > 0 { - i -= len(m.UniqueId) - copy(dAtA[i:], m.UniqueId) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.UniqueId))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + if len(m.EndKey) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.Mode != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if m.StartVersion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) } - if m.ReplicaRead { - i-- - if m.ReplicaRead { + if m.EndVersion != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) + } + if m.RateLimit != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) + } + if m.Concurrency != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) + } + if m.StorageBackend != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StorageBackend.Size())) + n13, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.IsRawKv { + dAtA[i] = 0x50 + i++ + if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + i++ } - if len(m.SubRanges) > 0 { - for iNdEx := len(m.SubRanges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SubRanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + if len(m.Cf) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if m.CompressionType != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + } + if m.CompressionLevel != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionLevel)) + } + if m.CipherInfo != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CipherInfo.Size())) + n14, err := m.CipherInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n14 } if m.DstApiVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.DstApiVersion)) - i-- dAtA[i] = 0x78 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.DstApiVersion)) } - if m.CipherInfo != nil { - { - size, err := m.CipherInfo.MarshalToSizedBuffer(dAtA[:i]) + if len(m.SubRanges) > 0 { + for _, msg := range m.SubRanges { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x72 - } - if m.CompressionLevel != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionLevel)) - i-- - dAtA[i] = 0x68 - } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x60 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x5a } - if m.IsRawKv { - i-- - if m.IsRawKv { + if m.ReplicaRead { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + if m.ReplicaRead { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x50 - } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.Concurrency != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Concurrency)) - i-- - dAtA[i] = 0x40 - } - if m.RateLimit != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RateLimit)) - i-- - dAtA[i] = 0x38 - } - if m.EndVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndVersion)) - i-- - dAtA[i] = 0x28 + i++ } - if m.StartVersion != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x20 + if m.Mode != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Mode)) } - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x1a + if len(m.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 len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 + if m.Context != nil { + dAtA[i] = 0xa2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Context.Size())) + n15, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 } - if m.ClusterId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6252,69 +5984,66 @@ func (m *StreamBackupTaskInfo) Marshal() (dAtA []byte, err error) { } func (m *StreamBackupTaskInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamBackupTaskInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x30 - } - if len(m.TableFilter) > 0 { - for iNdEx := len(m.TableFilter) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TableFilter[iNdEx]) - copy(dAtA[i:], m.TableFilter[iNdEx]) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.TableFilter[iNdEx]))) - i-- - dAtA[i] = 0x2a + if m.Storage != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Storage.Size())) + n16, err := m.Storage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n16 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x22 + if m.StartTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) } if m.EndTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.EndTs)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.EndTs)) } - if m.StartTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 + if len(m.Name) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.Storage != nil { - { - size, err := m.Storage.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.TableFilter) > 0 { + for _, s := range m.TableFilter { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.CompressionType != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -6322,182 +6051,125 @@ 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 - } + nn17, err := m.Backend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn17 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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())) + n18, err := m.Noop.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - 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())) + n19, err := m.Local.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - 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())) + n20, err := m.S3.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 } - 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())) + n21, err := m.Gcs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - 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())) + n22, err := m.CloudDynamic.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - 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())) + n23, err := m.Hdfs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } - 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())) + n24, err := m.AzureBlobStorage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 } - 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 } @@ -6505,26 +6177,20 @@ 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) + i += 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 } @@ -6532,33 +6198,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6566,155 +6225,134 @@ 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 + i++ } - 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 + 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.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.RoleArn) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.RoleArn))) + i += copy(dAtA[i:], m.RoleArn) } - 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.ExternalId) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.ExternalId))) + i += copy(dAtA[i:], m.ExternalId) } - 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 m.ObjectLockEnabled { + dAtA[i] = 0x70 + i++ + if m.ObjectLockEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if len(m.Prefix) > 0 { - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Prefix))) - i-- - dAtA[i] = 0x22 + if len(m.SessionToken) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.SessionToken))) + i += copy(dAtA[i:], m.SessionToken) } - 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.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.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.Profile) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Profile))) + i += copy(dAtA[i:], m.Profile) } - if len(m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6722,68 +6360,56 @@ 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.PredefinedAcl) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.PredefinedAcl))) + i += copy(dAtA[i:], m.PredefinedAcl) } - 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.CredentialsBlob) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.CredentialsBlob))) + i += copy(dAtA[i:], m.CredentialsBlob) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6791,40 +6417,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6832,94 +6450,78 @@ 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())) + n25, err := m.EncryptionKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6927,61 +6529,50 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6989,64 +6580,53 @@ 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())) + n26, err := m.Bucket.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n26 } 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -7054,33 +6634,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -7088,71 +6661,59 @@ 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())) + n27, 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 += n27 } 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -7160,33 +6721,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -7194,48 +6748,40 @@ 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())) + n28, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 } if m.Success { - i-- + dAtA[i] = 0x10 + i++ if m.Success { 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 = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7243,36 +6789,30 @@ 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7280,55 +6820,46 @@ 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())) + n29, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 } - 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.CollectFileSize != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CollectFileSize)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7336,26 +6867,20 @@ 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) + i += 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 } @@ -7363,60 +6888,50 @@ 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())) + n30, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 + } + if m.Region != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Region.Size())) + n31, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 } 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 + i++ } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7424,57 +6939,47 @@ 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())) + n32, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n32 } - 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.ContentLength != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.ContentLength)) } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBrpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7482,26 +6987,20 @@ 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) + i += 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 } @@ -7509,50 +7008,41 @@ 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())) + n33, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 } 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7560,26 +7050,20 @@ 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) + i += 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 } @@ -7587,79 +7071,69 @@ 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.StoreId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) + } + if m.Watermark != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Watermark)) } 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.ResolvedTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) - i-- - dAtA[i] = 0x18 - } - if m.StoreId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x10 + if m.MinTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) } - 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.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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -7667,67 +7141,58 @@ 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 m.MinWatermark != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinWatermark)) } - 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.Length != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7735,137 +7200,126 @@ func (m *DataFileInfo) Marshal() (dAtA []byte, err error) { } func (m *DataFileInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataFileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Sha256) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) + i += copy(dAtA[i:], m.Sha256) } - if m.CompressionType != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 + if len(m.Path) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) } - if m.RangeLength != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 + if m.NumberOfEntries != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) } - if m.RangeOffset != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 + if m.MinTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) } - if m.MinBeginTsInDefaultCf != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) - i-- - dAtA[i] = 0x78 + if m.MaxTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) } - if m.Length != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x70 + if m.Watermark != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Watermark)) } - if m.TableId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) - i-- - dAtA[i] = 0x68 + if m.RegionId != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) + } + if len(m.StartKey) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) + } + if len(m.EndKey) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) + } + if len(m.Cf) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if m.Type != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Type)) } if m.IsMeta { - i-- + dAtA[i] = 0x60 + i++ if m.IsMeta { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x60 - } - if m.Type != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x58 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x52 - } - 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 + i++ } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x42 - } - if m.RegionId != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x38 + if m.TableId != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.TableId)) } - if m.ResolvedTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.ResolvedTs)) - i-- - dAtA[i] = 0x30 + if m.Length != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.Length)) } - if m.MaxTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MaxTs)) - i-- - dAtA[i] = 0x28 + if m.MinBeginTsInDefaultCf != 0 { + dAtA[i] = 0x78 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.MinBeginTsInDefaultCf)) } - if m.MinTs != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.MinTs)) - i-- - dAtA[i] = 0x20 + if m.RangeOffset != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeOffset)) } - if m.NumberOfEntries != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.NumberOfEntries)) - i-- - dAtA[i] = 0x18 + if m.RangeLength != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.RangeLength)) } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 + if m.CompressionType != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.CompressionType)) } - if len(m.Sha256) > 0 { - i -= len(m.Sha256) - copy(dAtA[i:], m.Sha256) - i = encodeVarintBrpb(dAtA, i, uint64(len(m.Sha256))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -7873,61 +7327,48 @@ 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.StoreId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintBrpb(dAtA, i, uint64(m.StoreId)) } - if m.HappenAt != 0 { - i = encodeVarintBrpb(dAtA, i, uint64(m.HappenAt)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -7949,9 +7390,6 @@ func (m *PrepareSnapshotBackupRequest) Size() (n int) { } func (m *PrepareSnapshotBackupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Ty != 0 { @@ -7975,9 +7413,6 @@ func (m *PrepareSnapshotBackupResponse) Size() (n int) { } func (m *BackupMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -8086,9 +7521,6 @@ func (m *BackupMeta) Size() (n int) { } func (m *BackupRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -8112,9 +7544,6 @@ func (m *BackupRange) Size() (n int) { } func (m *File) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -8166,9 +7595,6 @@ func (m *File) Size() (n int) { } func (m *MetaFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.MetaFiles) > 0 { @@ -8214,9 +7640,6 @@ func (m *MetaFile) Size() (n int) { } func (m *PlacementPolicy) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Info) @@ -8230,9 +7653,6 @@ func (m *PlacementPolicy) Size() (n int) { } func (m *StatsBlock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PhysicalId != 0 { @@ -8249,9 +7669,6 @@ func (m *StatsBlock) Size() (n int) { } func (m *StatsFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Blocks) > 0 { @@ -8267,9 +7684,6 @@ func (m *StatsFile) Size() (n int) { } func (m *StatsFileIndex) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -8301,9 +7715,6 @@ func (m *StatsFileIndex) Size() (n int) { } func (m *Schema) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Db) @@ -8343,9 +7754,6 @@ func (m *Schema) Size() (n int) { } func (m *IDMap) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.UpstreamId != 0 { @@ -8361,9 +7769,6 @@ func (m *IDMap) Size() (n int) { } func (m *PitrTableMap) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -8387,9 +7792,6 @@ func (m *PitrTableMap) Size() (n int) { } func (m *PitrDBMap) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -8413,9 +7815,6 @@ func (m *PitrDBMap) Size() (n int) { } func (m *RawRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -8437,9 +7836,6 @@ func (m *RawRange) Size() (n int) { } func (m *ClusterIDError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Current != 0 { @@ -8455,9 +7851,6 @@ func (m *ClusterIDError) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Msg) @@ -8474,9 +7867,6 @@ func (m *Error) Size() (n int) { } func (m *Error_ClusterIdError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterIdError != nil { @@ -8486,9 +7876,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 { @@ -8498,9 +7885,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 { @@ -8510,9 +7894,6 @@ func (m *Error_RegionError) Size() (n int) { return n } func (m *CipherInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CipherType != 0 { @@ -8529,9 +7910,6 @@ func (m *CipherInfo) Size() (n int) { } func (m *BackupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -8608,9 +7986,6 @@ func (m *BackupRequest) Size() (n int) { } func (m *StreamBackupTaskInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Storage != nil { @@ -8643,9 +8018,6 @@ func (m *StreamBackupTaskInfo) Size() (n int) { } func (m *StorageBackend) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Backend != nil { @@ -8658,9 +8030,6 @@ func (m *StorageBackend) Size() (n int) { } func (m *StorageBackend_Noop) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Noop != nil { @@ -8670,9 +8039,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 { @@ -8682,9 +8048,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 { @@ -8694,9 +8057,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 { @@ -8706,9 +8066,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 { @@ -8718,9 +8075,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 { @@ -8730,9 +8084,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 { @@ -8742,9 +8093,6 @@ 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 { @@ -8754,9 +8102,6 @@ func (m *Noop) Size() (n int) { } func (m *Local) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) @@ -8770,9 +8115,6 @@ func (m *Local) Size() (n int) { } func (m *S3) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -8848,9 +8190,6 @@ func (m *S3) Size() (n int) { } func (m *GCS) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -8884,9 +8223,6 @@ func (m *GCS) Size() (n int) { } func (m *AzureCustomerKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.EncryptionKey) @@ -8904,9 +8240,6 @@ func (m *AzureCustomerKey) Size() (n int) { } func (m *AzureBlobStorage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -8952,9 +8285,6 @@ func (m *AzureBlobStorage) Size() (n int) { } func (m *Bucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Endpoint) @@ -8984,9 +8314,6 @@ func (m *Bucket) Size() (n int) { } func (m *CloudDynamic) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Bucket != nil { @@ -9012,9 +8339,6 @@ func (m *CloudDynamic) Size() (n int) { } func (m *HDFS) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Remote) @@ -9028,9 +8352,6 @@ func (m *HDFS) Size() (n int) { } func (m *BackupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -9061,9 +8382,6 @@ func (m *BackupResponse) Size() (n int) { } func (m *CleanupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.UniqueId) @@ -9077,9 +8395,6 @@ func (m *CleanupRequest) Size() (n int) { } func (m *CleanupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -9096,9 +8411,6 @@ func (m *CleanupResponse) Size() (n int) { } func (m *PrepareRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SaveToStorage { @@ -9111,9 +8423,6 @@ func (m *PrepareRequest) Size() (n int) { } func (m *PrepareResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -9137,9 +8446,6 @@ func (m *PrepareResponse) Size() (n int) { } func (m *CheckAdminRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -9149,9 +8455,6 @@ func (m *CheckAdminRequest) Size() (n int) { } func (m *CheckAdminResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -9172,9 +8475,6 @@ func (m *CheckAdminResponse) Size() (n int) { } func (m *ExternalStorageRestoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StorageBackend != nil { @@ -9199,9 +8499,6 @@ func (m *ExternalStorageRestoreRequest) Size() (n int) { } func (m *ExternalStorageRestoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -9211,9 +8508,6 @@ func (m *ExternalStorageRestoreResponse) Size() (n int) { } func (m *ExternalStorageSaveRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StorageBackend != nil { @@ -9234,9 +8528,6 @@ func (m *ExternalStorageSaveRequest) Size() (n int) { } func (m *ExternalStorageSaveResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -9246,9 +8537,6 @@ func (m *ExternalStorageSaveResponse) Size() (n int) { } func (m *Metadata) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Files) > 0 { @@ -9260,8 +8548,8 @@ func (m *Metadata) Size() (n int) { if m.StoreId != 0 { n += 1 + sovBrpb(uint64(m.StoreId)) } - if m.ResolvedTs != 0 { - n += 1 + sovBrpb(uint64(m.ResolvedTs)) + if m.Watermark != 0 { + n += 1 + sovBrpb(uint64(m.Watermark)) } if m.MaxTs != 0 { n += 1 + sovBrpb(uint64(m.MaxTs)) @@ -9285,9 +8573,6 @@ func (m *Metadata) Size() (n int) { } func (m *DataFileGroup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) @@ -9306,8 +8591,8 @@ func (m *DataFileGroup) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovBrpb(uint64(m.MaxTs)) } - if m.MinResolvedTs != 0 { - n += 1 + sovBrpb(uint64(m.MinResolvedTs)) + if m.MinWatermark != 0 { + n += 1 + sovBrpb(uint64(m.MinWatermark)) } if m.Length != 0 { n += 1 + sovBrpb(uint64(m.Length)) @@ -9319,9 +8604,6 @@ func (m *DataFileGroup) Size() (n int) { } func (m *DataFileInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Sha256) @@ -9341,8 +8623,8 @@ func (m *DataFileInfo) Size() (n int) { if m.MaxTs != 0 { n += 1 + sovBrpb(uint64(m.MaxTs)) } - if m.ResolvedTs != 0 { - n += 1 + sovBrpb(uint64(m.ResolvedTs)) + if m.Watermark != 0 { + n += 1 + sovBrpb(uint64(m.Watermark)) } if m.RegionId != 0 { n += 1 + sovBrpb(uint64(m.RegionId)) @@ -9390,9 +8672,6 @@ func (m *DataFileInfo) Size() (n int) { } func (m *StreamBackupError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.HappenAt != 0 { @@ -9416,7 +8695,14 @@ func (m *StreamBackupError) Size() (n int) { } 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)))) @@ -9436,7 +8722,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 } @@ -9464,7 +8750,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 } @@ -9483,7 +8769,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 } @@ -9492,9 +8778,6 @@ func (m *PrepareSnapshotBackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9517,7 +8800,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 } @@ -9528,7 +8811,7 @@ 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 { @@ -9559,7 +8842,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 } @@ -9587,7 +8870,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 } @@ -9606,7 +8889,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 } @@ -9615,9 +8898,6 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9642,7 +8922,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 } @@ -9651,9 +8931,6 @@ func (m *PrepareSnapshotBackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9678,7 +8955,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 } @@ -9690,7 +8967,7 @@ 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 { @@ -9721,7 +8998,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 } @@ -9749,7 +9026,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 } @@ -9768,7 +9045,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 } @@ -9778,9 +9055,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9800,7 +9074,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 } @@ -9809,9 +9083,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9834,7 +9105,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 } @@ -9853,7 +9124,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 } @@ -9872,7 +9143,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 } @@ -9881,9 +9152,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9906,7 +9174,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 } @@ -9926,7 +9194,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 } @@ -9935,9 +9203,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9960,7 +9225,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 } @@ -9969,9 +9234,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9994,7 +9256,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 } @@ -10004,9 +9266,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10026,7 +9285,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 } @@ -10045,7 +9304,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 } @@ -10054,9 +9313,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10081,7 +9337,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 } @@ -10090,9 +9346,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10117,7 +9370,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 } @@ -10126,9 +9379,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10153,7 +9403,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 } @@ -10162,9 +9412,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10189,7 +9436,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 } @@ -10199,9 +9446,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10221,7 +9465,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 } @@ -10240,7 +9484,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 } @@ -10249,9 +9493,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10274,7 +9515,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 } @@ -10284,9 +9525,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10306,7 +9544,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 } @@ -10326,7 +9564,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 } @@ -10335,9 +9573,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10360,7 +9595,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 } @@ -10379,7 +9614,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 } @@ -10388,9 +9623,6 @@ func (m *BackupMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10413,7 +9645,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 } @@ -10424,7 +9656,7 @@ 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 { @@ -10455,7 +9687,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 } @@ -10483,7 +9715,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 } @@ -10492,9 +9724,6 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10517,7 +9746,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 } @@ -10526,9 +9755,6 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10551,7 +9777,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 } @@ -10560,9 +9786,6 @@ func (m *BackupRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10577,7 +9800,7 @@ 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 { @@ -10608,7 +9831,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 } @@ -10636,7 +9859,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 } @@ -10646,9 +9869,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10668,7 +9888,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 } @@ -10677,9 +9897,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10702,7 +9919,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 } @@ -10711,9 +9928,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10736,7 +9950,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 } @@ -10745,9 +9959,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10770,7 +9981,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 } @@ -10789,7 +10000,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 } @@ -10808,7 +10019,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 } @@ -10827,7 +10038,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 } @@ -10846,7 +10057,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 } @@ -10865,7 +10076,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 } @@ -10875,9 +10086,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10897,7 +10105,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 } @@ -10916,7 +10124,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 } @@ -10925,9 +10133,6 @@ func (m *File) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10942,7 +10147,7 @@ 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 { @@ -10973,7 +10178,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 } @@ -11001,7 +10206,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 } @@ -11010,9 +10215,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11035,7 +10237,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 } @@ -11044,9 +10246,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11069,7 +10268,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 } @@ -11078,9 +10277,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11103,7 +10299,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 } @@ -11112,9 +10308,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11137,7 +10330,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 } @@ -11146,9 +10339,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11169,7 +10359,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 } @@ -11178,9 +10368,6 @@ func (m *MetaFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11195,7 +10382,7 @@ 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 { @@ -11226,7 +10413,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 } @@ -11254,7 +10441,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 } @@ -11263,9 +10450,6 @@ func (m *PlacementPolicy) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11280,7 +10464,7 @@ 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 { @@ -11311,7 +10495,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 } @@ -11339,7 +10523,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 } @@ -11358,7 +10542,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 } @@ -11367,9 +10551,6 @@ func (m *StatsBlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11384,7 +10565,7 @@ 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 { @@ -11415,7 +10596,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 } @@ -11443,7 +10624,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 } @@ -11452,9 +10633,6 @@ func (m *StatsFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11469,7 +10647,7 @@ 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 { @@ -11500,7 +10678,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 } @@ -11528,7 +10706,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 } @@ -11538,9 +10716,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11560,7 +10735,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 } @@ -11569,9 +10744,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11594,7 +10766,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 } @@ -11613,7 +10785,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 } @@ -11632,7 +10804,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 } @@ -11641,9 +10813,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11666,7 +10835,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 } @@ -11675,9 +10844,6 @@ func (m *StatsFileIndex) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11692,7 +10858,7 @@ 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 { @@ -11723,7 +10889,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 } @@ -11751,7 +10917,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 } @@ -11760,9 +10926,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11785,7 +10948,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 } @@ -11794,9 +10957,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11819,7 +10979,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 } @@ -11838,7 +10998,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 } @@ -11857,7 +11017,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 } @@ -11876,7 +11036,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 } @@ -11895,7 +11055,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 } @@ -11904,9 +11064,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11929,7 +11086,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 } @@ -11938,9 +11095,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11955,7 +11109,7 @@ 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 { @@ -11986,7 +11140,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 } @@ -12014,7 +11168,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 } @@ -12033,7 +11187,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 } @@ -12044,7 +11198,7 @@ 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 { @@ -12075,7 +11229,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 } @@ -12103,7 +11257,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 } @@ -12113,9 +11267,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12135,7 +11286,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 } @@ -12144,9 +11295,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12171,7 +11319,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 } @@ -12180,9 +11328,6 @@ func (m *PitrTableMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12197,7 +11342,7 @@ 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 { @@ -12228,7 +11373,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 } @@ -12256,7 +11401,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 } @@ -12266,9 +11411,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12288,7 +11430,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 } @@ -12297,9 +11439,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12324,7 +11463,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 } @@ -12333,9 +11472,6 @@ func (m *PitrDBMap) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12350,7 +11486,7 @@ 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 { @@ -12381,7 +11517,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 } @@ -12409,7 +11545,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 } @@ -12418,9 +11554,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12443,7 +11576,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 } @@ -12452,9 +11585,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12477,7 +11607,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 } @@ -12487,9 +11617,6 @@ func (m *RawRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12501,7 +11628,7 @@ 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 { @@ -12532,7 +11659,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 } @@ -12560,7 +11687,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 } @@ -12579,7 +11706,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 } @@ -12590,7 +11717,7 @@ 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 { @@ -12621,7 +11748,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 } @@ -12649,7 +11776,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 } @@ -12659,9 +11786,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12681,7 +11805,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 } @@ -12690,9 +11814,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12716,7 +11837,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 } @@ -12725,9 +11846,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12751,7 +11869,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 } @@ -12760,9 +11878,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12778,7 +11893,7 @@ 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 { @@ -12809,7 +11924,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 } @@ -12837,7 +11952,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 } @@ -12856,7 +11971,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 } @@ -12865,9 +11980,6 @@ func (m *CipherInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12882,7 +11994,7 @@ 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 { @@ -12913,7 +12025,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 } @@ -12941,7 +12053,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 } @@ -12960,7 +12072,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 } @@ -12969,9 +12081,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12994,7 +12103,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 } @@ -13003,9 +12112,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13028,7 +12134,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 } @@ -13047,7 +12153,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 } @@ -13066,7 +12172,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 } @@ -13085,7 +12191,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 } @@ -13104,7 +12210,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 } @@ -13113,9 +12219,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13140,7 +12243,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 } @@ -13160,7 +12263,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 } @@ -13170,9 +12273,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13192,7 +12292,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 } @@ -13211,7 +12311,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 } @@ -13230,7 +12330,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 } @@ -13239,9 +12339,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13266,7 +12363,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 } @@ -13285,7 +12382,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 } @@ -13294,9 +12391,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13319,7 +12413,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 } @@ -13339,7 +12433,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 } @@ -13358,7 +12452,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 } @@ -13368,9 +12462,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13390,7 +12481,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 } @@ -13399,9 +12490,6 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13418,7 +12506,7 @@ 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 { @@ -13449,7 +12537,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 } @@ -13477,7 +12565,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 } @@ -13486,9 +12574,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13513,7 +12598,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 } @@ -13532,7 +12617,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 } @@ -13551,7 +12636,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 } @@ -13561,9 +12646,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13583,7 +12665,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 } @@ -13593,9 +12675,6 @@ func (m *StreamBackupTaskInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13615,7 +12694,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 } @@ -13626,7 +12705,7 @@ 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 { @@ -13657,7 +12736,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 } @@ -13685,7 +12764,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 } @@ -13694,9 +12773,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13720,7 +12796,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 } @@ -13729,9 +12805,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13755,7 +12828,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 } @@ -13764,9 +12837,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13790,7 +12860,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 } @@ -13799,9 +12869,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13825,7 +12892,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 } @@ -13834,9 +12901,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13860,7 +12924,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 } @@ -13869,9 +12933,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13895,7 +12956,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 } @@ -13904,9 +12965,6 @@ func (m *StorageBackend) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13922,7 +12980,7 @@ 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 { @@ -13953,7 +13011,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 } @@ -13973,7 +13031,7 @@ 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 { @@ -14004,7 +13062,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 } @@ -14032,7 +13090,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 } @@ -14042,9 +13100,6 @@ func (m *Local) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14056,7 +13111,7 @@ 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 { @@ -14087,7 +13142,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 } @@ -14115,7 +13170,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 } @@ -14125,9 +13180,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14147,7 +13199,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 } @@ -14157,9 +13209,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14179,7 +13228,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 } @@ -14189,9 +13238,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14211,7 +13257,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 } @@ -14221,9 +13267,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14243,7 +13286,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 } @@ -14253,9 +13296,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14275,7 +13315,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 } @@ -14285,9 +13325,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14307,7 +13344,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 } @@ -14317,9 +13354,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14339,7 +13373,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 } @@ -14349,9 +13383,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14371,7 +13402,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 } @@ -14381,9 +13412,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14403,7 +13431,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 } @@ -14423,7 +13451,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 } @@ -14433,9 +13461,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14455,7 +13480,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 } @@ -14465,9 +13490,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14487,7 +13509,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 } @@ -14497,9 +13519,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14519,7 +13538,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 } @@ -14539,7 +13558,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 } @@ -14549,9 +13568,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14571,7 +13587,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 } @@ -14581,9 +13597,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14603,7 +13616,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 } @@ -14613,9 +13626,6 @@ func (m *S3) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14627,7 +13637,7 @@ 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 { @@ -14658,7 +13668,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 } @@ -14686,7 +13696,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 } @@ -14696,9 +13706,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14718,7 +13725,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 } @@ -14728,9 +13735,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14750,7 +13754,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 } @@ -14760,9 +13764,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14782,7 +13783,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 } @@ -14792,9 +13793,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14814,7 +13812,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 } @@ -14824,9 +13822,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14846,7 +13841,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 } @@ -14856,9 +13851,6 @@ func (m *GCS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14870,7 +13862,7 @@ 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 { @@ -14901,7 +13893,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 } @@ -14929,7 +13921,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 } @@ -14939,9 +13931,6 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14961,7 +13950,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 } @@ -14971,9 +13960,6 @@ func (m *AzureCustomerKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -14985,7 +13971,7 @@ 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 { @@ -15016,7 +14002,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 } @@ -15044,7 +14030,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 } @@ -15054,9 +14040,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15076,7 +14059,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 } @@ -15086,9 +14069,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15108,7 +14088,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 } @@ -15118,9 +14098,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15140,7 +14117,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 } @@ -15150,9 +14127,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15172,7 +14146,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 } @@ -15182,9 +14156,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15204,7 +14175,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 } @@ -15214,9 +14185,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15236,7 +14204,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 } @@ -15246,9 +14214,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15268,7 +14233,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 } @@ -15278,9 +14243,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15300,7 +14262,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 } @@ -15309,9 +14271,6 @@ func (m *AzureBlobStorage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15328,7 +14287,7 @@ 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 { @@ -15359,7 +14318,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 } @@ -15387,7 +14346,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 } @@ -15397,9 +14356,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15419,7 +14375,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 } @@ -15429,9 +14385,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15451,7 +14404,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 } @@ -15461,9 +14414,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15483,7 +14433,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 } @@ -15493,9 +14443,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15515,7 +14462,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 } @@ -15525,9 +14472,6 @@ func (m *Bucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15539,7 +14483,7 @@ 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 { @@ -15570,7 +14514,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 } @@ -15598,7 +14542,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 } @@ -15607,9 +14551,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15634,7 +14575,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 } @@ -15644,9 +14585,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15666,7 +14604,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 } @@ -15675,9 +14613,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15698,7 +14633,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 } @@ -15715,7 +14650,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 } @@ -15725,9 +14660,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthBrpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -15744,7 +14676,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 } @@ -15754,9 +14686,6 @@ func (m *CloudDynamic) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthBrpb - } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -15768,7 +14697,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 { @@ -15785,7 +14714,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) > l { @@ -15816,7 +14745,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 } @@ -15844,7 +14773,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 } @@ -15854,9 +14783,6 @@ func (m *HDFS) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15868,7 +14794,7 @@ 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 { @@ -15899,7 +14825,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 } @@ -15927,7 +14853,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 } @@ -15936,9 +14862,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15963,7 +14886,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 } @@ -15972,9 +14895,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -15997,7 +14917,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 } @@ -16006,9 +14926,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16031,7 +14948,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 } @@ -16040,9 +14957,6 @@ func (m *BackupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16065,7 +14979,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 } @@ -16076,7 +14990,7 @@ 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 { @@ -16107,7 +15021,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 } @@ -16135,7 +15049,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 } @@ -16145,9 +15059,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16159,7 +15070,7 @@ 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 { @@ -16190,7 +15101,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 } @@ -16218,7 +15129,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 } @@ -16227,9 +15138,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16254,7 +15162,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 } @@ -16266,7 +15174,7 @@ 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 { @@ -16297,7 +15205,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 } @@ -16325,7 +15233,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 } @@ -16337,7 +15245,7 @@ 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 { @@ -16368,7 +15276,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 } @@ -16396,7 +15304,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 } @@ -16405,9 +15313,6 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16432,7 +15337,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 } @@ -16442,9 +15347,6 @@ func (m *PrepareResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16464,7 +15366,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 } @@ -16483,7 +15385,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 } @@ -16494,7 +15396,7 @@ 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 { @@ -16525,7 +15427,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 } @@ -16545,7 +15447,7 @@ 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 { @@ -16576,7 +15478,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 } @@ -16604,7 +15506,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 } @@ -16613,9 +15515,6 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16640,7 +15539,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 } @@ -16649,9 +15548,6 @@ func (m *CheckAdminResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16676,7 +15572,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 } @@ -16688,7 +15584,7 @@ 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 { @@ -16719,7 +15615,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 } @@ -16747,7 +15643,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 } @@ -16756,9 +15652,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16783,7 +15676,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 } @@ -16793,9 +15686,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16815,7 +15705,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 } @@ -16825,9 +15715,6 @@ func (m *ExternalStorageRestoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -16847,7 +15734,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 } @@ -16858,7 +15745,7 @@ 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 { @@ -16889,7 +15776,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 } @@ -16909,7 +15796,7 @@ 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 { @@ -16940,7 +15827,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 } @@ -16968,7 +15855,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 } @@ -16977,9 +15864,6 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17004,7 +15888,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 } @@ -17014,9 +15898,6 @@ func (m *ExternalStorageSaveRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17036,7 +15917,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 } @@ -17047,7 +15928,7 @@ 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 { @@ -17078,7 +15959,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 } @@ -17098,7 +15979,7 @@ 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 { @@ -17129,7 +16010,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 } @@ -17157,7 +16038,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 } @@ -17166,9 +16047,6 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17191,16 +16069,16 @@ 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 } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Watermark", wireType) } - m.ResolvedTs = 0 + m.Watermark = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBrpb @@ -17210,7 +16088,7 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.Watermark |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -17229,7 +16107,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 } @@ -17248,7 +16126,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 } @@ -17267,7 +16145,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 } @@ -17276,9 +16154,6 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17301,7 +16176,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 } @@ -17312,7 +16187,7 @@ 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 { @@ -17343,7 +16218,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 } @@ -17371,7 +16246,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 } @@ -17381,9 +16256,6 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17403,7 +16275,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 } @@ -17412,9 +16284,6 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17437,7 +16306,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 } @@ -17456,16 +16325,16 @@ 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 } } case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MinWatermark", wireType) } - m.MinResolvedTs = 0 + m.MinWatermark = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBrpb @@ -17475,7 +16344,7 @@ func (m *DataFileGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinResolvedTs |= uint64(b&0x7F) << shift + m.MinWatermark |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -17494,7 +16363,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 } @@ -17505,7 +16374,7 @@ 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 { @@ -17536,7 +16405,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 } @@ -17564,7 +16433,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 } @@ -17573,9 +16442,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17598,7 +16464,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 } @@ -17608,9 +16474,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17630,7 +16493,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 } @@ -17649,7 +16512,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 } @@ -17668,16 +16531,16 @@ 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 } } case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Watermark", wireType) } - m.ResolvedTs = 0 + m.Watermark = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBrpb @@ -17687,7 +16550,7 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.Watermark |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -17706,7 +16569,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 } @@ -17725,7 +16588,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 } @@ -17734,9 +16597,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17759,7 +16619,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 } @@ -17768,9 +16628,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17793,7 +16650,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 } @@ -17803,9 +16660,6 @@ func (m *DataFileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -17825,7 +16679,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 } @@ -17844,7 +16698,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 } @@ -17864,7 +16718,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 } @@ -17883,7 +16737,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 } @@ -17902,7 +16756,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 } @@ -17921,7 +16775,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 } @@ -17940,7 +16794,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 } @@ -17959,7 +16813,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 } @@ -17970,7 +16824,7 @@ 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 { @@ -18001,7 +16855,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 } @@ -18029,7 +16883,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 } @@ -18048,7 +16902,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 } @@ -18058,9 +16912,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18080,7 +16931,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 } @@ -18090,9 +16941,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBrpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBrpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -18112,7 +16960,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 } @@ -18123,7 +16971,7 @@ 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 { @@ -18142,7 +16990,6 @@ func (m *StreamBackupError) Unmarshal(dAtA []byte) error { func skipBrpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -18174,8 +17021,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 { @@ -18192,34 +17041,292 @@ 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", fileDescriptor_brpb_89b16a7051b28740) } + +var fileDescriptor_brpb_89b16a7051b28740 = []byte{ + // 3726 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0xcd, 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 0x49, 0x21, 0xa3, 0xc4, + 0x6b, 0x04, 0x3c, 0x9d, 0x90, 0xfc, 0x15, 0x71, 0x70, 0x99, 0x50, 0xd0, 0xa0, 0x95, 0x09, 0xda, + 0x41, 0x84, 0xb5, 0xa1, 0xe0, 0x9c, 0x52, 0x84, 0xa8, 0xf3, 0x82, 0x73, 0x8a, 0x12, 0x21, 0x4d, + 0x35, 0x88, 0x93, 0x9e, 0xf1, 0x0d, 0x8e, 0x17, 0x0d, 0x31, 0xde, 0x4e, 0x28, 0x2c, 0x34, 0x79, + 0x4d, 0x01, 0x87, 0x13, 0xf3, 0xfb, 0x02, 0xd4, 0x52, 0xef, 0x62, 0x1f, 0x03, 0x60, 0x5e, 0xb0, + 0x94, 0x06, 0x8c, 0x05, 0x1a, 0xa8, 0x8f, 0x34, 0xaf, 0x44, 0x66, 0xd7, 0xce, 0x98, 0x0b, 0x8b, + 0x98, 0x91, 0xae, 0x98, 0x73, 0x21, 0xb4, 0x78, 0x7d, 0x08, 0x9d, 0x0d, 0x93, 0xa5, 0xb7, 0x0f, + 0x93, 0xe5, 0xb5, 0x62, 0x16, 0x26, 0x1f, 0x4f, 0x43, 0x83, 0x5a, 0xa7, 0x72, 0xb5, 0xad, 0xa7, + 0xf1, 0x82, 0x18, 0xcd, 0x07, 0xd0, 0x99, 0xf3, 0x70, 0x7c, 0x81, 0x17, 0x9c, 0x86, 0xda, 0x86, + 0xe9, 0xd9, 0x3c, 0x02, 0xe8, 0x27, 0x76, 0x22, 0x77, 0xfc, 0xd0, 0x39, 0x47, 0x35, 0x45, 0xc3, + 0x4b, 0xe9, 0x39, 0xb6, 0x9f, 0xe6, 0xb4, 0x22, 0x87, 0x14, 0x3a, 0x74, 0x31, 0x6c, 0xff, 0x5a, + 0x86, 0x81, 0x95, 0xa0, 0xcf, 0x6b, 0xc3, 0xac, 0x23, 0x72, 0x82, 0x80, 0xf9, 0x0b, 0xa8, 0xd3, + 0x6a, 0xa4, 0x84, 0x0d, 0xa8,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x3a, 0xf5, 0x8c, 0x1d, 0x67, 0x16, 0x60, 0x1f, + 0xc3, 0x72, 0x7e, 0x0d, 0x5f, 0x4c, 0x84, 0x4f, 0x5d, 0x44, 0x99, 0xe7, 0x17, 0x3f, 0x42, 0x9c, + 0x6d, 0x65, 0xb6, 0x42, 0x79, 0x53, 0x75, 0x0e, 0x59, 0x1a, 0x9b, 0x1a, 0x55, 0x6a, 0x1f, 0x64, + 0x60, 0x5f, 0x40, 0xc7, 0x95, 0x89, 0x95, 0x2f, 0xd6, 0x3b, 0x57, 0x17, 0xeb, 0x2d, 0x57, 0x26, + 0xdb, 0xd3, 0x7a, 0xfd, 0x53, 0x00, 0x39, 0x1e, 0xa4, 0xc9, 0xbe, 0xab, 0x6b, 0xe5, 0x9c, 0x73, + 0xe8, 0xaa, 0x41, 0x8e, 0x07, 0xba, 0x6a, 0xf8, 0x10, 0x9d, 0x83, 0x82, 0xbb, 0x15, 0x0b, 0xdb, + 0xa5, 0xde, 0xa1, 0x86, 0xae, 0x40, 0x18, 0x17, 0xb6, 0x9b, 0x55, 0xd4, 0xec, 0x0d, 0x15, 0xf5, + 0x6d, 0xa8, 0x8f, 0x03, 0xef, 0x37, 0x63, 0x81, 0x76, 0xba, 0x42, 0x62, 0xaf, 0x29, 0xe0, 0xd0, + 0xc5, 0x12, 0xde, 0x09, 0x83, 0x44, 0x5c, 0x24, 0xd4, 0x05, 0x60, 0x2d, 0x93, 0x6e, 0x6b, 0x57, + 0xe1, 0x3c, 0x65, 0xf8, 0xba, 0x54, 0xab, 0x74, 0xab, 0xba, 0x98, 0xfe, 0xeb, 0x02, 0xdc, 0xe8, + 0x53, 0x7c, 0x57, 0xef, 0x3b, 0xb1, 0xe5, 0x39, 0xc9, 0xe9, 0x53, 0xa8, 0x6a, 0x5b, 0x20, 0x9f, + 0xb8, 0xda, 0x64, 0x52, 0x36, 0x4a, 0xe5, 0x64, 0xf3, 0x89, 0x4c, 0x43, 0x16, 0x8d, 0x4f, 0x24, + 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8d, 0x63, 0x61, 0x0d, 0xfc, 0x70, 0x60, 0xa5, 0x76, + 0x50, 0xa5, 0x19, 0xbd, 0x74, 0xc6, 0x36, 0x72, 0xec, 0xf8, 0xe1, 0x40, 0xcb, 0xe9, 0x60, 0x89, + 0x77, 0xed, 0x39, 0x6c, 0xa7, 0x0e, 0x55, 0x1d, 0x79, 0xcc, 0x0a, 0x94, 0x50, 0x56, 0xe6, 0x6d, + 0x28, 0x93, 0x38, 0x50, 0xfd, 0x68, 0x83, 0x69, 0x22, 0x27, 0x7b, 0xfc, 0xab, 0x12, 0x14, 0xfa, + 0x5b, 0x58, 0x8c, 0x89, 0xc0, 0x8d, 0x42, 0x4f, 0x27, 0xc6, 0x3a, 0xcf, 0xc6, 0x58, 0x65, 0xe6, + 0x2e, 0x99, 0xea, 0xd9, 0xa5, 0xd2, 0x2d, 0xa8, 0x0c, 0xc6, 0xce, 0xb9, 0x48, 0x74, 0xc6, 0xd5, + 0x23, 0xc4, 0xa3, 0x58, 0x9c, 0x7a, 0x17, 0xda, 0xce, 0xf4, 0x48, 0xc5, 0x68, 0x15, 0x1c, 0x1d, + 0xdf, 0x96, 0xaa, 0x72, 0xab, 0x63, 0x8c, 0x26, 0x70, 0x17, 0x31, 0x4c, 0xb1, 0x52, 0x2a, 0xf3, + 0xaa, 0x73, 0x7c, 0x44, 0xc4, 0x76, 0x7c, 0x12, 0x46, 0x9d, 0xe3, 0x23, 0x86, 0x69, 0xdb, 0x71, + 0x84, 0x94, 0x94, 0x08, 0x6a, 0xea, 0xb2, 0x44, 0x21, 0x98, 0x0b, 0x36, 0x60, 0x59, 0x0a, 0x27, + 0x16, 0x89, 0x95, 0xe3, 0xaa, 0x13, 0x57, 0x47, 0x11, 0xb6, 0x33, 0xde, 0x75, 0xe8, 0x9e, 0x86, + 0xb1, 0x23, 0x2c, 0x14, 0x86, 0x25, 0x93, 0x4b, 0x5f, 0xe8, 0xb0, 0xdb, 0x26, 0xfc, 0xd8, 0x4e, + 0x86, 0x7d, 0x44, 0xd9, 0x7d, 0x68, 0x4b, 0x29, 0xac, 0xf3, 0x11, 0xad, 0x87, 0x21, 0x41, 0x45, + 0xe2, 0x86, 0x94, 0xe2, 0xe9, 0x08, 0x17, 0x3b, 0x74, 0xd1, 0x25, 0xe3, 0xd0, 0x17, 0x96, 0x1d, + 0xab, 0x8b, 0x9a, 0x3a, 0xaf, 0xe2, 0x78, 0x3b, 0x56, 0xc9, 0xe7, 0x22, 0x11, 0x71, 0xa0, 0x7a, + 0x89, 0x16, 0x51, 0x21, 0x85, 0x0e, 0x5d, 0xb6, 0x09, 0x2b, 0xe1, 0xe0, 0xd7, 0xc2, 0x49, 0x2c, + 0xec, 0x01, 0xb2, 0x3b, 0x86, 0x36, 0xed, 0x66, 0x59, 0x91, 0x8e, 0x42, 0xe7, 0x3c, 0xbd, 0x60, + 0x40, 0x71, 0xa6, 0x1e, 0x19, 0x9e, 0x0b, 0x15, 0x56, 0x51, 0x9c, 0xda, 0xeb, 0x10, 0x43, 0xbd, + 0x46, 0x71, 0x38, 0xf1, 0x5c, 0x11, 0xd3, 0xdd, 0x4b, 0x9d, 0x67, 0x63, 0xac, 0x78, 0xa2, 0x38, + 0xc4, 0x36, 0x4f, 0xdf, 0xb0, 0xa4, 0x43, 0xf3, 0xb7, 0x06, 0x14, 0xbf, 0xda, 0xed, 0xbf, 0xc9, + 0x2a, 0xb4, 0xf6, 0x0b, 0x57, 0x68, 0xbf, 0x78, 0xbd, 0xf6, 0x4b, 0x0b, 0xb4, 0xff, 0x00, 0xda, + 0x51, 0x2c, 0x5c, 0x71, 0xea, 0x05, 0xc2, 0xb5, 0x50, 0xed, 0xca, 0x46, 0x5a, 0x53, 0x74, 0xdb, + 0xf1, 0xb1, 0xc0, 0x77, 0x10, 0x08, 0x12, 0xcf, 0xf6, 0x25, 0x39, 0x8d, 0xb6, 0x98, 0x4e, 0x0e, + 0x47, 0xb7, 0x30, 0x47, 0xd0, 0x25, 0xbf, 0xd9, 0x1d, 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f, 0xe5, 0x49, 0x97, 0xdc, 0x79, 0xf8, 0x1f, 0x7f, 0x57, 0x33, 0x7e, 0xfb, 0xe3, 0x5d, 0xe3, + 0x87, 0x1f, 0xef, 0x1a, 0xff, 0xf9, 0xe3, 0x5d, 0xe3, 0x6f, 0xfe, 0xeb, 0xee, 0x12, 0x74, 0xc3, + 0xf8, 0x6c, 0x33, 0xf1, 0xce, 0x27, 0x9b, 0xe7, 0x13, 0xfa, 0xab, 0xd9, 0xa0, 0x42, 0x3f, 0x5b, + 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x73, 0xb6, 0x22, 0xee, 0x26, 0x00, 0x00, +} diff --git a/pkg/cdcpb/cdcpb.pb.go b/pkg/cdcpb/cdcpb.pb.go index c8c92816a1..fa3aa8e9a1 100644 --- a/pkg/cdcpb/cdcpb.pb.go +++ b/pkg/cdcpb/cdcpb.pb.go @@ -4,21 +4,24 @@ package cdcpb 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" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" + raft_cmdpb "github.com/pingcap/kvproto/pkg/raft_cmdpb" + + 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 +33,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 +54,6 @@ var Event_LogType_name = map[int32]string{ 4: "COMMITTED", 5: "INITIALIZED", } - var Event_LogType_value = map[string]int32{ "UNKNOWN": 0, "PREWRITE": 1, @@ -64,9 +66,8 @@ var Event_LogType_value = map[string]int32{ func (x Event_LogType) String() string { return proto.EnumName(Event_LogType_name, int32(x)) } - func (Event_LogType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 0} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{7, 0} } type Event_Row_OpType int32 @@ -82,7 +83,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,9 +92,8 @@ var Event_Row_OpType_value = map[string]int32{ func (x Event_Row_OpType) String() string { return proto.EnumName(Event_Row_OpType_name, int32(x)) } - func (Event_Row_OpType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 0, 0} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{7, 0, 0} } // KvAPI specifies to capture data written by different KV API. @@ -112,7 +111,6 @@ var ChangeDataRequest_KvAPI_name = map[int32]string{ 1: "RawKV", 2: "TxnKV", } - var ChangeDataRequest_KvAPI_value = map[string]int32{ "TiDB": 0, "RawKV": 1, @@ -122,9 +120,8 @@ var ChangeDataRequest_KvAPI_value = map[string]int32{ func (x ChangeDataRequest_KvAPI) String() string { return proto.EnumName(ChangeDataRequest_KvAPI_name, int32(x)) } - func (ChangeDataRequest_KvAPI) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 0} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{10, 0} } type Header struct { @@ -139,7 +136,7 @@ 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} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{0} } func (m *Header) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -149,15 +146,15 @@ func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Header.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Header.Merge(dst, src) } func (m *Header) XXX_Size() int { return m.Size() @@ -193,7 +190,7 @@ 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} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{1} } func (m *DuplicateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -203,15 +200,15 @@ func (m *DuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_DuplicateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DuplicateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DuplicateRequest.Merge(dst, src) } func (m *DuplicateRequest) XXX_Size() int { return m.Size() @@ -240,7 +237,7 @@ 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} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{2} } func (m *Compatibility) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -250,15 +247,15 @@ func (m *Compatibility) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_Compatibility.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Compatibility) XXX_Merge(src proto.Message) { + xxx_messageInfo_Compatibility.Merge(dst, src) } func (m *Compatibility) XXX_Size() int { return m.Size() @@ -292,7 +289,7 @@ 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} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{3} } func (m *ClusterIDMismatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -302,15 +299,15 @@ func (m *ClusterIDMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ClusterIDMismatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ClusterIDMismatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterIDMismatch.Merge(dst, src) } func (m *ClusterIDMismatch) XXX_Size() int { return m.Size() @@ -336,13 +333,13 @@ func (m *ClusterIDMismatch) GetRequest() uint64 { } type Error struct { - NotLeader *errorpb.NotLeader `protobuf:"bytes,1,opt,name=not_leader,json=notLeader,proto3" json:"not_leader,omitempty"` - RegionNotFound *errorpb.RegionNotFound `protobuf:"bytes,2,opt,name=region_not_found,json=regionNotFound,proto3" json:"region_not_found,omitempty"` - EpochNotMatch *errorpb.EpochNotMatch `protobuf:"bytes,3,opt,name=epoch_not_match,json=epochNotMatch,proto3" json:"epoch_not_match,omitempty"` - DuplicateRequest *DuplicateRequest `protobuf:"bytes,4,opt,name=duplicate_request,json=duplicateRequest,proto3" json:"duplicate_request,omitempty"` - Compatibility *Compatibility `protobuf:"bytes,5,opt,name=compatibility,proto3" json:"compatibility,omitempty"` - ClusterIdMismatch *ClusterIDMismatch `protobuf:"bytes,6,opt,name=cluster_id_mismatch,json=clusterIdMismatch,proto3" json:"cluster_id_mismatch,omitempty"` - ServerIsBusy *errorpb.ServerIsBusy `protobuf:"bytes,7,opt,name=server_is_busy,json=serverIsBusy,proto3" json:"server_is_busy,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -352,7 +349,7 @@ func (m *Error) Reset() { *m = Error{} } func (m *Error) String() string { return proto.CompactTextString(m) } func (*Error) ProtoMessage() {} func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{4} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{4} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -362,15 +359,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -442,7 +439,7 @@ func (m *TxnInfo) Reset() { *m = TxnInfo{} } func (m *TxnInfo) String() string { return proto.CompactTextString(m) } func (*TxnInfo) ProtoMessage() {} func (*TxnInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{5} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{5} } func (m *TxnInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -452,15 +449,15 @@ func (m *TxnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TxnInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TxnInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnInfo.Merge(dst, src) } func (m *TxnInfo) XXX_Size() int { return m.Size() @@ -499,7 +496,7 @@ func (m *TxnStatus) Reset() { *m = TxnStatus{} } func (m *TxnStatus) String() string { return proto.CompactTextString(m) } func (*TxnStatus) ProtoMessage() {} func (*TxnStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{6} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{6} } func (m *TxnStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -509,15 +506,15 @@ func (m *TxnStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TxnStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TxnStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnStatus.Merge(dst, src) } func (m *TxnStatus) XXX_Size() int { return m.Size() @@ -564,7 +561,7 @@ type Event struct { // *Event_Entries_ // *Event_Admin_ // *Event_Error - // *Event_ResolvedTs + // *Event_Watermark // *Event_LongTxn_ Event isEvent_Event `protobuf_oneof:"event"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -576,7 +573,7 @@ func (m *Event) Reset() { *m = Event{} } func (m *Event) String() string { return proto.CompactTextString(m) } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{7} } func (m *Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -586,15 +583,15 @@ func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Event.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Event) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event.Merge(dst, src) } func (m *Event) XXX_Size() int { return m.Size() @@ -612,26 +609,26 @@ 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"` +type Event_Watermark struct { + Watermark uint64 `protobuf:"varint,6,opt,name=watermark,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() {} -func (*Event_Admin_) isEvent_Event() {} -func (*Event_Error) isEvent_Event() {} -func (*Event_ResolvedTs) isEvent_Event() {} -func (*Event_LongTxn_) isEvent_Event() {} +func (*Event_Entries_) isEvent_Event() {} +func (*Event_Admin_) isEvent_Event() {} +func (*Event_Error) isEvent_Event() {} +func (*Event_Watermark) isEvent_Event() {} +func (*Event_LongTxn_) isEvent_Event() {} func (m *Event) GetEvent() isEvent_Event { if m != nil { @@ -683,9 +680,9 @@ func (m *Event) GetError() *Error { } // Deprecated: Do not use. -func (m *Event) GetResolvedTs() uint64 { - if x, ok := m.GetEvent().(*Event_ResolvedTs); ok { - return x.ResolvedTs +func (m *Event) GetWatermark() uint64 { + if x, ok := m.GetEvent().(*Event_Watermark); ok { + return x.Watermark } return 0 } @@ -697,17 +694,132 @@ 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), - (*Event_ResolvedTs)(nil), + (*Event_Watermark)(nil), (*Event_LongTxn_)(nil), } } +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_Watermark: + _ = b.EncodeVarint(6<<3 | proto.WireVarint) + _ = b.EncodeVarint(uint64(x.Watermark)) + 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.watermark + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Event = &Event_Watermark{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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Event_Admin_: + s := proto.Size(x.Admin) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Event_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Event_Watermark: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Watermark)) + case *Event_LongTxn_: + s := proto.Size(x.LongTxn) + n += 1 // tag and wire + 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"` @@ -731,7 +843,7 @@ func (m *Event_Row) Reset() { *m = Event_Row{} } func (m *Event_Row) String() string { return proto.CompactTextString(m) } func (*Event_Row) ProtoMessage() {} func (*Event_Row) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 0} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{7, 0} } func (m *Event_Row) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -741,15 +853,15 @@ func (m *Event_Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Event_Row.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Event_Row) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Row.Merge(dst, src) } func (m *Event_Row) XXX_Size() int { return m.Size() @@ -824,7 +936,7 @@ func (m *Event_Row) GetTxnSource() uint64 { } type Event_Entries struct { - Entries []*Event_Row `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Entries []*Event_Row `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -834,7 +946,7 @@ func (m *Event_Entries) Reset() { *m = Event_Entries{} } func (m *Event_Entries) String() string { return proto.CompactTextString(m) } func (*Event_Entries) ProtoMessage() {} func (*Event_Entries) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 1} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{7, 1} } func (m *Event_Entries) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -844,15 +956,15 @@ func (m *Event_Entries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_Event_Entries.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Event_Entries) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Entries.Merge(dst, src) } func (m *Event_Entries) XXX_Size() int { return m.Size() @@ -871,8 +983,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -882,7 +994,7 @@ func (m *Event_Admin) Reset() { *m = Event_Admin{} } func (m *Event_Admin) String() string { return proto.CompactTextString(m) } func (*Event_Admin) ProtoMessage() {} func (*Event_Admin) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 2} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{7, 2} } func (m *Event_Admin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -892,15 +1004,15 @@ func (m *Event_Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_Event_Admin.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Event_Admin) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_Admin.Merge(dst, src) } func (m *Event_Admin) XXX_Size() int { return m.Size() @@ -926,7 +1038,7 @@ 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"` + TxnInfo []*TxnInfo `protobuf:"bytes,1,rep,name=txn_info,json=txnInfo" json:"txn_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -936,7 +1048,7 @@ func (m *Event_LongTxn) Reset() { *m = Event_LongTxn{} } func (m *Event_LongTxn) String() string { return proto.CompactTextString(m) } func (*Event_LongTxn) ProtoMessage() {} func (*Event_LongTxn) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{7, 3} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{7, 3} } func (m *Event_LongTxn) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -946,15 +1058,15 @@ func (m *Event_LongTxn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_Event_LongTxn.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Event_LongTxn) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event_LongTxn.Merge(dst, src) } func (m *Event_LongTxn) XXX_Size() int { return m.Size() @@ -972,20 +1084,20 @@ func (m *Event_LongTxn) GetTxnInfo() []*TxnInfo { return nil } -// NOTE: events and resolved_ts won't appear simultaneously in one ChangeDataEvent. +// NOTE: events and watermark 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:"-"` + Events []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` + Watermark *Watermark `protobuf:"bytes,2,opt,name=watermark" json:"watermark,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeDataEvent) Reset() { *m = ChangeDataEvent{} } func (m *ChangeDataEvent) String() string { return proto.CompactTextString(m) } func (*ChangeDataEvent) ProtoMessage() {} func (*ChangeDataEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{8} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{8} } func (m *ChangeDataEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -995,15 +1107,15 @@ func (m *ChangeDataEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_ChangeDataEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangeDataEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataEvent.Merge(dst, src) } func (m *ChangeDataEvent) XXX_Size() int { return m.Size() @@ -1021,15 +1133,15 @@ func (m *ChangeDataEvent) GetEvents() []*Event { return nil } -func (m *ChangeDataEvent) GetResolvedTs() *ResolvedTs { +func (m *ChangeDataEvent) GetWatermark() *Watermark { if m != nil { - return m.ResolvedTs + return m.Watermark } return nil } -type ResolvedTs struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` +type Watermark struct { + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1037,54 +1149,54 @@ type ResolvedTs struct { XXX_sizecache int32 `json:"-"` } -func (m *ResolvedTs) Reset() { *m = ResolvedTs{} } -func (m *ResolvedTs) String() string { return proto.CompactTextString(m) } -func (*ResolvedTs) ProtoMessage() {} -func (*ResolvedTs) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{9} +func (m *Watermark) Reset() { *m = Watermark{} } +func (m *Watermark) String() string { return proto.CompactTextString(m) } +func (*Watermark) ProtoMessage() {} +func (*Watermark) Descriptor() ([]byte, []int) { + return fileDescriptor_cdcpb_32010f5b637ea595, []int{9} } -func (m *ResolvedTs) XXX_Unmarshal(b []byte) error { +func (m *Watermark) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ResolvedTs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Watermark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ResolvedTs.Marshal(b, m, deterministic) + return xxx_messageInfo_Watermark.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Watermark) XXX_Merge(src proto.Message) { + xxx_messageInfo_Watermark.Merge(dst, src) } -func (m *ResolvedTs) XXX_Size() int { +func (m *Watermark) XXX_Size() int { return m.Size() } -func (m *ResolvedTs) XXX_DiscardUnknown() { - xxx_messageInfo_ResolvedTs.DiscardUnknown(m) +func (m *Watermark) XXX_DiscardUnknown() { + xxx_messageInfo_Watermark.DiscardUnknown(m) } -var xxx_messageInfo_ResolvedTs proto.InternalMessageInfo +var xxx_messageInfo_Watermark proto.InternalMessageInfo -func (m *ResolvedTs) GetRegions() []uint64 { +func (m *Watermark) GetRegions() []uint64 { if m != nil { return m.Regions } return nil } -func (m *ResolvedTs) GetTs() uint64 { +func (m *Watermark) GetTs() uint64 { if m != nil { return m.Ts } return 0 } -func (m *ResolvedTs) GetRequestId() uint64 { +func (m *Watermark) GetRequestId() uint64 { if m != nil { return m.RequestId } @@ -1092,9 +1204,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"` @@ -1120,7 +1232,7 @@ func (m *ChangeDataRequest) Reset() { *m = ChangeDataRequest{} } func (m *ChangeDataRequest) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest) ProtoMessage() {} func (*ChangeDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{10} } func (m *ChangeDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1130,15 +1242,15 @@ func (m *ChangeDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ChangeDataRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangeDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest.Merge(dst, src) } func (m *ChangeDataRequest) XXX_Size() int { return m.Size() @@ -1156,13 +1268,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() {} @@ -1267,15 +1379,99 @@ 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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ChangeDataRequest_NotifyTxnStatus_: + s := proto.Size(x.NotifyTxnStatus) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ChangeDataRequest_Deregister_: + s := proto.Size(x.Deregister) + n += 1 // tag and wire + 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:"-"` @@ -1286,7 +1482,7 @@ func (m *ChangeDataRequest_Register) Reset() { *m = ChangeDataRequest_Re func (m *ChangeDataRequest_Register) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_Register) ProtoMessage() {} func (*ChangeDataRequest_Register) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 0} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{10, 0} } func (m *ChangeDataRequest_Register) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1296,15 +1492,15 @@ func (m *ChangeDataRequest_Register) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_ChangeDataRequest_Register.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *ChangeDataRequest_Register) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeDataRequest_Register.Merge(m, src) +func (dst *ChangeDataRequest_Register) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest_Register.Merge(dst, src) } func (m *ChangeDataRequest_Register) XXX_Size() int { return m.Size() @@ -1325,7 +1521,7 @@ func (m *ChangeDataRequest_Deregister) Reset() { *m = ChangeDataRequest_ func (m *ChangeDataRequest_Deregister) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_Deregister) ProtoMessage() {} func (*ChangeDataRequest_Deregister) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 1} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{10, 1} } func (m *ChangeDataRequest_Deregister) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1335,15 +1531,15 @@ func (m *ChangeDataRequest_Deregister) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_ChangeDataRequest_Deregister.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangeDataRequest_Deregister) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest_Deregister.Merge(dst, src) } func (m *ChangeDataRequest_Deregister) XXX_Size() int { return m.Size() @@ -1355,7 +1551,7 @@ func (m *ChangeDataRequest_Deregister) XXX_DiscardUnknown() { 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"` + TxnStatus []*TxnStatus `protobuf:"bytes,1,rep,name=txn_status,json=txnStatus" json:"txn_status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1365,7 +1561,7 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Reset() { *m = ChangeDataReq func (m *ChangeDataRequest_NotifyTxnStatus) String() string { return proto.CompactTextString(m) } func (*ChangeDataRequest_NotifyTxnStatus) ProtoMessage() {} func (*ChangeDataRequest_NotifyTxnStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_911209a1d38ef245, []int{10, 2} + return fileDescriptor_cdcpb_32010f5b637ea595, []int{10, 2} } func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1375,15 +1571,15 @@ func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Marshal(b []byte, deterministic return xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangeDataRequest_NotifyTxnStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangeDataRequest_NotifyTxnStatus.Merge(dst, src) } func (m *ChangeDataRequest_NotifyTxnStatus) XXX_Size() int { return m.Size() @@ -1402,9 +1598,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") @@ -1418,111 +1611,14 @@ func init() { proto.RegisterType((*Event_Admin)(nil), "cdcpb.Event.Admin") proto.RegisterType((*Event_LongTxn)(nil), "cdcpb.Event.LongTxn") proto.RegisterType((*ChangeDataEvent)(nil), "cdcpb.ChangeDataEvent") - proto.RegisterType((*ResolvedTs)(nil), "cdcpb.ResolvedTs") + proto.RegisterType((*Watermark)(nil), "cdcpb.Watermark") proto.RegisterType((*ChangeDataRequest)(nil), "cdcpb.ChangeDataRequest") 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{ - // 1502 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x72, 0xdb, 0xc8, - 0x11, 0x26, 0xf8, 0xcf, 0xe6, 0x8f, 0xa0, 0xb1, 0x63, 0xd3, 0x4c, 0x45, 0x71, 0x68, 0x3b, 0x91, - 0x9d, 0x0a, 0x6d, 0x33, 0x71, 0x0e, 0x4e, 0xc5, 0x89, 0x28, 0xd2, 0x11, 0x4b, 0x14, 0xe5, 0x1a, - 0x41, 0x72, 0x55, 0x0e, 0x41, 0x41, 0xc0, 0x88, 0x42, 0x91, 0xc4, 0xc0, 0xc0, 0x90, 0x26, 0x6f, - 0x39, 0xe6, 0x92, 0x5b, 0x0e, 0x79, 0x84, 0x7d, 0x92, 0xad, 0x3d, 0xee, 0xd1, 0xc7, 0x2d, 0xef, - 0x23, 0xec, 0x0b, 0x6c, 0x4d, 0x0f, 0x00, 0xfe, 0xd8, 0xf2, 0x56, 0xed, 0x89, 0xd3, 0xfd, 0xf5, - 0xf4, 0xf4, 0x7f, 0x83, 0x50, 0xb6, 0x1d, 0xdb, 0xbf, 0x6c, 0xf9, 0x01, 0x17, 0x9c, 0xe4, 0x90, - 0x68, 0xe8, 0x81, 0x75, 0x25, 0x4c, 0x7b, 0xea, 0xc4, 0x40, 0xa3, 0x32, 0x65, 0xc2, 0x4a, 0xa8, - 0x2a, 0x0b, 0x02, 0x1e, 0xac, 0xc8, 0xf1, 0x3c, 0xf0, 0x13, 0x25, 0x8d, 0xdb, 0x23, 0x3e, 0xe2, - 0x78, 0x7c, 0x2a, 0x4f, 0x11, 0x77, 0x27, 0x98, 0x85, 0x02, 0x8f, 0x8a, 0xd1, 0x1c, 0x40, 0xfe, -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2, 0x12, 0xb3, 0xf0, - 0x4b, 0x2a, 0x9a, 0x50, 0x9d, 0xba, 0x9e, 0x69, 0xf3, 0xe9, 0xd4, 0x45, 0x5c, 0x55, 0x54, 0x79, - 0xea, 0x7a, 0x87, 0xc8, 0x33, 0x42, 0x59, 0xf7, 0x2b, 0x3c, 0xa3, 0xea, 0xde, 0x8e, 0xc1, 0x87, - 0x50, 0x73, 0x43, 0x33, 0xe0, 0x93, 0x09, 0x73, 0xcc, 0x4b, 0xcb, 0x1e, 0x63, 0xbe, 0x8a, 0xb4, - 0xe2, 0x86, 0x14, 0x99, 0x1d, 0xcb, 0x1e, 0x37, 0x7f, 0x28, 0x40, 0xae, 0x37, 0x97, 0xc5, 0xfb, - 0xa5, 0x26, 0x22, 0xb7, 0x21, 0xe7, 0x7a, 0x0e, 0x5b, 0x44, 0x56, 0x28, 0x42, 0xf6, 0x73, 0x54, - 0x0b, 0xf2, 0x4e, 0x41, 0xf5, 0x73, 0xc4, 0xe9, 0x3b, 0xe4, 0x19, 0x14, 0x98, 0x27, 0x02, 0x97, - 0x85, 0x51, 0xb1, 0xc5, 0x89, 0xc6, 0x07, 0x5b, 0x3d, 0x85, 0x1d, 0xa5, 0x68, 0x2c, 0x46, 0x9e, - 0x40, 0xce, 0x72, 0xa6, 0xae, 0x17, 0x95, 0x16, 0xd9, 0x90, 0x3f, 0x90, 0xc8, 0x51, 0x8a, 0x2a, - 0x11, 0xf2, 0x10, 0x72, 0x98, 0xaf, 0xa8, 0x88, 0x2a, 0xb1, 0xac, 0xe4, 0x49, 0x29, 0x04, 0xc9, - 0x23, 0x28, 0x07, 0x2c, 0xe4, 0x93, 0x39, 0x73, 0x64, 0x90, 0x64, 0xb9, 0x64, 0x3b, 0xe9, 0xba, - 0x76, 0x94, 0xa2, 0x10, 0x03, 0x46, 0x48, 0x9e, 0x43, 0x71, 0xc2, 0xbd, 0x91, 0x29, 0x16, 0x5e, - 0xbd, 0xf8, 0x19, 0x5b, 0x07, 0xdc, 0x1b, 0x19, 0x0b, 0xf9, 0x7a, 0x61, 0xa2, 0x8e, 0x8d, 0x0f, - 0x69, 0xc8, 0x50, 0xfe, 0xfe, 0x4b, 0x39, 0xdc, 0xc8, 0x4f, 0x7a, 0x2b, 0x3f, 0xfb, 0x90, 0x15, - 0x4b, 0x9f, 0x61, 0x68, 0x6a, 0x9f, 0x3c, 0x37, 0x32, 0x96, 0x3e, 0xa3, 0x28, 0x21, 0xe3, 0xc8, - 0x7d, 0x13, 0x85, 0xb3, 0x28, 0x7c, 0x77, 0x43, 0x98, 0xf2, 0xf7, 0xad, 0x53, 0x1f, 0xe5, 0xf3, - 0x1c, 0x7f, 0x89, 0x0e, 0x99, 0x31, 0x53, 0xed, 0x55, 0xa1, 0xf2, 0x28, 0x13, 0x38, 0xb7, 0x26, - 0x33, 0x86, 0x11, 0xa8, 0x50, 0x45, 0x48, 0x03, 0xf9, 0xc4, 0x31, 0x15, 0x52, 0x40, 0xa4, 0xc8, - 0x27, 0xce, 0x05, 0x82, 0x7f, 0x80, 0x5b, 0x6c, 0xe1, 0xbb, 0x01, 0x33, 0x45, 0x68, 0xce, 0x3c, - 0x77, 0x61, 0x86, 0xcc, 0x0e, 0x31, 0x3c, 0x59, 0xaa, 0x2b, 0xc8, 0x08, 0xcf, 0x3d, 0x77, 0x71, - 0xc6, 0xec, 0x50, 0x16, 0x83, 0x58, 0x78, 0x66, 0xc8, 0x67, 0x81, 0xcd, 0xea, 0x25, 0x55, 0x0c, - 0x62, 0xe1, 0x9d, 0x21, 0xa3, 0xf9, 0x04, 0xf2, 0xca, 0x48, 0x52, 0x86, 0xc2, 0xf9, 0xf0, 0x78, - 0x78, 0xfa, 0x76, 0xa8, 0xa7, 0x48, 0x01, 0x32, 0x6f, 0xce, 0x0d, 0x5d, 0x23, 0x00, 0xf9, 0x6e, - 0x6f, 0xd0, 0x33, 0x7a, 0x7a, 0xba, 0xf1, 0x02, 0x0a, 0xbd, 0xa4, 0x22, 0x92, 0x1a, 0x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0x72, 0x08, - 0xe5, 0x44, 0xc5, 0x45, 0xfb, 0xe7, 0x29, 0xe9, 0xfc, 0xf6, 0xc3, 0x57, 0x45, 0xed, 0x9b, 0x8f, - 0x7b, 0xda, 0xb7, 0x1f, 0xf7, 0xb4, 0xef, 0x3e, 0xee, 0x69, 0xff, 0xff, 0x7e, 0x2f, 0x05, 0x3a, - 0x0f, 0x46, 0x2d, 0xe1, 0x8e, 0xe7, 0xad, 0xf1, 0x1c, 0xff, 0x18, 0x5c, 0xe6, 0xf1, 0xe7, 0x8f, - 0x3f, 0x06, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x00, 0x85, 0xeb, 0x9a, 0x0c, 0x00, 0x00, + proto.RegisterEnum("cdcpb.Event_LogType", Event_LogType_name, Event_LogType_value) + proto.RegisterEnum("cdcpb.Event_Row_OpType", Event_Row_OpType_name, Event_Row_OpType_value) + proto.RegisterEnum("cdcpb.ChangeDataRequest_KvAPI", ChangeDataRequest_KvAPI_name, ChangeDataRequest_KvAPI_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1533,9 +1629,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: @@ -1615,7 +1710,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: @@ -1625,17 +1721,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) } @@ -1716,7 +1801,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 } @@ -1724,38 +1809,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -1763,31 +1841,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -1795,33 +1867,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -1829,36 +1894,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -1866,110 +1925,90 @@ 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.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.NotLeader != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.NotLeader.Size())) + n1, err := m.NotLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n1 } - 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.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] = 0x32 + i += n2 } - if m.Compatibility != nil { - { - size, err := m.Compatibility.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) + if m.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] = 0x2a + i += n3 } if m.DuplicateRequest != nil { - { - size, err := m.DuplicateRequest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCdcpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.DuplicateRequest.Size())) + n4, err := m.DuplicateRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - 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.Compatibility != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Compatibility.Size())) + n5, err := m.Compatibility.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n5 } - 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.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] = 0x12 + i += n6 } - 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.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] = 0xa + i += n7 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -1977,38 +2016,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2016,51 +2048,45 @@ 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 + i++ } - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2068,146 +2094,105 @@ 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 - } + nn8, err := m.Event.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn8 } 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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())) + n9, err := m.Entries.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 } - 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())) + n10, err := m.Admin.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 } - 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())) + n11, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil -} -func (m *Event_ResolvedTs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return i, nil } - -func (m *Event_ResolvedTs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - i = encodeVarintCdcpb(dAtA, i, uint64(m.ResolvedTs)) - i-- +func (m *Event_Watermark) MarshalTo(dAtA []byte) (int, error) { + i := 0 dAtA[i] = 0x30 - return len(dAtA) - i, nil + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Watermark)) + 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())) + n12, err := m.LongTxn.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - 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 } @@ -2215,77 +2200,68 @@ func (m *Event_Row) Marshal() (dAtA []byte, err error) { } func (m *Event_Row) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event_Row) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TxnSource != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.TxnSource)) - i-- - dAtA[i] = 0x48 + if m.StartTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) } - if m.ExpireTsUnixSecs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.ExpireTsUnixSecs)) - i-- - dAtA[i] = 0x40 + if m.CommitTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) } - if len(m.OldValue) > 0 { - i -= len(m.OldValue) - copy(dAtA[i:], m.OldValue) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.OldValue))) - i-- - dAtA[i] = 0x3a + if m.Type != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Type)) } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x32 + if m.OpType != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.OpType)) } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.OpType != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.OpType)) - i-- - dAtA[i] = 0x20 + if len(m.Value) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if m.Type != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x18 + if len(m.OldValue) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(len(m.OldValue))) + i += copy(dAtA[i:], m.OldValue) } - if m.CommitTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x10 + if m.ExpireTsUnixSecs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.ExpireTsUnixSecs)) } - if m.StartTs != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.TxnSource != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.TxnSource)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2293,40 +2269,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -2334,50 +2302,40 @@ 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())) + n13, err := m.AdminRequest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } 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())) + n14, err := m.AdminResponse.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n14 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -2385,40 +2343,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -2426,107 +2376,90 @@ 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.Watermark != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.Watermark.Size())) + n15, err := m.Watermark.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n15 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil } -func (m *ResolvedTs) Marshal() (dAtA []byte, err error) { +func (m *Watermark) Marshal() (dAtA []byte, err error) { 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 *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) +func (m *Watermark) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RequestId != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.RequestId)) - i-- - dAtA[i] = 0x18 - } - if m.Ts != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.Ts)) - i-- - dAtA[i] = 0x10 - } if len(m.Regions) > 0 { - dAtA16 := make([]byte, len(m.Regions)*10) - var j15 int + dAtA17 := make([]byte, len(m.Regions)*10) + var j16 int for _, num := range m.Regions { for num >= 1<<7 { - dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) + dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j15++ + j16++ } - dAtA16[j15] = uint8(num) - j15++ + dAtA17[j16] = uint8(num) + j16++ } - i -= j15 - copy(dAtA[i:], dAtA16[:j15]) - i = encodeVarintCdcpb(dAtA, i, uint64(j15)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(j16)) + i += copy(dAtA[i:], dAtA17[:j16]) } - 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -2534,171 +2467,136 @@ 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())) + n18, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n18 } - if m.FilterLoop { - i-- - if m.FilterLoop { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionId)) + } + if m.RegionEpoch != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintCdcpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n19, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x60 - } - if m.KvApi != 0 { - i = encodeVarintCdcpb(dAtA, i, uint64(m.KvApi)) - i-- - dAtA[i] = 0x58 + i += n19 } - 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 { + nn20, err := m.Request.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += nn20 } - 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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())) + n21, err := m.Register.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - 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())) + n22, err := m.NotifyTxnStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 } - 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())) + n23, err := m.Deregister.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 } - 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 } @@ -2706,26 +2604,20 @@ 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) + i += 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 } @@ -2733,26 +2625,20 @@ 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) + i += 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 } @@ -2760,51 +2646,38 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -2821,9 +2694,6 @@ func (m *Header) Size() (n int) { } func (m *DuplicateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2836,9 +2706,6 @@ func (m *DuplicateRequest) Size() (n int) { } func (m *Compatibility) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.RequiredVersion) @@ -2852,9 +2719,6 @@ func (m *Compatibility) Size() (n int) { } func (m *ClusterIDMismatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Current != 0 { @@ -2870,9 +2734,6 @@ func (m *ClusterIDMismatch) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NotLeader != nil { @@ -2910,9 +2771,6 @@ func (m *Error) Size() (n int) { } func (m *TxnInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -2929,9 +2787,6 @@ func (m *TxnInfo) Size() (n int) { } func (m *TxnStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -2953,9 +2808,6 @@ func (m *TxnStatus) Size() (n int) { } func (m *Event) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2977,9 +2829,6 @@ func (m *Event) Size() (n int) { } func (m *Event_Entries_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Entries != nil { @@ -2989,9 +2838,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 { @@ -3001,9 +2847,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 { @@ -3012,19 +2855,13 @@ func (m *Event_Error) Size() (n int) { } return n } -func (m *Event_ResolvedTs) Size() (n int) { - if m == nil { - return 0 - } +func (m *Event_Watermark) Size() (n int) { var l int _ = l - n += 1 + sovCdcpb(uint64(m.ResolvedTs)) + n += 1 + sovCdcpb(uint64(m.Watermark)) return n } func (m *Event_LongTxn_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LongTxn != nil { @@ -3034,9 +2871,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 { @@ -3076,9 +2910,6 @@ func (m *Event_Row) Size() (n int) { } func (m *Event_Entries) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -3094,9 +2925,6 @@ func (m *Event_Entries) Size() (n int) { } func (m *Event_Admin) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AdminRequest != nil { @@ -3114,9 +2942,6 @@ func (m *Event_Admin) Size() (n int) { } func (m *Event_LongTxn) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.TxnInfo) > 0 { @@ -3132,9 +2957,6 @@ func (m *Event_LongTxn) Size() (n int) { } func (m *ChangeDataEvent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Events) > 0 { @@ -3143,8 +2965,8 @@ func (m *ChangeDataEvent) Size() (n int) { n += 1 + l + sovCdcpb(uint64(l)) } } - if m.ResolvedTs != nil { - l = m.ResolvedTs.Size() + if m.Watermark != nil { + l = m.Watermark.Size() n += 1 + l + sovCdcpb(uint64(l)) } if m.XXX_unrecognized != nil { @@ -3153,10 +2975,7 @@ func (m *ChangeDataEvent) Size() (n int) { return n } -func (m *ResolvedTs) Size() (n int) { - if m == nil { - return 0 - } +func (m *Watermark) Size() (n int) { var l int _ = l if len(m.Regions) > 0 { @@ -3179,9 +2998,6 @@ func (m *ResolvedTs) Size() (n int) { } func (m *ChangeDataRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -3228,9 +3044,6 @@ func (m *ChangeDataRequest) Size() (n int) { } func (m *ChangeDataRequest_Register_) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Register != nil { @@ -3240,9 +3053,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 { @@ -3252,9 +3062,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 { @@ -3264,9 +3071,6 @@ 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 { @@ -3276,9 +3080,6 @@ func (m *ChangeDataRequest_Register) Size() (n int) { } func (m *ChangeDataRequest_Deregister) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -3288,9 +3089,6 @@ func (m *ChangeDataRequest_Deregister) Size() (n int) { } func (m *ChangeDataRequest_NotifyTxnStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.TxnStatus) > 0 { @@ -3306,7 +3104,14 @@ func (m *ChangeDataRequest_NotifyTxnStatus) Size() (n int) { } 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)))) @@ -3326,7 +3131,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 } @@ -3354,7 +3159,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 } @@ -3373,7 +3178,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 } @@ -3383,9 +3188,6 @@ func (m *Header) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3397,7 +3199,7 @@ 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 { @@ -3428,7 +3230,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 } @@ -3456,7 +3258,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 } @@ -3467,7 +3269,7 @@ 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 { @@ -3498,7 +3300,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 } @@ -3526,7 +3328,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 } @@ -3536,9 +3338,6 @@ func (m *Compatibility) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3550,7 +3349,7 @@ 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 { @@ -3581,7 +3380,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 } @@ -3609,7 +3408,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 } @@ -3628,7 +3427,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 } @@ -3639,7 +3438,7 @@ 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 { @@ -3670,7 +3469,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 } @@ -3698,7 +3497,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 } @@ -3707,9 +3506,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3734,7 +3530,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 } @@ -3743,9 +3539,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3770,7 +3563,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 } @@ -3779,9 +3572,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3806,7 +3596,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3815,9 +3605,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3842,7 +3629,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 } @@ -3851,9 +3638,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3878,7 +3662,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 } @@ -3887,9 +3671,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3914,7 +3695,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 } @@ -3923,9 +3704,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3942,7 +3720,7 @@ 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 { @@ -3973,7 +3751,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 } @@ -4001,7 +3779,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 } @@ -4020,7 +3798,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 } @@ -4029,9 +3807,6 @@ func (m *TxnInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4046,7 +3821,7 @@ 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 { @@ -4077,7 +3852,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 } @@ -4105,7 +3880,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 } @@ -4124,7 +3899,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 } @@ -4143,7 +3918,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 } @@ -4162,7 +3937,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 } @@ -4174,7 +3949,7 @@ 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 { @@ -4205,7 +3980,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 } @@ -4233,7 +4008,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 } @@ -4252,7 +4027,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 } @@ -4271,7 +4046,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 } @@ -4280,9 +4055,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4306,7 +4078,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 } @@ -4315,9 +4087,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4341,7 +4110,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 } @@ -4350,9 +4119,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4364,7 +4130,7 @@ func (m *Event) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Watermark", wireType) } var v uint64 for shift := uint(0); ; shift += 7 { @@ -4376,12 +4142,12 @@ 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 } } - m.Event = &Event_ResolvedTs{v} + m.Event = &Event_Watermark{v} case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) @@ -4396,7 +4162,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 } @@ -4415,7 +4181,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 } @@ -4424,9 +4190,6 @@ func (m *Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4442,7 +4205,7 @@ 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 { @@ -4473,7 +4236,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 } @@ -4501,7 +4264,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 } @@ -4520,7 +4283,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 } @@ -4539,7 +4302,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 } @@ -4558,7 +4321,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 } @@ -4577,7 +4340,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 } @@ -4586,9 +4349,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 } @@ -4611,7 +4371,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 } @@ -4620,9 +4380,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 } @@ -4645,7 +4402,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 } @@ -4654,9 +4411,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 } @@ -4679,7 +4433,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 } @@ -4698,7 +4452,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 } @@ -4709,7 +4463,7 @@ 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 { @@ -4740,7 +4494,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 } @@ -4768,7 +4522,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 } @@ -4777,9 +4531,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 } @@ -4794,7 +4545,7 @@ 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 { @@ -4825,7 +4576,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 } @@ -4853,7 +4604,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 } @@ -4862,9 +4613,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 } @@ -4889,7 +4637,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 } @@ -4898,9 +4646,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 } @@ -4917,7 +4662,7 @@ 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 { @@ -4948,7 +4693,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 } @@ -4976,7 +4721,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 } @@ -4985,9 +4730,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 } @@ -5002,7 +4744,7 @@ 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 { @@ -5033,7 +4775,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 } @@ -5061,7 +4803,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 } @@ -5070,9 +4812,6 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5083,7 +4822,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Watermark", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5095,7 +4834,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 } @@ -5104,16 +4843,13 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResolvedTs == nil { - m.ResolvedTs = &ResolvedTs{} + if m.Watermark == nil { + m.Watermark = &Watermark{} } - if err := m.ResolvedTs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Watermark.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5123,7 +4859,7 @@ 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 { @@ -5139,7 +4875,7 @@ func (m *ChangeDataEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *ResolvedTs) Unmarshal(dAtA []byte) error { +func (m *Watermark) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5154,7 +4890,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 } @@ -5162,10 +4898,10 @@ func (m *ResolvedTs) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ResolvedTs: wiretype end group for non-group") + return fmt.Errorf("proto: Watermark: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ResolvedTs: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Watermark: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5180,7 +4916,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 } @@ -5197,7 +4933,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 } @@ -5206,23 +4942,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 { @@ -5234,7 +4956,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 } @@ -5258,7 +4980,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 } @@ -5277,7 +4999,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 } @@ -5288,7 +5010,7 @@ 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 { @@ -5319,7 +5041,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 } @@ -5347,7 +5069,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 } @@ -5356,9 +5078,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5383,7 +5102,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 } @@ -5402,7 +5121,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 } @@ -5411,9 +5130,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5438,7 +5154,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 } @@ -5457,7 +5173,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 } @@ -5466,9 +5182,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5491,7 +5204,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 } @@ -5500,9 +5213,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5525,7 +5235,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 } @@ -5544,7 +5254,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 } @@ -5563,7 +5273,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 } @@ -5572,9 +5282,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5598,7 +5305,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 } @@ -5607,9 +5314,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5633,7 +5337,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 } @@ -5652,7 +5356,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 } @@ -5672,7 +5376,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 } @@ -5681,9 +5385,6 @@ func (m *ChangeDataRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthCdcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthCdcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5699,7 +5400,7 @@ 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 { @@ -5730,7 +5431,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 } @@ -5750,7 +5451,7 @@ 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 { @@ -5781,7 +5482,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 } @@ -5801,7 +5502,7 @@ 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 { @@ -5832,7 +5533,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 } @@ -5860,7 +5561,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 } @@ -5869,9 +5570,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 } @@ -5886,7 +5584,7 @@ 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 { @@ -5905,7 +5603,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 { @@ -5937,8 +5634,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 { @@ -5955,34 +5654,153 @@ 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", fileDescriptor_cdcpb_32010f5b637ea595) } + +var fileDescriptor_cdcpb_32010f5b637ea595 = []byte{ + // 1498 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x72, 0xdb, 0xc8, + 0x11, 0x26, 0xf8, 0xcf, 0xe6, 0x8f, 0xa0, 0xb1, 0x63, 0xd3, 0x4c, 0x45, 0x71, 0x68, 0x27, 0x91, + 0x9d, 0x0a, 0x6d, 0x2b, 0x71, 0x0e, 0x4e, 0xc5, 0x89, 0x28, 0xd2, 0x21, 0x4b, 0x14, 0xe5, 0x1a, + 0xc1, 0x72, 0x55, 0x0e, 0x41, 0x41, 0xc0, 0x88, 0x42, 0x91, 0xc4, 0xc0, 0xc0, 0x90, 0x22, 0x6f, + 0x39, 0xe6, 0xb2, 0xb7, 0x3d, 0xec, 0x23, 0xec, 0x93, 0x6c, 0xed, 0x71, 0x8f, 0x3e, 0x6e, 0x79, + 0x5f, 0x60, 0x1f, 0x61, 0x6b, 0x7a, 0x00, 0xf0, 0xc7, 0x96, 0xb7, 0x6a, 0x4f, 0x9c, 0xee, 0xaf, + 0xa7, 0xd1, 0xff, 0x3d, 0x84, 0xb2, 0xed, 0xd8, 0xfe, 0x45, 0xcb, 0x0f, 0xb8, 0xe0, 0x24, 0x87, + 0x44, 0x43, 0x0f, 0xac, 0x4b, 0x61, 0xda, 0x53, 0x27, 0x06, 0x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9e, 0x6e, 0x97, 0x92, 0xc7, 0xe5, 0xc1, + 0x97, 0x1a, 0xc0, 0xca, 0x01, 0x72, 0x08, 0x25, 0x6c, 0xd4, 0x57, 0x8c, 0x39, 0xa4, 0x7e, 0x93, + 0x83, 0x8d, 0x3b, 0x1f, 0x21, 0x78, 0x6b, 0x5f, 0x7b, 0xaa, 0x91, 0x23, 0x28, 0x27, 0x2a, 0xce, + 0x0f, 0x7e, 0x99, 0x92, 0xf6, 0x1f, 0xde, 0x7f, 0x5d, 0xd4, 0xbe, 0xfd, 0xb0, 0xa7, 0x7d, 0xf7, + 0x61, 0x4f, 0xfb, 0xfe, 0xc3, 0x9e, 0xf6, 0xd5, 0x0f, 0x7b, 0x29, 0xd0, 0x79, 0x30, 0x6a, 0x09, + 0x77, 0x3c, 0x6f, 0x8d, 0xe7, 0xf8, 0x87, 0xe0, 0x22, 0x8f, 0x3f, 0x7f, 0xf9, 0x29, 0x00, 0x00, + 0xff, 0xff, 0xb1, 0xaa, 0x2d, 0x77, 0x92, 0x0c, 0x00, 0x00, +} diff --git a/pkg/configpb/configpb.pb.go b/pkg/configpb/configpb.pb.go index 99caf34264..107562380a 100644 --- a/pkg/configpb/configpb.pb.go +++ b/pkg/configpb/configpb.pb.go @@ -4,18 +4,18 @@ 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 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type StatusCode int32 @@ -48,7 +48,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,9 +60,8 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{0} } type Status struct { @@ -78,7 +76,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{0} } func (m *Status) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -88,15 +86,15 @@ func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Status.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Status) XXX_Merge(src proto.Message) { + xxx_messageInfo_Status.Merge(dst, src) } func (m *Status) XXX_Size() int { return m.Size() @@ -139,7 +137,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{1} } func (m *Version) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -149,15 +147,15 @@ func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Version.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Version) XXX_Merge(src proto.Message) { + xxx_messageInfo_Version.Merge(dst, src) } func (m *Version) XXX_Size() int { return m.Size() @@ -193,7 +191,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{2} } func (m *Local) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -203,15 +201,15 @@ func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Local.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Local) XXX_Merge(src proto.Message) { + xxx_messageInfo_Local.Merge(dst, src) } func (m *Local) XXX_Size() int { return m.Size() @@ -240,7 +238,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{3} } func (m *Global) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -250,15 +248,15 @@ func (m *Global) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Global.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Global) XXX_Merge(src proto.Message) { + xxx_messageInfo_Global.Merge(dst, src) } func (m *Global) XXX_Size() int { return m.Size() @@ -290,7 +288,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{4} } func (m *ConfigKind) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -300,15 +298,15 @@ func (m *ConfigKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConfigKind.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ConfigKind) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigKind.Merge(dst, src) } func (m *ConfigKind) XXX_Size() int { return m.Size() @@ -326,10 +324,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,14 +354,80 @@ 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), } } +func _ConfigKind_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ConfigKind) + // kind + switch x := m.Kind.(type) { + case *ConfigKind_Local: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Local); err != nil { + return err + } + case *ConfigKind_Global: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Global); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ConfigKind.Kind has unexpected type %T", x) + } + return nil +} + +func _ConfigKind_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ConfigKind) + switch tag { + case 1: // kind.local + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Local) + err := b.DecodeMessage(msg) + m.Kind = &ConfigKind_Local{msg} + return true, err + case 2: // kind.global + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Global) + err := b.DecodeMessage(msg) + m.Kind = &ConfigKind_Global{msg} + return true, err + default: + return false, nil + } +} + +func _ConfigKind_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ConfigKind) + // kind + switch x := m.Kind.(type) { + case *ConfigKind_Local: + s := proto.Size(x.Local) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ConfigKind_Global: + s := proto.Size(x.Global) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + 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"` @@ -376,7 +440,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{5} } func (m *ConfigEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -386,15 +450,15 @@ func (m *ConfigEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ConfigEntry.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *ConfigEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigEntry.Merge(m, src) +func (dst *ConfigEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfigEntry.Merge(dst, src) } func (m *ConfigEntry) XXX_Size() int { return m.Size() @@ -420,7 +484,7 @@ func (m *ConfigEntry) GetValue() string { } type LocalConfig struct { - Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + 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"` @@ -433,7 +497,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{6} } func (m *LocalConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -443,15 +507,15 @@ func (m *LocalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_LocalConfig.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LocalConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalConfig.Merge(dst, src) } func (m *LocalConfig) XXX_Size() int { return m.Size() @@ -501,7 +565,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{7} } func (m *Header) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -511,15 +575,15 @@ func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Header.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Header.Merge(dst, src) } func (m *Header) XXX_Size() int { return m.Size() @@ -538,8 +602,8 @@ 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"` + 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"` @@ -552,7 +616,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{8} } func (m *CreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -562,15 +626,15 @@ func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRequest.Merge(dst, src) } func (m *CreateRequest) XXX_Size() int { return m.Size() @@ -617,9 +681,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -630,7 +694,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{9} } func (m *CreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -640,15 +704,15 @@ func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateResponse.Merge(dst, src) } func (m *CreateResponse) XXX_Size() int { return m.Size() @@ -688,7 +752,7 @@ func (m *CreateResponse) GetConfig() string { } type GetAllRequest struct { - Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -698,7 +762,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{10} } func (m *GetAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -708,15 +772,15 @@ func (m *GetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_GetAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllRequest.Merge(dst, src) } func (m *GetAllRequest) XXX_Size() int { return m.Size() @@ -735,9 +799,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -747,7 +811,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{11} } func (m *GetAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -757,15 +821,15 @@ func (m *GetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_GetAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllResponse.Merge(dst, src) } func (m *GetAllResponse) XXX_Size() int { return m.Size() @@ -798,8 +862,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -811,7 +875,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{12} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -821,15 +885,15 @@ func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(dst, src) } func (m *GetRequest) XXX_Size() int { return m.Size() @@ -869,9 +933,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -882,7 +946,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{13} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -892,15 +956,15 @@ func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(dst, src) } func (m *GetResponse) XXX_Size() int { return m.Size() @@ -940,10 +1004,10 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -953,7 +1017,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{14} } func (m *UpdateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -963,15 +1027,15 @@ func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_UpdateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateRequest.Merge(dst, src) } func (m *UpdateRequest) XXX_Size() int { return m.Size() @@ -1011,9 +1075,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1024,7 +1088,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{15} } func (m *UpdateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1034,15 +1098,15 @@ func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_UpdateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateResponse.Merge(dst, src) } func (m *UpdateResponse) XXX_Size() int { return m.Size() @@ -1082,9 +1146,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1094,7 +1158,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{16} } func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1104,15 +1168,15 @@ func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRequest.Merge(dst, src) } func (m *DeleteRequest) XXX_Size() int { return m.Size() @@ -1145,9 +1209,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1157,7 +1221,7 @@ 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} + return fileDescriptor_configpb_6d0f7689747bcf7d, []int{17} } func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1167,15 +1231,15 @@ func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResponse.Merge(dst, src) } func (m *DeleteResponse) XXX_Size() int { return m.Size() @@ -1208,7 +1272,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 +1290,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, 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, 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, + proto.RegisterEnum("configpb.StatusCode", StatusCode_name, StatusCode_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1295,9 +1301,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) @@ -1359,7 +1364,8 @@ func (c *configClient) Delete(ctx context.Context, in *DeleteRequest, opts ...gr 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 +1374,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 +1500,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 +1508,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1540,30 @@ 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 + if m.XXX_unrecognized != nil { + i += 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 } @@ -1598,33 +1571,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1598,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1625,55 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1681,32 @@ 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.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintConfigpb(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 = encodeVarintConfigpb(dAtA, i, uint64(len(m.Value))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(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 = encodeVarintConfigpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 +1714,48 @@ 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 len(m.Config) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) } - 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1763,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1789,58 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1848,56 @@ 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 + } + if len(m.Config) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 +1905,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1936,52 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1989,52 @@ 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 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2042,56 @@ 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 + } + if len(m.Config) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(len(m.Config))) + i += copy(dAtA[i:], m.Config) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 +2099,62 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2162,56 @@ 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) + } + if m.XXX_unrecognized != nil { + i += 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 } @@ -2405,62 +2219,50 @@ 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)) - } - 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)) + 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-- + i += n24 + } + if m.Version != nil { dAtA[i] = 0x12 + i++ + i = encodeVarintConfigpb(dAtA, i, uint64(m.Version.Size())) + n25, err := m.Version.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2270,56 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -2551,9 +2336,6 @@ func (m *Status) Size() (n int) { } func (m *Version) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Local != 0 { @@ -2569,9 +2351,6 @@ func (m *Version) Size() (n int) { } func (m *Local) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ComponentId) @@ -2585,9 +2364,6 @@ func (m *Local) Size() (n int) { } func (m *Global) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Component) @@ -2601,9 +2377,6 @@ func (m *Global) Size() (n int) { } func (m *ConfigKind) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Kind != nil { @@ -2616,9 +2389,6 @@ func (m *ConfigKind) Size() (n int) { } func (m *ConfigKind_Local) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Local != nil { @@ -2628,9 +2398,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 +2407,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) @@ -2660,9 +2424,6 @@ func (m *ConfigEntry) Size() (n int) { } func (m *LocalConfig) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Version != nil { @@ -2688,9 +2449,6 @@ func (m *LocalConfig) Size() (n int) { } func (m *Header) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -2703,9 +2461,6 @@ func (m *Header) Size() (n int) { } func (m *CreateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2735,9 +2490,6 @@ func (m *CreateRequest) Size() (n int) { } func (m *CreateResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2763,9 +2515,6 @@ func (m *CreateResponse) Size() (n int) { } func (m *GetAllRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2779,9 +2528,6 @@ func (m *GetAllRequest) Size() (n int) { } func (m *GetAllResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2805,9 +2551,6 @@ func (m *GetAllResponse) Size() (n int) { } func (m *GetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2833,9 +2576,6 @@ func (m *GetRequest) Size() (n int) { } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2861,9 +2601,6 @@ func (m *GetResponse) Size() (n int) { } func (m *UpdateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2891,9 +2628,6 @@ func (m *UpdateRequest) Size() (n int) { } func (m *UpdateResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2919,9 +2653,6 @@ func (m *UpdateResponse) Size() (n int) { } func (m *DeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2943,9 +2674,6 @@ func (m *DeleteRequest) Size() (n int) { } func (m *DeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2967,7 +2695,14 @@ func (m *DeleteResponse) Size() (n int) { } 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 +2722,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 +2750,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 +2769,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 +2779,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,7 +2790,7 @@ 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 { @@ -3089,7 +2821,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 +2849,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 +2868,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,7 +2879,7 @@ 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 { @@ -3178,7 +2910,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 +2938,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 +2948,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,7 +2959,7 @@ 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 { @@ -3261,7 +2990,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 +3018,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 +3028,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,7 +3039,7 @@ 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 { @@ -3344,7 +3070,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 +3098,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 +3107,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 +3130,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 +3139,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,7 +3154,7 @@ 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 { @@ -3465,7 +3185,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 +3213,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 +3223,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 +3242,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 +3252,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,7 +3263,7 @@ 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 { @@ -3580,7 +3294,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 +3322,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 +3331,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 +3355,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 +3365,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 +3384,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 +3394,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 +3413,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 +3423,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,7 +3434,7 @@ 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 { @@ -3763,7 +3465,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 +3493,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,7 +3504,7 @@ 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 { @@ -3833,7 +3535,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 +3563,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 +3572,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 +3596,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 +3605,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 +3629,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 +3639,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 +3658,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 +3668,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 +3687,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 +3697,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,7 +3708,7 @@ 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 { @@ -4052,7 +3739,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 +3767,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 +3776,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 +3800,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 +3809,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 +3833,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 +3842,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 +3866,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 +3876,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,7 +3887,7 @@ 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 { @@ -4243,7 +3918,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 +3946,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 +3955,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,7 +3971,7 @@ 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 { @@ -4330,7 +4002,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 +4030,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 +4039,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 +4063,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 +4072,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 +4096,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 +4105,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,7 +4119,7 @@ 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 { @@ -4487,7 +4150,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 +4178,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 +4187,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 +4211,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 +4220,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 +4244,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 +4254,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 +4273,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 +4283,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,7 +4294,7 @@ 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 { @@ -4674,7 +4325,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 +4353,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 +4362,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 +4386,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 +4395,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 +4419,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 +4428,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 +4452,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 +4462,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,7 +4473,7 @@ 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 { @@ -4865,7 +4504,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 +4532,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 +4541,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 +4565,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 +4574,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 +4598,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 +4607,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 +4631,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 +4640,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,7 +4654,7 @@ 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 { @@ -5058,7 +4685,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 +4713,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 +4722,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 +4746,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 +4755,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 +4779,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 +4788,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 +4812,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 +4822,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,7 +4833,7 @@ 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 { @@ -5249,7 +4864,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 +4892,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 +4901,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 +4925,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 +4934,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 +4958,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 +4967,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,7 +4983,7 @@ 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 { @@ -5408,7 +5014,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 +5042,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 +5051,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 +5075,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 +5084,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 +5108,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 +5117,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,7 +5133,7 @@ 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 { @@ -5555,7 +5152,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 +5183,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 +5203,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", fileDescriptor_configpb_6d0f7689747bcf7d) } + +var fileDescriptor_configpb_6d0f7689747bcf7d = []byte{ + // 830 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xcf, 0x24, 0x8e, 0xb3, 0x79, 0x6e, 0xd2, 0xec, 0x90, 0xee, 0x46, 0xd1, 0x12, 0x95, 0x39, + 0xb0, 0x51, 0x90, 0x36, 0x52, 0x38, 0xac, 0x58, 0x89, 0xc3, 0x36, 0x4d, 0x93, 0xa8, 0xc5, 0x46, + 0xd3, 0x7f, 0xc7, 0xc8, 0x8d, 0x87, 0x60, 0xe1, 0x7a, 0x82, 0xed, 0x54, 0xea, 0x95, 0x4f, 0x00, + 0xea, 0x85, 0x23, 0x07, 0x84, 0xe0, 0x53, 0x20, 0x6e, 0x1c, 0x91, 0xb8, 0x70, 0x44, 0x85, 0x6f, + 0xc0, 0x17, 0x40, 0x99, 0xb1, 0xeb, 0x71, 0x22, 0xa8, 0x7a, 0xa8, 0x94, 0x9b,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 0xf3, 0xc3, + 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x62, 0x2c, 0x39, 0xdf, 0x0a, 0x00, 0x00, +} diff --git a/pkg/configpb/configpb.pb.gw.go b/pkg/configpb/configpb.pb.gw.go index 9b4675b325..c0385b0e45 100644 --- a/pkg/configpb/configpb.pb.gw.go +++ b/pkg/configpb/configpb.pb.gw.go @@ -20,7 +20,6 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" ) @@ -31,7 +30,6 @@ var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray var _ = descriptor.ForMessage -var _ = metadata.Join var ( filter_Config_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} @@ -57,10 +55,7 @@ func local_request_Config_Get_0(ctx context.Context, marshaler runtime.Marshaler var protoReq GetRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Config_Get_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Config_Get_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -127,10 +122,7 @@ func local_request_Config_Delete_0(ctx context.Context, marshaler runtime.Marsha var protoReq DeleteRequest var metadata runtime.ServerMetadata - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Config_Delete_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Config_Delete_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -142,14 +134,11 @@ func local_request_Config_Delete_0(ctx context.Context, marshaler runtime.Marsha // RegisterConfigHandlerServer registers the http handlers for service Config to "mux". // UnaryRPC :call ConfigServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterConfigHandlerFromEndpoint instead. func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConfigServer) error { mux.Handle("GET", pattern_Config_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -157,7 +146,6 @@ func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser return } resp, md, err := local_request_Config_Get_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -171,8 +159,6 @@ func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser mux.Handle("POST", pattern_Config_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -180,7 +166,6 @@ func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser return } resp, md, err := local_request_Config_Update_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) @@ -194,8 +179,6 @@ func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser mux.Handle("DELETE", pattern_Config_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) if err != nil { @@ -203,7 +186,6 @@ func RegisterConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser return } resp, md, err := local_request_Config_Delete_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) diff --git a/pkg/coprocessor/coprocessor.pb.go b/pkg/coprocessor/coprocessor.pb.go index 300620cf97..23a9db1596 100644 --- a/pkg/coprocessor/coprocessor.pb.go +++ b/pkg/coprocessor/coprocessor.pb.go @@ -7,13 +7,16 @@ 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" + metapb "github.com/pingcap/kvproto/pkg/metapb" + github_com_pingcap_kvproto_pkg_sharedbytes "github.com/pingcap/kvproto/pkg/sharedbytes" ) @@ -26,7 +29,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // [start, end) type KeyRange struct { @@ -41,7 +44,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{0} } func (m *KeyRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -51,15 +54,15 @@ func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KeyRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyRange.Merge(dst, src) } func (m *KeyRange) XXX_Size() int { return m.Size() @@ -85,11 +88,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,7 +103,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -112,7 +115,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{1} } func (m *Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,15 +125,15 @@ func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Request.Merge(dst, src) } func (m *Request) XXX_Size() int { return m.Size() @@ -234,16 +237,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,7 +254,7 @@ 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"` + BatchResponses []*StoreBatchTaskResponse `protobuf:"bytes,13,rep,name=batch_responses,json=batchResponses" json:"batch_responses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -261,7 +264,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{2} } func (m *Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -271,15 +274,15 @@ func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Response.Merge(dst, src) } func (m *Response) XXX_Size() int { return m.Size() @@ -369,8 +372,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -380,7 +383,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{3} } func (m *RegionInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -390,15 +393,15 @@ func (m *RegionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RegionInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionInfo.Merge(dst, src) } func (m *RegionInfo) XXX_Size() int { return m.Size() @@ -432,7 +435,7 @@ 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"` + Regions []*RegionInfo `protobuf:"bytes,2,rep,name=regions" json:"regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -442,7 +445,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{4} } func (m *TableRegions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -452,15 +455,15 @@ func (m *TableRegions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TableRegions.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TableRegions) XXX_Merge(src proto.Message) { + xxx_messageInfo_TableRegions.Merge(dst, src) } func (m *TableRegions) XXX_Size() int { return m.Size() @@ -486,15 +489,15 @@ 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"` + 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"` @@ -507,7 +510,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{5} } func (m *BatchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -517,15 +520,15 @@ func (m *BatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_BatchRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRequest.Merge(dst, src) } func (m *BatchRequest) XXX_Size() int { return m.Size() @@ -609,8 +612,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -620,7 +623,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{6} } func (m *BatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -630,15 +633,15 @@ func (m *BatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_BatchResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchResponse.Merge(dst, src) } func (m *BatchResponse) XXX_Size() int { return m.Size() @@ -672,9 +675,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -685,7 +688,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{7} } func (m *StoreBatchTask) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -695,15 +698,15 @@ func (m *StoreBatchTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_StoreBatchTask.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreBatchTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreBatchTask.Merge(dst, src) } func (m *StoreBatchTask) XXX_Size() int { return m.Size() @@ -751,11 +754,11 @@ 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"` + 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,proto3" json:"exec_details_v2,omitempty"` + ExecDetailsV2 *kvrpcpb.ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -765,7 +768,7 @@ 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} + return fileDescriptor_coprocessor_9e9c89cf305f9535, []int{8} } func (m *StoreBatchTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -775,15 +778,15 @@ func (m *StoreBatchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_StoreBatchTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *StoreBatchTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreBatchTaskResponse.Merge(m, src) +func (dst *StoreBatchTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreBatchTaskResponse.Merge(dst, src) } func (m *StoreBatchTaskResponse) XXX_Size() int { return m.Size() @@ -840,83 +843,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, 0x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 0x8f, 0x77, 0xa2, 0x7f, 0xd7, 0x14, 0xaa, 0xf4, 0x8e, - 0x42, 0x5d, 0x17, 0x9d, 0xf2, 0x6d, 0x45, 0x67, 0x17, 0x1a, 0x82, 0x29, 0x71, 0x19, 0x2e, 0xdf, - 0x6c, 0x73, 0xf9, 0x2d, 0x60, 0xdf, 0x04, 0xe5, 0xb3, 0xed, 0xfc, 0xe6, 0x40, 0x73, 0xf9, 0x71, - 0xde, 0xcd, 0x7b, 0x6b, 0x43, 0x25, 0x63, 0x4c, 0xe4, 0xa7, 0xf1, 0x8b, 0xf8, 0xef, 0x19, 0x13, - 0xd8, 0x78, 0x3e, 0xf4, 0xa7, 0xff, 0x10, 0xea, 0xfa, 0x0f, 0xa8, 0x7b, 0xb4, 0x6c, 0xac, 0x69, - 0x73, 0x18, 0x75, 0x7e, 0x2d, 0xc1, 0xc6, 0xcd, 0x72, 0xf3, 0x7f, 0xfc, 0x9f, 0xbd, 0x6f, 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 +854,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +887,116 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1004,126 @@ func (m *Response) Marshal() (dAtA []byte, err error) { } func (m *Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) + n2, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if len(m.BatchResponses) > 0 { - for iNdEx := len(m.BatchResponses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BatchResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a + i += n2 + if m.RegionError != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.RegionError.Size())) + n3, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n3 } - if m.LatestBucketsVersion != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.LatestBucketsVersion)) - i-- - dAtA[i] = 0x60 + if m.Locked != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Locked.Size())) + n4, err := m.Locked.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - if m.ExecDetailsV2 != nil { - { - size, err := m.ExecDetailsV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + if len(m.OtherError) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) + i += copy(dAtA[i:], m.OtherError) + } + if m.Range != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Range.Size())) + n5, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n5 } - if m.CanBeCached { - i-- - if m.CanBeCached { + if m.ExecDetails != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetails.Size())) + n6, err := m.ExecDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.IsCacheHit { + dAtA[i] = 0x38 + i++ + if m.IsCacheHit { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x48 + i++ } if m.CacheLastVersion != 0 { - i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheLastVersion)) - i-- dAtA[i] = 0x40 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.CacheLastVersion)) } - if m.IsCacheHit { - i-- - if m.IsCacheHit { + if m.CanBeCached { + dAtA[i] = 0x48 + i++ + if m.CanBeCached { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 + i++ } - if m.ExecDetails != nil { - { - size, err := m.ExecDetails.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + if m.ExecDetailsV2 != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetailsV2.Size())) + n7, err := m.ExecDetailsV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n7 } - if len(m.OtherError) > 0 { - i -= len(m.OtherError) - copy(dAtA[i:], m.OtherError) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i-- - dAtA[i] = 0x22 - } - if m.Locked != nil { - { - size, err := m.Locked.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.LatestBucketsVersion != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.LatestBucketsVersion)) } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.BatchResponses) > 0 { + for _, msg := range m.BatchResponses { + dAtA[i] = 0x6a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += 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)) + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1131,47 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1179,37 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1217,92 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1310,56 @@ func (m *BatchResponse) Marshal() (dAtA []byte, err error) { } func (m *BatchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + dAtA[i] = 0xa + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.Data.Size())) + n10, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if len(m.RetryRegions) > 0 { - for iNdEx := len(m.RetryRegions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RetryRegions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + i += n10 + if len(m.OtherError) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) + i += copy(dAtA[i:], m.OtherError) } if m.ExecDetails != nil { - { - size, err := m.ExecDetails.MarshalToSizedBuffer(dAtA[:i]) + dAtA[i] = 0x1a + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(m.ExecDetails.Size())) + n11, err := m.ExecDetails.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if len(m.RetryRegions) > 0 { + for _, msg := range m.RetryRegions { + dAtA[i] = 0x22 + i++ + i = encodeVarintCoprocessor(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1a - } - if len(m.OtherError) > 0 { - i -= len(m.OtherError) - copy(dAtA[i:], m.OtherError) - i = encodeVarintCoprocessor(dAtA, i, uint64(len(m.OtherError))) - i-- - dAtA[i] = 0x12 } - { - size := m.Data.Size() - i -= size - if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintCoprocessor(dAtA, i, uint64(size)) + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1367,62 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1430,75 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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) @@ -1707,9 +1516,6 @@ func (m *KeyRange) Size() (n int) { } func (m *Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -1767,9 +1573,6 @@ func (m *Request) Size() (n int) { } func (m *Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -1823,9 +1626,6 @@ func (m *Response) Size() (n int) { } func (m *RegionInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1848,9 +1648,6 @@ func (m *RegionInfo) Size() (n int) { } func (m *TableRegions) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PhysicalTableId != 0 { @@ -1869,9 +1666,6 @@ func (m *TableRegions) Size() (n int) { } func (m *BatchRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -1921,9 +1715,6 @@ func (m *BatchRequest) Size() (n int) { } func (m *BatchResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -1949,9 +1740,6 @@ func (m *BatchResponse) Size() (n int) { } func (m *StoreBatchTask) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1981,9 +1769,6 @@ func (m *StoreBatchTask) Size() (n int) { } func (m *StoreBatchTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -2014,7 +1799,14 @@ func (m *StoreBatchTaskResponse) Size() (n int) { } 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 +1826,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 +1854,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 +1863,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 +1885,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 +1894,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,7 +1908,7 @@ 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 { @@ -2153,7 +1939,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 +1967,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 +1976,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 +2000,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 +2019,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 +2028,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 +2050,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 +2059,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 +2081,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 +2101,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 +2120,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 +2139,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 +2158,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 +2178,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 +2197,7 @@ func (m *Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2429,9 +2206,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 +2228,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 +2247,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 +2257,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,7 +2268,7 @@ 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 { @@ -2528,7 +2299,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 +2327,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 +2336,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 +2357,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 +2366,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 +2390,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 +2399,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 +2423,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 +2433,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 +2452,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 +2461,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 +2485,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 +2494,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 +2518,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 +2538,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 +2557,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 +2577,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 +2586,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 +2610,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 +2629,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 +2638,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,7 +2652,7 @@ 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 { @@ -2936,7 +2683,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 +2711,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 +2730,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 +2739,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 +2763,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 +2772,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,7 +2786,7 @@ 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 { @@ -3076,7 +2817,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 +2845,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 +2864,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 +2873,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,7 +2887,7 @@ 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 { @@ -3180,7 +2918,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 +2946,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 +2955,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 +2979,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 +2998,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 +3007,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 +3029,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 +3038,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 +3060,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 +3079,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 +3098,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 +3107,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 +3129,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 +3139,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 +3158,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 +3177,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 +3187,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,7 +3198,7 @@ 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 { @@ -3509,7 +3229,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 +3257,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 +3266,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 +3287,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 +3297,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 +3316,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 +3325,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 +3349,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 +3358,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,7 +3372,7 @@ 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 { @@ -3695,7 +3403,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 +3431,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 +3450,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 +3459,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 +3483,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 +3492,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 +3516,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 +3525,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 +3547,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,7 +3558,7 @@ 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 { @@ -3890,7 +3589,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 +3617,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 +3626,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 +3647,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 +3656,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 +3680,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 +3689,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 +3713,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 +3723,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 +3742,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 +3761,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 +3770,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,7 +3786,7 @@ 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 { @@ -4121,7 +3805,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 +3836,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 +3856,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", fileDescriptor_coprocessor_9e9c89cf305f9535) } + +var fileDescriptor_coprocessor_9e9c89cf305f9535 = []byte{ + // 1051 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00,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0xae, 0x8b, 0x4e, 0xf9, 0xb6, 0xa2, 0xb3, 0x0b, 0x0d, 0xc1, 0x94, 0xb8, 0x0c, 0x97, 0x4f, + 0xb6, 0xb9, 0x7c, 0x17, 0xb0, 0x6f, 0x92, 0xf2, 0xd9, 0x76, 0x7e, 0x73, 0xa0, 0xb9, 0x7c, 0x39, + 0xef, 0xe6, 0xbe, 0xb5, 0xa1, 0x92, 0x31, 0x26, 0xf2, 0xdd, 0xf8, 0x45, 0xfe, 0xf7, 0x8c, 0x09, + 0x6c, 0x22, 0x1f, 0xfb, 0x7f, 0xe0, 0x21, 0xd4, 0xf5, 0x0b, 0xa8, 0x31, 0x5a, 0x36, 0xd6, 0xb4, + 0x39, 0x8c, 0x3a, 0xbf, 0x96, 0x60, 0xe3, 0x66, 0xb9, 0xf9, 0x2f, 0xbe, 0x67, 0xef, 0x1b, 0xc3, + 0x4d, 0xcf, 0x41, 0xed, 0x23, 0x9e, 0x83, 0xc1, 0xff, 0xff, 0xf8, 0xc5, 0x75, 0x5e, 0x5f, 0x6d, + 0x3a, 0xbf, 0x5f, 0x6d, 0x3a, 0x7f, 0x5d, 0x6d, 0x3a, 0x3f, 0xff, 0xbd, 0x79, 0x0f, 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 c19b5a3cec..ca7f598cf4 100644 --- a/pkg/deadlock/deadlock.pb.go +++ b/pkg/deadlock/deadlock.pb.go @@ -4,17 +4,16 @@ 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 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type DeadlockRequestType int32 @@ -43,7 +42,6 @@ var DeadlockRequestType_name = map[int32]string{ 1: "CleanUpWaitFor", 2: "CleanUp", } - var DeadlockRequestType_value = map[string]int32{ "Detect": 0, "CleanUpWaitFor": 1, @@ -53,9 +51,8 @@ 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} + return fileDescriptor_deadlock_049c682449cfa76f, []int{0} } type WaitForEntriesRequest struct { @@ -68,7 +65,7 @@ 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} + return fileDescriptor_deadlock_049c682449cfa76f, []int{0} } func (m *WaitForEntriesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,15 +75,15 @@ func (m *WaitForEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_WaitForEntriesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WaitForEntriesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitForEntriesRequest.Merge(dst, src) } func (m *WaitForEntriesRequest) XXX_Size() int { return m.Size() @@ -98,7 +95,7 @@ func (m *WaitForEntriesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_WaitForEntriesRequest proto.InternalMessageInfo type WaitForEntriesResponse struct { - Entries []WaitForEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries"` + Entries []WaitForEntry `protobuf:"bytes,1,rep,name=entries" json:"entries"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -108,7 +105,7 @@ 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} + return fileDescriptor_deadlock_049c682449cfa76f, []int{1} } func (m *WaitForEntriesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,15 +115,15 @@ func (m *WaitForEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_WaitForEntriesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WaitForEntriesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitForEntriesResponse.Merge(dst, src) } func (m *WaitForEntriesResponse) XXX_Size() int { return m.Size() @@ -166,7 +163,7 @@ 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} + return fileDescriptor_deadlock_049c682449cfa76f, []int{2} } func (m *WaitForEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -176,15 +173,15 @@ func (m *WaitForEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_WaitForEntry.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WaitForEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitForEntry.Merge(dst, src) } func (m *WaitForEntry) XXX_Size() int { return m.Size() @@ -239,7 +236,7 @@ func (m *WaitForEntry) GetWaitTime() uint64 { type DeadlockRequest struct { Tp DeadlockRequestType `protobuf:"varint,1,opt,name=tp,proto3,enum=deadlock.DeadlockRequestType" json:"tp,omitempty"` - Entry WaitForEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry"` + Entry WaitForEntry `protobuf:"bytes,2,opt,name=entry" json:"entry"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -249,7 +246,7 @@ func (m *DeadlockRequest) Reset() { *m = DeadlockRequest{} } func (m *DeadlockRequest) String() string { return proto.CompactTextString(m) } func (*DeadlockRequest) ProtoMessage() {} func (*DeadlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{3} + return fileDescriptor_deadlock_049c682449cfa76f, []int{3} } func (m *DeadlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -259,15 +256,15 @@ func (m *DeadlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_DeadlockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeadlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeadlockRequest.Merge(dst, src) } func (m *DeadlockRequest) XXX_Size() int { return m.Size() @@ -294,12 +291,12 @@ func (m *DeadlockRequest) GetEntry() WaitForEntry { type DeadlockResponse struct { // The same entry sent by DeadlockRequest, identifies the sender. - Entry WaitForEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry"` + Entry WaitForEntry `protobuf:"bytes,1,opt,name=entry" json:"entry"` // The key hash of the lock that is hold by the waiting transaction. DeadlockKeyHash uint64 `protobuf:"varint,2,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` // The other entries of the dead lock circle. The current entry is in `entry` field and not // included in this field. - WaitChain []*WaitForEntry `protobuf:"bytes,3,rep,name=wait_chain,json=waitChain,proto3" json:"wait_chain,omitempty"` + WaitChain []*WaitForEntry `protobuf:"bytes,3,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -309,7 +306,7 @@ func (m *DeadlockResponse) Reset() { *m = DeadlockResponse{} } func (m *DeadlockResponse) String() string { return proto.CompactTextString(m) } func (*DeadlockResponse) ProtoMessage() {} func (*DeadlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1995e4345c820a37, []int{4} + return fileDescriptor_deadlock_049c682449cfa76f, []int{4} } func (m *DeadlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,15 +316,15 @@ func (m *DeadlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_DeadlockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeadlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeadlockResponse.Merge(dst, src) } func (m *DeadlockResponse) XXX_Size() int { return m.Size() @@ -360,48 +357,12 @@ func (m *DeadlockResponse) GetWaitChain() []*WaitForEntry { } func init() { - proto.RegisterEnum("deadlock.DeadlockRequestType", DeadlockRequestType_name, DeadlockRequestType_value) proto.RegisterType((*WaitForEntriesRequest)(nil), "deadlock.WaitForEntriesRequest") proto.RegisterType((*WaitForEntriesResponse)(nil), "deadlock.WaitForEntriesResponse") proto.RegisterType((*WaitForEntry)(nil), "deadlock.WaitForEntry") proto.RegisterType((*DeadlockRequest)(nil), "deadlock.DeadlockRequest") proto.RegisterType((*DeadlockResponse)(nil), "deadlock.DeadlockResponse") -} - -func init() { proto.RegisterFile("deadlock.proto", fileDescriptor_1995e4345c820a37) } - -var fileDescriptor_1995e4345c820a37 = []byte{ - // 465 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x51, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x84, 0x69, 0x94, 0xba, 0x03, 0x14, 0x37, 0x88, 0xd4, 0xf2, 0x53, - 0x54, 0x41, 0x41, 0x41, 0x70, 0x80, 0xb4, 0xa5, 0x48, 0xbc, 0x20, 0x2b, 0x08, 0xde, 0xac, 0x25, - 0x1d, 0x6c, 0xcb, 0xad, 0xd7, 0xd8, 0x1b, 0xb5, 0xbe, 0x09, 0x57, 0x40, 0xdc, 0x80, 0x13, 0xf4, - 0x91, 0x13, 0x20, 0x14, 0x2e, 0x82, 0x76, 0xed, 0x4d, 0x4a, 0x95, 0x40, 0xdf, 0xd6, 0xf3, 0xff, - 0xfb, 0xef, 0xcc, 0xb7, 0x6b, 0xe8, 0x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x3f, 0xd5, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x1a, 0x00, 0x2a, 0x86, 0x03, 0x00, - 0x00, + proto.RegisterEnum("deadlock.DeadlockRequestType", DeadlockRequestType_name, DeadlockRequestType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -412,9 +373,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. @@ -473,7 +433,8 @@ func (x *deadlockDetectClient) Recv() (*DeadlockResponse, error) { return m, nil } -// DeadlockServer is the server API for Deadlock service. +// Server API for Deadlock service + type DeadlockServer interface { // Get local wait for entries, should be handle by every node. // The owner should sent this request to all members to build the complete wait for graph. @@ -484,17 +445,6 @@ type DeadlockServer interface { Detect(Deadlock_DetectServer) error } -// UnimplementedDeadlockServer can be embedded to have forward compatible implementations. -type UnimplementedDeadlockServer struct { -} - -func (*UnimplementedDeadlockServer) GetWaitForEntries(ctx context.Context, req *WaitForEntriesRequest) (*WaitForEntriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWaitForEntries not implemented") -} -func (*UnimplementedDeadlockServer) Detect(srv Deadlock_DetectServer) error { - return status.Errorf(codes.Unimplemented, "method Detect not implemented") -} - func RegisterDeadlockServer(s *grpc.Server, srv DeadlockServer) { s.RegisterService(&_Deadlock_serviceDesc, srv) } @@ -566,7 +516,7 @@ var _Deadlock_serviceDesc = grpc.ServiceDesc{ func (m *WaitForEntriesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -574,26 +524,20 @@ 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) + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *WaitForEntriesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -601,40 +545,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil } func (m *WaitForEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -642,60 +578,52 @@ 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 len(m.ResourceGroupTag) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(len(m.ResourceGroupTag))) + i += copy(dAtA[i:], m.ResourceGroupTag) } - if m.WaitForTxn != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitForTxn)) - i-- - dAtA[i] = 0x10 + if m.WaitTime != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.WaitTime)) } - if m.Txn != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.Txn)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *DeadlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -703,41 +631,33 @@ func (m *DeadlockRequest) Marshal() (dAtA []byte, err error) { } func (m *DeadlockRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeadlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - { - size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 if m.Tp != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.Tp)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Tp)) + } + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -745,66 +665,51 @@ func (m *DeadlockResponse) Marshal() (dAtA []byte, err error) { } func (m *DeadlockResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeadlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.WaitChain) > 0 { - for iNdEx := len(m.WaitChain) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WaitChain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + dAtA[i] = 0xa + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.Entry.Size())) + n2, err := m.Entry.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n2 if m.DeadlockKeyHash != 0 { - i = encodeVarintDeadlock(dAtA, i, uint64(m.DeadlockKeyHash)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(m.DeadlockKeyHash)) } - { - size, err := m.Entry.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.WaitChain) > 0 { + for _, msg := range m.WaitChain { + dAtA[i] = 0x1a + i++ + i = encodeVarintDeadlock(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } - i -= size - i = encodeVarintDeadlock(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -814,9 +719,6 @@ func (m *WaitForEntriesRequest) Size() (n int) { } func (m *WaitForEntriesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -832,9 +734,6 @@ func (m *WaitForEntriesResponse) Size() (n int) { } func (m *WaitForEntry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Txn != 0 { @@ -864,9 +763,6 @@ func (m *WaitForEntry) Size() (n int) { } func (m *DeadlockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Tp != 0 { @@ -881,9 +777,6 @@ func (m *DeadlockRequest) Size() (n int) { } func (m *DeadlockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Entry.Size() @@ -904,7 +797,14 @@ func (m *DeadlockResponse) Size() (n int) { } func sovDeadlock(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozDeadlock(x uint64) (n int) { return sovDeadlock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -924,7 +824,7 @@ func (m *WaitForEntriesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -944,7 +844,7 @@ 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 { @@ -975,7 +875,7 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1003,7 +903,7 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1012,9 +912,6 @@ func (m *WaitForEntriesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1029,7 +926,7 @@ 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 { @@ -1060,7 +957,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1088,7 +985,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Txn |= uint64(b&0x7F) << shift + m.Txn |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1107,7 +1004,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitForTxn |= uint64(b&0x7F) << shift + m.WaitForTxn |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1126,7 +1023,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyHash |= uint64(b&0x7F) << shift + m.KeyHash |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1145,7 +1042,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1154,9 +1051,6 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1179,7 +1073,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1188,9 +1082,6 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1213,7 +1104,7 @@ func (m *WaitForEntry) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WaitTime |= uint64(b&0x7F) << shift + m.WaitTime |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1224,7 +1115,7 @@ 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 { @@ -1255,7 +1146,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1283,7 +1174,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tp |= DeadlockRequestType(b&0x7F) << shift + m.Tp |= (DeadlockRequestType(b) & 0x7F) << shift if b < 0x80 { break } @@ -1302,7 +1193,7 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1311,9 +1202,6 @@ func (m *DeadlockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1327,7 +1215,7 @@ 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 { @@ -1358,7 +1246,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1386,7 +1274,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1395,9 +1283,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1419,7 +1304,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DeadlockKeyHash |= uint64(b&0x7F) << shift + m.DeadlockKeyHash |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1438,7 +1323,7 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1447,9 +1332,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDeadlock } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDeadlock - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1464,7 +1346,7 @@ 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 { @@ -1483,7 +1365,6 @@ func (m *DeadlockResponse) Unmarshal(dAtA []byte) error { func skipDeadlock(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1515,8 +1396,10 @@ func skipDeadlock(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1533,34 +1416,89 @@ func skipDeadlock(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthDeadlock } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDeadlock + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDeadlock + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipDeadlock(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthDeadlock - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthDeadlock = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDeadlock = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDeadlock = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDeadlock = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDeadlock = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("deadlock.proto", fileDescriptor_deadlock_049c682449cfa76f) } + +var fileDescriptor_deadlock_049c682449cfa76f = []byte{ + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x51, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x84, 0x69, 0x94, 0xba, 0x03, 0x14, 0x37, 0x88, 0xd4, 0xf2, 0x53, + 0x54, 0x41, 0x41, 0x41, 0x70, 0x80, 0xb4, 0xa5, 0x48, 0xbc, 0x20, 0x2b, 0x08, 0xde, 0xac, 0x25, + 0x1d, 0x6c, 0xcb, 0xad, 0xd7, 0xd8, 0x1b, 0xb5, 0xbe, 0x09, 0x57, 0x40, 0xdc, 0x80, 0x13, 0xf4, + 0x91, 0x13, 0x20, 0x14, 0x2e, 0x82, 0x76, 0xed, 0x4d, 0x4a, 0x95, 0x40, 0xdf, 0xd6, 0xf3, 0xff, + 0xfb, 0xef, 0xcc, 0xb7, 0x6b, 0xe8, 0x9d, 0x12, 0x3f, 0x3d, 0x13, 0xd3, 0xf8, 0x20, 0xcd, 0x84, + 0x14, 0xd8, 0x31, 0xdf, 0xfd, 0x7b, 0x81, 0x08, 0x84, 0x2e, 0x3e, 0x55, 0xab, 0x52, 0x77, 0x1f, + 0xc0, 0xfd, 0xf7, 0x3c, 0x92, 0xaf, 0x44, 0x76, 0x9c, 0xc8, 0x2c, 0xa2, 0xdc, 0xa3, 0xcf, 0x33, + 0xca, 0xa5, 0xfb, 0x16, 0x76, 0x6e, 0x0a, 0x79, 0x2a, 0x92, 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0x8b, 0x20, + 0x76, 0xeb, 0x20, 0xdc, 0x87, 0x6d, 0xe3, 0xf2, 0x17, 0xfc, 0x4a, 0xba, 0x5b, 0x46, 0x78, 0x53, + 0x71, 0x7c, 0x01, 0x1a, 0xb8, 0x3f, 0x0d, 0x79, 0x94, 0xd8, 0x8d, 0x7f, 0x5d, 0xb1, 0xa7, 0x89, + 0x1d, 0x2a, 0xe3, 0xfe, 0x18, 0xee, 0xae, 0x18, 0x1d, 0x01, 0x5a, 0x47, 0x24, 0x69, 0x2a, 0xad, + 0x1a, 0x22, 0xf4, 0x0e, 0xcf, 0x88, 0x27, 0xef, 0xd2, 0x2a, 0xc4, 0x62, 0xb8, 0x09, 0xed, 0xaa, + 0x66, 0xd5, 0x47, 0xdf, 0x18, 0x74, 0x4c, 0x08, 0x7e, 0x80, 0xed, 0x13, 0x92, 0x7f, 0x3f, 0x42, + 0xdc, 0x5b, 0xd9, 0xc8, 0xf2, 0xdd, 0xf6, 0x9d, 0xf5, 0x86, 0x92, 0x9f, 0x5b, 0xc3, 0x63, 0xd3, + 0x13, 0xee, 0xae, 0xbd, 0xb7, 0x7e, 0x7f, 0x95, 0x64, 0x22, 0x86, 0xec, 0x19, 0x1b, 0x5b, 0x57, + 0xf3, 0x01, 0xfb, 0x31, 0x1f, 0xb0, 0x5f, 0xf3, 0x01, 0xfb, 0xf2, 0x7b, 0x50, 0xfb, 0xd8, 0xd2, + 0x3f, 0xd5, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x1a, 0x00, 0x2a, 0x86, 0x03, 0x00, + 0x00, +} diff --git a/pkg/debugpb/debugpb.pb.go b/pkg/debugpb/debugpb.pb.go index 51d6da5692..465bc3ae75 100644 --- a/pkg/debugpb/debugpb.pb.go +++ b/pkg/debugpb/debugpb.pb.go @@ -4,20 +4,22 @@ 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" + + 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 +31,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type DB int32 @@ -44,7 +46,6 @@ var DB_name = map[int32]string{ 1: "KV", 2: "RAFT", } - var DB_value = map[string]int32{ "INVALID": 0, "KV": 1, @@ -54,9 +55,8 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{0} } type MODULE int32 @@ -88,7 +88,6 @@ var MODULE_name = map[int32]string{ 9: "SECURITY", 10: "IMPORT", } - var MODULE_value = map[string]int32{ "UNUSED": 0, "KVDB": 1, @@ -106,9 +105,8 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{1} } type BottommostLevelCompaction int32 @@ -127,7 +125,6 @@ var BottommostLevelCompaction_name = map[int32]string{ 1: "Force", 2: "IfHaveCompactionFilter", } - var BottommostLevelCompaction_value = map[string]int32{ "Skip": 0, "Force": 1, @@ -137,9 +134,8 @@ 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 fileDescriptor_debugpb_8003e0b7ce4390c5, []int{2} } type GetRequest struct { @@ -155,7 +151,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{0} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -165,15 +161,15 @@ func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(dst, src) } func (m *GetRequest) XXX_Size() int { return m.Size() @@ -216,7 +212,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{1} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -226,15 +222,15 @@ func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(dst, src) } func (m *GetResponse) XXX_Size() int { return m.Size() @@ -264,7 +260,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{2} } func (m *RaftLogRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -274,15 +270,15 @@ func (m *RaftLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RaftLogRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftLogRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftLogRequest.Merge(dst, src) } func (m *RaftLogRequest) XXX_Size() int { return m.Size() @@ -308,7 +304,7 @@ func (m *RaftLogRequest) GetLogIndex() uint64 { } type RaftLogResponse struct { - Entry *eraftpb.Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` + Entry *eraftpb.Entry `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -318,7 +314,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{3} } func (m *RaftLogResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -328,15 +324,15 @@ func (m *RaftLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_RaftLogResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftLogResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftLogResponse.Merge(dst, src) } func (m *RaftLogResponse) XXX_Size() int { return m.Size() @@ -365,7 +361,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{4} } func (m *RegionInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -375,15 +371,15 @@ func (m *RegionInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_RegionInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionInfoRequest.Merge(dst, src) } func (m *RegionInfoRequest) XXX_Size() int { return m.Size() @@ -402,9 +398,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -414,7 +410,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{5} } func (m *RegionInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -424,15 +420,15 @@ func (m *RegionInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RegionInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionInfoResponse.Merge(dst, src) } func (m *RegionInfoResponse) XXX_Size() int { return m.Size() @@ -466,7 +462,7 @@ 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"` + Cfs []string `protobuf:"bytes,2,rep,name=cfs" json:"cfs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -476,7 +472,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{6} } func (m *RegionSizeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -486,15 +482,15 @@ func (m *RegionSizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_RegionSizeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionSizeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSizeRequest.Merge(dst, src) } func (m *RegionSizeRequest) XXX_Size() int { return m.Size() @@ -520,7 +516,7 @@ func (m *RegionSizeRequest) GetCfs() []string { } type RegionSizeResponse struct { - Entries []*RegionSizeResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Entries []*RegionSizeResponse_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -530,7 +526,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{7} } func (m *RegionSizeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -540,15 +536,15 @@ func (m *RegionSizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RegionSizeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionSizeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSizeResponse.Merge(dst, src) } func (m *RegionSizeResponse) XXX_Size() int { return m.Size() @@ -578,7 +574,7 @@ func (m *RegionSizeResponse_Entry) Reset() { *m = RegionSizeResponse_Ent 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{7, 0} } func (m *RegionSizeResponse_Entry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -588,15 +584,15 @@ func (m *RegionSizeResponse_Entry) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_RegionSizeResponse_Entry.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionSizeResponse_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSizeResponse_Entry.Merge(dst, src) } func (m *RegionSizeResponse_Entry) XXX_Size() int { return m.Size() @@ -634,7 +630,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{8} } func (m *ScanMvccRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -644,15 +640,15 @@ func (m *ScanMvccRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_ScanMvccRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanMvccRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanMvccRequest.Merge(dst, src) } func (m *ScanMvccRequest) XXX_Size() int { return m.Size() @@ -686,7 +682,7 @@ 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"` + Info *kvrpcpb.MvccInfo `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -696,7 +692,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{9} } func (m *ScanMvccResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -706,15 +702,15 @@ func (m *ScanMvccResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_ScanMvccResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanMvccResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanMvccResponse.Merge(dst, src) } func (m *ScanMvccResponse) XXX_Size() int { return m.Size() @@ -755,7 +751,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{10} } func (m *CompactRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -765,15 +761,15 @@ func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CompactRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactRequest.Merge(dst, src) } func (m *CompactRequest) XXX_Size() int { return m.Size() @@ -836,7 +832,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{11} } func (m *CompactResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -846,15 +842,15 @@ func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_CompactResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactResponse.Merge(dst, src) } func (m *CompactResponse) XXX_Size() int { return m.Size() @@ -877,7 +873,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{12} } func (m *InjectFailPointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -887,15 +883,15 @@ func (m *InjectFailPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_InjectFailPointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *InjectFailPointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InjectFailPointRequest.Merge(dst, src) } func (m *InjectFailPointRequest) XXX_Size() int { return m.Size() @@ -930,7 +926,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{13} } func (m *InjectFailPointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -940,15 +936,15 @@ func (m *InjectFailPointResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_InjectFailPointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *InjectFailPointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InjectFailPointResponse.Merge(dst, src) } func (m *InjectFailPointResponse) XXX_Size() int { return m.Size() @@ -970,7 +966,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{14} } func (m *RecoverFailPointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -980,15 +976,15 @@ func (m *RecoverFailPointRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_RecoverFailPointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RecoverFailPointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverFailPointRequest.Merge(dst, src) } func (m *RecoverFailPointRequest) XXX_Size() int { return m.Size() @@ -1016,7 +1012,7 @@ func (m *RecoverFailPointResponse) Reset() { *m = RecoverFailPointRespon func (m *RecoverFailPointResponse) String() string { return proto.CompactTextString(m) } func (*RecoverFailPointResponse) ProtoMessage() {} func (*RecoverFailPointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{15} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{15} } func (m *RecoverFailPointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1026,15 +1022,15 @@ func (m *RecoverFailPointResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_RecoverFailPointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RecoverFailPointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverFailPointResponse.Merge(dst, src) } func (m *RecoverFailPointResponse) XXX_Size() int { return m.Size() @@ -1055,7 +1051,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{16} } func (m *ListFailPointsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1065,15 +1061,15 @@ func (m *ListFailPointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ListFailPointsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ListFailPointsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFailPointsRequest.Merge(dst, src) } func (m *ListFailPointsRequest) XXX_Size() int { return m.Size() @@ -1085,7 +1081,7 @@ func (m *ListFailPointsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ListFailPointsRequest proto.InternalMessageInfo type ListFailPointsResponse struct { - Entries []*ListFailPointsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + Entries []*ListFailPointsResponse_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1095,7 +1091,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{17} } func (m *ListFailPointsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1105,15 +1101,15 @@ func (m *ListFailPointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_ListFailPointsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ListFailPointsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFailPointsResponse.Merge(dst, src) } func (m *ListFailPointsResponse) XXX_Size() int { return m.Size() @@ -1143,7 +1139,7 @@ func (m *ListFailPointsResponse_Entry) Reset() { *m = ListFailPointsResp 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{17, 0} } func (m *ListFailPointsResponse_Entry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1153,15 +1149,15 @@ func (m *ListFailPointsResponse_Entry) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_ListFailPointsResponse_Entry.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ListFailPointsResponse_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListFailPointsResponse_Entry.Merge(dst, src) } func (m *ListFailPointsResponse_Entry) XXX_Size() int { return m.Size() @@ -1197,7 +1193,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{18} } func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1207,15 +1203,15 @@ func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_GetMetricsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMetricsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsRequest.Merge(dst, src) } func (m *GetMetricsRequest) XXX_Size() int { return m.Size() @@ -1248,7 +1244,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{19} } func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1258,15 +1254,15 @@ func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetMetricsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsResponse.Merge(dst, src) } func (m *GetMetricsResponse) XXX_Size() int { return m.Size() @@ -1323,7 +1319,7 @@ func (m *RegionConsistencyCheckRequest) Reset() { *m = RegionConsistency func (m *RegionConsistencyCheckRequest) String() string { return proto.CompactTextString(m) } func (*RegionConsistencyCheckRequest) ProtoMessage() {} func (*RegionConsistencyCheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{20} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{20} } func (m *RegionConsistencyCheckRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1333,15 +1329,15 @@ func (m *RegionConsistencyCheckRequest) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_RegionConsistencyCheckRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionConsistencyCheckRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionConsistencyCheckRequest.Merge(dst, src) } func (m *RegionConsistencyCheckRequest) XXX_Size() int { return m.Size() @@ -1369,7 +1365,7 @@ func (m *RegionConsistencyCheckResponse) Reset() { *m = RegionConsistenc func (m *RegionConsistencyCheckResponse) String() string { return proto.CompactTextString(m) } func (*RegionConsistencyCheckResponse) ProtoMessage() {} func (*RegionConsistencyCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{21} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{21} } func (m *RegionConsistencyCheckResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1379,15 +1375,15 @@ func (m *RegionConsistencyCheckResponse) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_RegionConsistencyCheckResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionConsistencyCheckResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionConsistencyCheckResponse.Merge(dst, src) } func (m *RegionConsistencyCheckResponse) XXX_Size() int { return m.Size() @@ -1411,7 +1407,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{22} } func (m *ModifyTikvConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1421,15 +1417,15 @@ func (m *ModifyTikvConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_ModifyTikvConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ModifyTikvConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModifyTikvConfigRequest.Merge(dst, src) } func (m *ModifyTikvConfigRequest) XXX_Size() int { return m.Size() @@ -1471,7 +1467,7 @@ func (m *ModifyTikvConfigResponse) Reset() { *m = ModifyTikvConfigRespon func (m *ModifyTikvConfigResponse) String() string { return proto.CompactTextString(m) } func (*ModifyTikvConfigResponse) ProtoMessage() {} func (*ModifyTikvConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{23} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{23} } func (m *ModifyTikvConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1481,15 +1477,15 @@ func (m *ModifyTikvConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_ModifyTikvConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ModifyTikvConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ModifyTikvConfigResponse.Merge(dst, src) } func (m *ModifyTikvConfigResponse) XXX_Size() int { return m.Size() @@ -1512,7 +1508,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{24} } func (m *Property) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1522,15 +1518,15 @@ func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Property.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Property) XXX_Merge(src proto.Message) { + xxx_messageInfo_Property.Merge(dst, src) } func (m *Property) XXX_Size() int { return m.Size() @@ -1566,7 +1562,7 @@ func (m *GetRegionPropertiesRequest) Reset() { *m = GetRegionPropertiesR func (m *GetRegionPropertiesRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionPropertiesRequest) ProtoMessage() {} func (*GetRegionPropertiesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{25} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{25} } func (m *GetRegionPropertiesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1576,15 +1572,15 @@ func (m *GetRegionPropertiesRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_GetRegionPropertiesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *GetRegionPropertiesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRegionPropertiesRequest.Merge(m, src) +func (dst *GetRegionPropertiesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionPropertiesRequest.Merge(dst, src) } func (m *GetRegionPropertiesRequest) XXX_Size() int { return m.Size() @@ -1603,7 +1599,7 @@ func (m *GetRegionPropertiesRequest) GetRegionId() uint64 { } type GetRegionPropertiesResponse struct { - Props []*Property `protobuf:"bytes,1,rep,name=props,proto3" json:"props,omitempty"` + Props []*Property `protobuf:"bytes,1,rep,name=props" json:"props,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1613,7 +1609,7 @@ func (m *GetRegionPropertiesResponse) Reset() { *m = GetRegionProperties func (m *GetRegionPropertiesResponse) String() string { return proto.CompactTextString(m) } func (*GetRegionPropertiesResponse) ProtoMessage() {} func (*GetRegionPropertiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{26} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{26} } func (m *GetRegionPropertiesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1623,15 +1619,15 @@ func (m *GetRegionPropertiesResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_GetRegionPropertiesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRegionPropertiesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionPropertiesResponse.Merge(dst, src) } func (m *GetRegionPropertiesResponse) XXX_Size() int { return m.Size() @@ -1659,7 +1655,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{27} } func (m *GetStoreInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1669,15 +1665,15 @@ func (m *GetStoreInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetStoreInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetStoreInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreInfoRequest.Merge(dst, src) } func (m *GetStoreInfoRequest) XXX_Size() int { return m.Size() @@ -1700,7 +1696,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{28} } func (m *GetStoreInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1710,15 +1706,15 @@ func (m *GetStoreInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_GetStoreInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetStoreInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreInfoResponse.Merge(dst, src) } func (m *GetStoreInfoResponse) XXX_Size() int { return m.Size() @@ -1753,7 +1749,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{29} } func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1763,15 +1759,15 @@ func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_GetClusterInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetClusterInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoRequest.Merge(dst, src) } func (m *GetClusterInfoRequest) XXX_Size() int { return m.Size() @@ -1793,7 +1789,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{30} } func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1803,15 +1799,15 @@ func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_GetClusterInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetClusterInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoResponse.Merge(dst, src) } func (m *GetClusterInfoResponse) XXX_Size() int { return m.Size() @@ -1839,7 +1835,7 @@ func (m *GetAllRegionsInStoreRequest) Reset() { *m = GetAllRegionsInStor func (m *GetAllRegionsInStoreRequest) String() string { return proto.CompactTextString(m) } func (*GetAllRegionsInStoreRequest) ProtoMessage() {} func (*GetAllRegionsInStoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{31} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{31} } func (m *GetAllRegionsInStoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1849,15 +1845,15 @@ func (m *GetAllRegionsInStoreRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_GetAllRegionsInStoreRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllRegionsInStoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllRegionsInStoreRequest.Merge(dst, src) } func (m *GetAllRegionsInStoreRequest) XXX_Size() int { return m.Size() @@ -1869,7 +1865,7 @@ func (m *GetAllRegionsInStoreRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GetAllRegionsInStoreRequest proto.InternalMessageInfo type GetAllRegionsInStoreResponse struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1879,7 +1875,7 @@ func (m *GetAllRegionsInStoreResponse) Reset() { *m = GetAllRegionsInSto func (m *GetAllRegionsInStoreResponse) String() string { return proto.CompactTextString(m) } func (*GetAllRegionsInStoreResponse) ProtoMessage() {} func (*GetAllRegionsInStoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{32} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{32} } func (m *GetAllRegionsInStoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1889,15 +1885,15 @@ func (m *GetAllRegionsInStoreResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_GetAllRegionsInStoreResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllRegionsInStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllRegionsInStoreResponse.Merge(dst, src) } func (m *GetAllRegionsInStoreResponse) XXX_Size() int { return m.Size() @@ -1926,7 +1922,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{33} } func (m *ResetToVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1936,15 +1932,15 @@ func (m *ResetToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ResetToVersionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResetToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetToVersionRequest.Merge(dst, src) } func (m *ResetToVersionRequest) XXX_Size() int { return m.Size() @@ -1972,7 +1968,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{34} } func (m *ResetToVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1982,15 +1978,15 @@ func (m *ResetToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_ResetToVersionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResetToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetToVersionResponse.Merge(dst, src) } func (m *ResetToVersionResponse) XXX_Size() int { return m.Size() @@ -2013,7 +2009,7 @@ func (m *GetRangePropertiesRequest) Reset() { *m = GetRangePropertiesReq func (m *GetRangePropertiesRequest) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesRequest) ProtoMessage() {} func (*GetRangePropertiesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{35} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{35} } func (m *GetRangePropertiesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2023,15 +2019,15 @@ func (m *GetRangePropertiesRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_GetRangePropertiesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *GetRangePropertiesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRangePropertiesRequest.Merge(m, src) +func (dst *GetRangePropertiesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRangePropertiesRequest.Merge(dst, src) } func (m *GetRangePropertiesRequest) XXX_Size() int { return m.Size() @@ -2057,7 +2053,7 @@ func (m *GetRangePropertiesRequest) GetEndKey() []byte { } type GetRangePropertiesResponse struct { - Properties []*GetRangePropertiesResponse_RangeProperty `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` + Properties []*GetRangePropertiesResponse_RangeProperty `protobuf:"bytes,1,rep,name=properties" json:"properties,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2067,7 +2063,7 @@ func (m *GetRangePropertiesResponse) Reset() { *m = GetRangePropertiesRe func (m *GetRangePropertiesResponse) String() string { return proto.CompactTextString(m) } func (*GetRangePropertiesResponse) ProtoMessage() {} func (*GetRangePropertiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{36} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{36} } func (m *GetRangePropertiesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2077,15 +2073,15 @@ func (m *GetRangePropertiesResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_GetRangePropertiesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRangePropertiesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRangePropertiesResponse.Merge(dst, src) } func (m *GetRangePropertiesResponse) XXX_Size() int { return m.Size() @@ -2117,7 +2113,7 @@ 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} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{36, 0} } func (m *GetRangePropertiesResponse_RangeProperty) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2127,15 +2123,15 @@ func (m *GetRangePropertiesResponse_RangeProperty) XXX_Marshal(b []byte, determi return xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRangePropertiesResponse_RangeProperty) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRangePropertiesResponse_RangeProperty.Merge(dst, src) } func (m *GetRangePropertiesResponse_RangeProperty) XXX_Size() int { return m.Size() @@ -2161,7 +2157,7 @@ func (m *GetRangePropertiesResponse_RangeProperty) GetValue() string { } type FlashbackToVersionRequest 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"` 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"` @@ -2177,7 +2173,7 @@ func (m *FlashbackToVersionRequest) Reset() { *m = FlashbackToVersionReq func (m *FlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionRequest) ProtoMessage() {} func (*FlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{37} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{37} } func (m *FlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2187,15 +2183,15 @@ func (m *FlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_FlashbackToVersionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlashbackToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionRequest.Merge(dst, src) } func (m *FlashbackToVersionRequest) XXX_Size() int { return m.Size() @@ -2266,7 +2262,7 @@ func (m *FlashbackToVersionResponse) Reset() { *m = FlashbackToVersionRe func (m *FlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionResponse) ProtoMessage() {} func (*FlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{38} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{38} } func (m *FlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2276,15 +2272,15 @@ func (m *FlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_FlashbackToVersionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlashbackToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionResponse.Merge(dst, src) } func (m *FlashbackToVersionResponse) XXX_Size() int { return m.Size() @@ -2315,7 +2311,7 @@ func (m *GetRegionReadProgressRequest) Reset() { *m = GetRegionReadProgr func (m *GetRegionReadProgressRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionReadProgressRequest) ProtoMessage() {} func (*GetRegionReadProgressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{39} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{39} } func (m *GetRegionReadProgressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2325,15 +2321,15 @@ func (m *GetRegionReadProgressRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_GetRegionReadProgressRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRegionReadProgressRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionReadProgressRequest.Merge(dst, src) } func (m *GetRegionReadProgressRequest) XXX_Size() int { return m.Size() @@ -2380,8 +2376,8 @@ type GetRegionReadProgressResponse struct { ReadStateTs uint64 `protobuf:"varint,18,opt,name=read_state_ts,json=readStateTs,proto3" json:"read_state_ts,omitempty"` 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"` + // below are from watermark module + Watermark uint64 `protobuf:"varint,11,opt,name=watermark,proto3" json:"watermark,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"` @@ -2397,7 +2393,7 @@ func (m *GetRegionReadProgressResponse) Reset() { *m = GetRegionReadProg func (m *GetRegionReadProgressResponse) String() string { return proto.CompactTextString(m) } func (*GetRegionReadProgressResponse) ProtoMessage() {} func (*GetRegionReadProgressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_823ddaea3037c5c3, []int{40} + return fileDescriptor_debugpb_8003e0b7ce4390c5, []int{40} } func (m *GetRegionReadProgressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2407,15 +2403,15 @@ func (m *GetRegionReadProgressResponse) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_GetRegionReadProgressResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRegionReadProgressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionReadProgressResponse.Merge(dst, src) } func (m *GetRegionReadProgressResponse) XXX_Size() int { return m.Size() @@ -2517,9 +2513,9 @@ func (m *GetRegionReadProgressResponse) GetDiscard() bool { return false } -func (m *GetRegionReadProgressResponse) GetResolvedTs() uint64 { +func (m *GetRegionReadProgressResponse) GetWatermark() uint64 { if m != nil { - return m.ResolvedTs + return m.Watermark } return 0 } @@ -2567,9 +2563,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 +2607,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,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54, 0x14, 0x91, 0x3f, 0x4b, 0x2d, 0xeb, 0xe4, 0xd2, 0xa3, 0xec, 0xb5, 0x30, - 0xab, 0x89, 0xca, 0x5f, 0x51, 0x54, 0x9d, 0xe0, 0xc9, 0x27, 0x31, 0xed, 0x75, 0xb0, 0x1b, 0x61, - 0x2f, 0xc0, 0x09, 0xf7, 0xb4, 0x20, 0x3c, 0xed, 0x0c, 0x7b, 0x2a, 0x4b, 0xb3, 0x4b, 0x61, 0x75, - 0x25, 0x0a, 0x37, 0x71, 0x4d, 0xf8, 0x5d, 0x48, 0x59, 0x09, 0xc4, 0x92, 0xb6, 0xc6, 0x97, 0x54, - 0xe1, 0x6a, 0x64, 0xc3, 0xb2, 0x98, 0x25, 0xe8, 0x0e, 0x2f, 0x1b, 0x12, 0x21, 0x17, 0xb9, 0x50, - 0x30, 0x99, 0x3a, 0x45, 0x5f, 0xc1, 0xa6, 0x66, 0x23, 0x99, 0x96, 0xec, 0xca, 0xba, 0x30, 0x5e, - 0xcf, 0x8c, 0x05, 0x9f, 0x92, 0x1d, 0x29, 0x41, 0x21, 0x08, 0xa9, 0xef, 0x25, 0x41, 0x69, 0x43, - 0xa4, 0x90, 0x0e, 0xf9, 0xad, 0x9e, 0x60, 0x4a, 0xa2, 0x3e, 0x0e, 0x78, 0xc0, 0x45, 0x09, 0xe9, - 0x54, 0x54, 0xa7, 0xe8, 0x05, 0x8f, 0x27, 0x46, 0x89, 0xcb, 0x12, 0xcf, 0x6f, 0x67, 0x28, 0x58, - 0x12, 0xb6, 0x1b, 0xa9, 0xb6, 0x2e, 0x95, 0x32, 0xe0, 0x3e, 0xac, 0x64, 0xb3, 0xe4, 0xd2, 0x97, - 0x45, 0xdc, 0xe5, 0x54, 0x2a, 0x17, 0xfc, 0x05, 0x98, 0x99, 0x19, 0x65, 0xa4, 0xdb, 0xc5, 0x41, - 0x69, 0x45, 0x18, 0xae, 0xa6, 0xf2, 0x9a, 0x14, 0xf3, 0x9d, 0x19, 0xf7, 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0xf6, 0x54, 0xd6, 0xc2, 0x13, 0xab, 0xb5, 0xc3, 0xae, 0x39, 0x83, 0x16, 0x60, 0xee, 0x8c, 0x24, - 0x3e, 0x36, 0x0d, 0x64, 0xc1, 0x66, 0xb5, 0xf9, 0x8d, 0xd7, 0xc7, 0x03, 0xc3, 0xb3, 0x30, 0x62, - 0x38, 0x31, 0x73, 0x47, 0x7f, 0x5a, 0x86, 0xb9, 0x53, 0x7e, 0xaf, 0xa1, 0x23, 0x98, 0x3d, 0xc7, - 0x0c, 0xad, 0x0f, 0x5d, 0x73, 0xf2, 0x00, 0xb5, 0x36, 0x86, 0x85, 0xea, 0x5e, 0x9e, 0x41, 0xbf, - 0x86, 0x82, 0xfa, 0x21, 0x03, 0x6d, 0x0d, 0x58, 0xf0, 0xd0, 0xcf, 0x24, 0x56, 0x69, 0x5c, 0x91, - 0xcd, 0x3f, 0x07, 0x18, 0xfc, 0x38, 0x81, 0xac, 0x11, 0x22, 0xad, 0x3d, 0x6c, 0xac, 0x87, 0x13, - 0x75, 0xe3, 0x8e, 0x38, 0xf9, 0x1e, 0x73, 0xa4, 0xfd, 0x06, 0x30, 0xe6, 0x48, 0x67, 0xeb, 0xf6, - 0x0c, 0x2a, 0x43, 0x31, 0x25, 0xc6, 0x68, 0x90, 0xf9, 0x08, 0x0d, 0xb7, 0xb6, 0x27, 0x68, 0x52, - 0x17, 0x5f, 0x1a, 0xbc, 0x2c, 0xaa, 0xd4, 0x5a, 0x59, 0x86, 0x19, 0xb2, 0x56, 0x96, 0x51, 0x2e, - 0x39, 0x83, 0x6e, 0x61, 0x75, 0x84, 0x05, 0xa2, 0x47, 0x99, 0xf9, 0x64, 0x9e, 0x69, 0xed, 0x4d, - 0x37, 0xc8, 0xfc, 0xbe, 0x01, 0x73, 0x94, 0x13, 0xa2, 0x3d, 0xad, 0x1e, 0x13, 0xd9, 0xa5, 0xf5, - 0xf8, 0x23, 0x16, 0x99, 0xeb, 0x1a, 0xac, 0x0c, 0xd3, 0x40, 0xb4, 0x3b, 0x95, 0x1f, 0x4a, 0xb7, - 0x8f, 0x3e, 0xc1, 0x1f, 0x65, 0x57, 0x07, 0x9c, 0x4e, 0xeb, 0xea, 0x18, 0x21, 0xd4, 0xba, 0x3a, - 0x4e, 0x02, 0xed, 0x19, 0xd4, 0x86, 0x4d, 0x45, 0x8f, 0x46, 0x48, 0x13, 0x7a, 0x3a, 0x02, 0x87, - 0x29, 0x74, 0xcc, 0x7a, 0xf6, 0x49, 0x3b, 0xbd, 0xca, 0xa3, 0x8c, 0x47, 0xab, 0xf2, 0x14, 0x52, - 0xa6, 0x55, 0x79, 0x2a, 0x5d, 0x9a, 0x41, 0x0d, 0xc1, 0x3b, 0x46, 0xf9, 0x0b, 0x7a, 0x32, 0xbc, - 0x3d, 0x27, 0x12, 0x23, 0xeb, 0xf3, 0x8f, 0x1b, 0x65, 0x31, 0xae, 0x60, 0x49, 0x27, 0x31, 0xe8, - 0x33, 0x7d, 0xde, 0x28, 0xe5, 0xb1, 0x76, 0xa6, 0x68, 0x75, 0x60, 0x0c, 0x33, 0x12, 0x0d, 0x18, - 0x13, 0x39, 0x8c, 0x06, 0x8c, 0xc9, 0x54, 0xc6, 0x9e, 0x41, 0x58, 0x10, 0xad, 0x31, 0x3a, 0x82, - 0x86, 0xd6, 0x38, 0x8d, 0xcc, 0x58, 0xfb, 0x9f, 0xb0, 0xd2, 0x73, 0x1f, 0xa6, 0x24, 0x5a, 0xee, - 0x13, 0x49, 0x8d, 0x96, 0xfb, 0x14, 0x2e, 0x33, 0x83, 0x5c, 0xf1, 0x43, 0xc5, 0x08, 0x81, 0x40, - 0xf6, 0x47, 0xd9, 0x85, 0x74, 0xfe, 0xe4, 0x1e, 0x0c, 0x44, 0x06, 0x18, 0x7f, 0x41, 0x6b, 0x01, - 0xa6, 0x92, 0x09, 0x2d, 0xc0, 0xf4, 0x27, 0xb8, 0x3d, 0x83, 0xde, 0x0a, 0xf6, 0x39, 0xfe, 0xe2, - 0x45, 0xfb, 0xe3, 0x10, 0x9b, 0xf0, 0x1c, 0xb7, 0x9e, 0x7e, 0xca, 0x2c, 0x8d, 0x74, 0xf2, 0xf4, - 0xef, 0x3f, 0x14, 0x8d, 0xbf, 0x7e, 0xd8, 0x35, 0xfe, 0xf6, 0x61, 0xd7, 0xf8, 0xc7, 0x87, 0x5d, - 0xe3, 0x8f, 0xff, 0xdc, 0x9d, 0x01, 0x93, 0x24, 0xad, 0x43, 0x16, 0xb6, 0xfb, 0x87, 0xed, 0xbe, - 0xf8, 0x77, 0x40, 0x63, 0x5e, 0xfc, 0xf9, 0xea, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x32, 0x59, - 0xd2, 0x20, 0x89, 0x18, 0x00, 0x00, + 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 +2620,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. @@ -3036,7 +2881,8 @@ func (c *debugClient) GetRegionReadProgress(ctx context.Context, in *GetRegionRe 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 +2931,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 +3392,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 +3400,37 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3438,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +3465,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3496,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3527,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +3553,50 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +3604,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3645,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +3678,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3710,37 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3748,36 @@ 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 + if m.XXX_unrecognized != nil { + i += 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 } @@ -4083,62 +3785,53 @@ 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 m.Threads != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Threads)) } - 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.BottommostLevelCompaction != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.BottommostLevelCompaction)) } - if m.Db != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.Db)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3839,20 @@ 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) + i += 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 +3860,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3893,20 @@ 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) + i += 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 +3914,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +3941,20 @@ 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) + i += 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 +3962,20 @@ 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) + i += 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 +3983,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4016,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4049,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4080,49 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4130,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4156,20 @@ 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) + i += 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 +4177,37 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4215,20 @@ 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) + i += 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 +4236,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4269,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4295,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4328,20 @@ 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) + i += 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 +4349,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4380,20 @@ 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) + i += 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 +4401,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4427,20 @@ 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) + i += 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 +4448,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 +4464,21 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4486,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4512,20 @@ 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) + i += 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 +4533,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4566,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4599,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4632,62 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4695,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4722,40 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4763,162 @@ 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 + i++ + } + if m.Watermark != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.Watermark)) } if m.ResolverTrackedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolverTrackedIndex)) - i-- dAtA[i] = 0x60 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolverTrackedIndex)) } - if m.ResolvedTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.ResolvedTs)) - i-- - dAtA[i] = 0x58 + if m.ResolverExist { + dAtA[i] = 0x68 + i++ + if m.ResolverExist { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if m.RegionReadProgressExist { - i-- - if m.RegionReadProgressExist { + if m.ResolverStopped { + dAtA[i] = 0x70 + i++ + if m.ResolverStopped { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x50 + i++ + } + 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.NumLocks != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.NumLocks)) + } + if m.NumTransactions != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.NumTransactions)) } - if m.DurationToLastConsumeLeaderMs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastConsumeLeaderMs)) - i-- - dAtA[i] = 0x48 + if m.ReadStateTs != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateTs)) } - if m.DurationToLastUpdateSafeTsMs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.DurationToLastUpdateSafeTsMs)) - i-- - dAtA[i] = 0x40 + if m.ReadStateApplyIndex != 0 { + dAtA[i] = 0x98 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintDebugpb(dAtA, i, uint64(m.ReadStateApplyIndex)) } - if m.RegionReadProgressPaused { - i-- - if m.RegionReadProgressPaused { + if m.Discard { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x1 + i++ + if m.Discard { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x38 - } - if m.PendingBackTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackTs)) - i-- - dAtA[i] = 0x30 - } - if m.PendingBackAppliedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingBackAppliedIndex)) - i-- - dAtA[i] = 0x28 - } - if m.PendingFrontTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontTs)) - i-- - dAtA[i] = 0x20 - } - if m.PendingFrontAppliedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.PendingFrontAppliedIndex)) - i-- - dAtA[i] = 0x18 - } - if m.AppliedIndex != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x10 + i++ } - if m.SafeTs != 0 { - i = encodeVarintDebugpb(dAtA, i, uint64(m.SafeTs)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -5473,9 +4939,6 @@ func (m *GetRequest) Size() (n int) { } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Value) @@ -5489,9 +4952,6 @@ func (m *GetResponse) Size() (n int) { } func (m *RaftLogRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -5507,9 +4967,6 @@ func (m *RaftLogRequest) Size() (n int) { } func (m *RaftLogResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Entry != nil { @@ -5523,9 +4980,6 @@ func (m *RaftLogResponse) Size() (n int) { } func (m *RegionInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -5538,9 +4992,6 @@ func (m *RegionInfoRequest) Size() (n int) { } func (m *RegionInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RaftLocalState != nil { @@ -5562,9 +5013,6 @@ func (m *RegionInfoResponse) Size() (n int) { } func (m *RegionSizeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -5583,9 +5031,6 @@ func (m *RegionSizeRequest) Size() (n int) { } func (m *RegionSizeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -5601,9 +5046,6 @@ func (m *RegionSizeResponse) Size() (n int) { } func (m *RegionSizeResponse_Entry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -5620,9 +5062,6 @@ func (m *RegionSizeResponse_Entry) Size() (n int) { } func (m *ScanMvccRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.FromKey) @@ -5643,9 +5082,6 @@ func (m *ScanMvccRequest) Size() (n int) { } func (m *ScanMvccResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -5663,9 +5099,6 @@ func (m *ScanMvccResponse) Size() (n int) { } func (m *CompactRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Db != 0 { @@ -5696,9 +5129,6 @@ func (m *CompactRequest) Size() (n int) { } func (m *CompactResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5708,9 +5138,6 @@ func (m *CompactResponse) Size() (n int) { } func (m *InjectFailPointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5728,9 +5155,6 @@ func (m *InjectFailPointRequest) Size() (n int) { } func (m *InjectFailPointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5740,9 +5164,6 @@ func (m *InjectFailPointResponse) Size() (n int) { } func (m *RecoverFailPointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5756,9 +5177,6 @@ func (m *RecoverFailPointRequest) Size() (n int) { } func (m *RecoverFailPointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5768,9 +5186,6 @@ func (m *RecoverFailPointResponse) Size() (n int) { } func (m *ListFailPointsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5780,9 +5195,6 @@ func (m *ListFailPointsRequest) Size() (n int) { } func (m *ListFailPointsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Entries) > 0 { @@ -5798,9 +5210,6 @@ func (m *ListFailPointsResponse) Size() (n int) { } func (m *ListFailPointsResponse_Entry) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5818,9 +5227,6 @@ func (m *ListFailPointsResponse_Entry) Size() (n int) { } func (m *GetMetricsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.All { @@ -5833,9 +5239,6 @@ func (m *GetMetricsRequest) Size() (n int) { } func (m *GetMetricsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Prometheus) @@ -5864,9 +5267,6 @@ func (m *GetMetricsResponse) Size() (n int) { } func (m *RegionConsistencyCheckRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -5879,9 +5279,6 @@ func (m *RegionConsistencyCheckRequest) Size() (n int) { } func (m *RegionConsistencyCheckResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5891,9 +5288,6 @@ func (m *RegionConsistencyCheckResponse) Size() (n int) { } func (m *ModifyTikvConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Module != 0 { @@ -5914,9 +5308,6 @@ func (m *ModifyTikvConfigRequest) Size() (n int) { } func (m *ModifyTikvConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5926,9 +5317,6 @@ func (m *ModifyTikvConfigResponse) Size() (n int) { } func (m *Property) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -5946,9 +5334,6 @@ func (m *Property) Size() (n int) { } func (m *GetRegionPropertiesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -5961,9 +5346,6 @@ func (m *GetRegionPropertiesRequest) Size() (n int) { } func (m *GetRegionPropertiesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Props) > 0 { @@ -5979,9 +5361,6 @@ func (m *GetRegionPropertiesResponse) Size() (n int) { } func (m *GetStoreInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5991,9 +5370,6 @@ func (m *GetStoreInfoRequest) Size() (n int) { } func (m *GetStoreInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { @@ -6009,9 +5385,6 @@ func (m *GetStoreInfoResponse) Size() (n int) { } func (m *GetClusterInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -6021,9 +5394,6 @@ func (m *GetClusterInfoRequest) Size() (n int) { } func (m *GetClusterInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -6036,9 +5406,6 @@ func (m *GetClusterInfoResponse) Size() (n int) { } func (m *GetAllRegionsInStoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -6048,9 +5415,6 @@ func (m *GetAllRegionsInStoreRequest) Size() (n int) { } func (m *GetAllRegionsInStoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -6067,9 +5431,6 @@ func (m *GetAllRegionsInStoreResponse) Size() (n int) { } func (m *ResetToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Ts != 0 { @@ -6082,9 +5443,6 @@ func (m *ResetToVersionRequest) Size() (n int) { } func (m *ResetToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -6094,9 +5452,6 @@ func (m *ResetToVersionResponse) Size() (n int) { } func (m *GetRangePropertiesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -6114,9 +5469,6 @@ func (m *GetRangePropertiesRequest) Size() (n int) { } func (m *GetRangePropertiesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Properties) > 0 { @@ -6132,9 +5484,6 @@ func (m *GetRangePropertiesResponse) Size() (n int) { } func (m *GetRangePropertiesResponse_RangeProperty) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -6152,9 +5501,6 @@ func (m *GetRangePropertiesResponse_RangeProperty) Size() (n int) { } func (m *FlashbackToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -6188,9 +5534,6 @@ func (m *FlashbackToVersionRequest) Size() (n int) { } func (m *FlashbackToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) @@ -6204,9 +5547,6 @@ func (m *FlashbackToVersionResponse) Size() (n int) { } func (m *GetRegionReadProgressRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -6225,9 +5565,6 @@ func (m *GetRegionReadProgressRequest) Size() (n int) { } func (m *GetRegionReadProgressResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SafeTs != 0 { @@ -6260,8 +5597,8 @@ func (m *GetRegionReadProgressResponse) Size() (n int) { if m.RegionReadProgressExist { n += 2 } - if m.ResolvedTs != 0 { - n += 1 + sovDebugpb(uint64(m.ResolvedTs)) + if m.Watermark != 0 { + n += 1 + sovDebugpb(uint64(m.Watermark)) } if m.ResolverTrackedIndex != 0 { n += 1 + sovDebugpb(uint64(m.ResolverTrackedIndex)) @@ -6298,7 +5635,14 @@ func (m *GetRegionReadProgressResponse) Size() (n int) { } 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 +5662,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 +5690,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 +5709,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 +5719,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 +5738,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 +5747,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,7 +5761,7 @@ 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 { @@ -6454,7 +5792,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 +5820,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 +5829,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,7 +5843,7 @@ 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 { @@ -6539,7 +5874,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 +5902,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 +5921,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,7 +5932,7 @@ 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 { @@ -6628,7 +5963,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 +5991,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 +6000,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,7 +6016,7 @@ 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 { @@ -6715,7 +6047,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 +6075,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,7 +6086,7 @@ 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 { @@ -6785,7 +6117,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 +6145,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 +6154,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 +6178,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 +6187,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 +6211,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 +6220,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,7 +6236,7 @@ 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 { @@ -6944,7 +6267,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 +6295,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 +6314,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 +6324,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,7 +6335,7 @@ 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 { @@ -7046,7 +6366,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 +6394,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 +6403,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,7 +6417,7 @@ 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 { @@ -7131,7 +6448,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 +6476,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 +6486,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 +6505,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,7 +6516,7 @@ 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 { @@ -7233,7 +6547,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 +6575,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 +6584,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 +6606,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 +6615,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 +6637,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,7 +6648,7 @@ 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 { @@ -7371,7 +6679,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 +6707,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 +6716,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 +6738,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 +6747,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,7 +6763,7 @@ 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 { @@ -7492,7 +6794,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 +6822,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 +6841,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 +6851,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 +6870,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 +6879,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 +6901,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 +6910,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 +6932,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 +6951,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,7 +6962,7 @@ 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 { @@ -7700,7 +6993,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,7 +7013,7 @@ 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 { @@ -7751,7 +7044,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 +7072,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 +7082,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 +7101,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 +7111,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,7 +7122,7 @@ 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 { @@ -7866,7 +7153,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,7 +7173,7 @@ 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 { @@ -7917,7 +7204,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 +7232,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 +7242,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,7 +7253,7 @@ 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 { @@ -8000,7 +7284,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,7 +7304,7 @@ 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 { @@ -8051,7 +7335,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,7 +7355,7 @@ 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 { @@ -8102,7 +7386,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 +7414,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 +7423,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,7 +7437,7 @@ 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 { @@ -8187,7 +7468,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 +7496,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 +7506,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 +7525,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 +7535,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,7 +7546,7 @@ 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 { @@ -8302,7 +7577,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 +7605,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,7 +7617,7 @@ 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 { @@ -8373,7 +7648,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 +7676,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 +7686,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 +7705,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 +7715,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 +7734,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 +7744,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 +7763,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 +7773,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 +7792,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,7 +7803,7 @@ 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 { @@ -8571,7 +7834,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 +7862,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,7 +7873,7 @@ 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 { @@ -8641,7 +7904,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,7 +7924,7 @@ 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 { @@ -8692,7 +7955,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 +7983,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 +8002,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 +8012,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 +8031,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 +8041,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,7 +8052,7 @@ 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 { @@ -8826,7 +8083,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,7 +8103,7 @@ 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 { @@ -8877,7 +8134,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 +8162,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 +8172,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 +8191,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 +8201,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,7 +8212,7 @@ 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 { @@ -8992,7 +8243,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 +8271,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,7 +8282,7 @@ 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 { @@ -9062,7 +8313,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 +8341,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 +8350,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,7 +8364,7 @@ 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 { @@ -9147,7 +8395,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,7 +8415,7 @@ 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 { @@ -9198,7 +8446,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 +8474,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 +8493,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,7 +8504,7 @@ 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 { @@ -9287,7 +8535,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,7 +8555,7 @@ 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 { @@ -9338,7 +8586,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 +8614,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,7 +8625,7 @@ 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 { @@ -9408,7 +8656,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,7 +8676,7 @@ 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 { @@ -9459,7 +8707,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 +8733,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 +8750,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 +8759,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 +8773,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,7 +8789,7 @@ 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 { @@ -9586,7 +8820,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 +8848,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,7 +8859,7 @@ 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 { @@ -9656,7 +8890,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,7 +8910,7 @@ 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 { @@ -9707,7 +8941,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 +8969,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 +8978,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 +9000,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 +9009,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,7 +9023,7 @@ 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 { @@ -9826,7 +9054,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 +9082,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 +9091,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,7 +9105,7 @@ 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 { @@ -9911,7 +9136,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 +9164,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 +9174,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 +9193,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 +9203,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,7 +9214,7 @@ 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 { @@ -10026,7 +9245,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 +9273,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 +9282,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 +9306,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 +9325,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 +9344,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 +9353,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 +9375,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 +9384,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 +9406,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 +9425,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,7 +9436,7 @@ 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 { @@ -10257,7 +9467,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 +9495,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 +9505,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,7 +9516,7 @@ 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 { @@ -10340,7 +9547,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 +9575,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 +9594,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 +9614,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,7 +9625,7 @@ 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 { @@ -10449,7 +9656,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 +9684,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 +9703,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 +9722,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 +9741,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 +9760,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 +9779,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 +9798,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 +9818,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 +9837,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 +9856,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 } @@ -10657,9 +9864,9 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { m.RegionReadProgressExist = bool(v != 0) case 11: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Watermark", wireType) } - m.ResolvedTs = 0 + m.Watermark = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDebugpb @@ -10669,7 +9876,7 @@ func (m *GetRegionReadProgressResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.Watermark |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -10688,7 +9895,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 +9914,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 +9934,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 +9954,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 +9964,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 +9983,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 +10002,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 +10021,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 +10040,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 +10059,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,7 +10071,7 @@ 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 { @@ -10886,7 +10090,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 +10121,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 +10141,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", fileDescriptor_debugpb_8003e0b7ce4390c5) } + +var fileDescriptor_debugpb_8003e0b7ce4390c5 = []byte{ + // 2297 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x59, 0xcd, 0x53, 0x1b, 0xc9, + 0x15, 0x67, 0x84, 0x40, 0xd2, 0x03, 0x49, 0x43, 0x83, 0x41, 0x8c, 0x0d, 0xc6, 0xe3, 0xc5, 0x66, + 0x9d, 0x0a, 0xd9, 0xb0, 0x9b, 0xda, 0xa4, 0x36, 0x1f, 0x05, 0x42, 0xb0, 0x0a, 0x60, 0xd8, 0x91, + 0x4c, 0x95, 0x4f, 0x53, 0xa3, 0x99, 0x96, 0x3c, 0xab, 0xd1, 0xb4, 0x32, 0xdd, 0x52, 0x8c, 0x0f, + 0x39, 0xe6, 0xbc, 0x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7b, 0x4e, + 0x10, 0x10, 0x57, 0xf4, 0x68, 0xc1, 0x4a, 0xc6, 0xbc, 0xb1, 0x29, 0x23, 0x11, 0xe6, 0xc7, 0xcd, + 0x92, 0xd8, 0x7e, 0x39, 0x31, 0xae, 0x7b, 0xe6, 0x2f, 0x61, 0x47, 0x9e, 0x16, 0x55, 0x12, 0x52, + 0x9f, 0x32, 0x1c, 0xba, 0x77, 0xd5, 0x37, 0xd8, 0xed, 0xde, 0xeb, 0x54, 0xdf, 0x83, 0xdd, 0x79, + 0xb3, 0x55, 0x89, 0xff, 0xa8, 0xc1, 0xd6, 0x15, 0xf1, 0xfc, 0xf6, 0x5d, 0xd3, 0xef, 0x0e, 0xab, + 0x24, 0x6c, 0xfb, 0xc9, 0xc5, 0xf5, 0x1c, 0x96, 0x7b, 0xc4, 0x1b, 0x04, 0x58, 0x6d, 0xd0, 0x72, + 0x52, 0xc9, 0xab, 0xeb, 0xd3, 0x57, 0x97, 0x35, 0x4b, 0xa9, 0xd1, 0x63, 0x58, 0x71, 0xc5, 0x4c, + 0x5b, 0x14, 0x4c, 0xc2, 0x03, 0x52, 0xf4, 0x92, 0x97, 0xed, 0x09, 0xac, 0x2a, 0x03, 0x79, 0x63, + 0x2a, 0x7c, 0xa4, 0xec, 0x56, 0xdc, 0x9b, 0x06, 0x54, 0xa6, 0xf3, 0x50, 0x49, 0x7e, 0x01, 0xf9, + 0x9b, 0x88, 0xf4, 0x71, 0xc4, 0x66, 0x77, 0x45, 0x72, 0x13, 0xcb, 0xc8, 0xea, 0x26, 0xfe, 0x05, + 0x18, 0xe2, 0xba, 0xe6, 0xeb, 0x57, 0xd3, 0x7d, 0x4c, 0xef, 0x85, 0xdb, 0x19, 0x3c, 0x9c, 0x39, + 0x55, 0x75, 0xcb, 0x73, 0x58, 0xea, 0x47, 0xa4, 0x1f, 0x77, 0xf8, 0x5a, 0x82, 0x4b, 0x9c, 0xa5, + 0x25, 0xf5, 0xe6, 0x03, 0x58, 0x3f, 0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xaa, 0x34, 0xbb, 0x14, 0x56, 0x57, 0x02, + 0xb8, 0x99, 0x6b, 0xc2, 0x6f, 0x7d, 0xca, 0x2a, 0x20, 0x96, 0xb4, 0x35, 0xbd, 0xa4, 0x1a, 0x57, + 0xa3, 0x47, 0x50, 0xf8, 0xbd, 0xc3, 0x70, 0xd4, 0x73, 0xa2, 0x6e, 0x65, 0x45, 0x9e, 0xca, 0x89, + 0x00, 0x7d, 0x01, 0x9b, 0x11, 0xa6, 0x24, 0x18, 0xe2, 0xc8, 0x66, 0x91, 0xe3, 0x76, 0x93, 0x7a, + 0xac, 0x0a, 0xd3, 0x8d, 0x58, 0xdb, 0x94, 0x4a, 0x59, 0x8c, 0x7d, 0x28, 0x25, 0xb3, 0x64, 0x12, + 0x45, 0x91, 0x44, 0x31, 0x96, 0xca, 0xd0, 0x9f, 0x82, 0x9e, 0x98, 0x51, 0x46, 0xfa, 0x7d, 0xec, + 0x55, 0x4a, 0xc2, 0xb0, 0x1c, 0xcb, 0x1b, 0x52, 0x3c, 0xda, 0x76, 0xe5, 0xd4, 0xb6, 0xe3, 0x3b, + 0x27, 0x1c, 0xf4, 0xd4, 0xce, 0xd1, 0xe5, 0xb6, 0x0a, 0x07, 0x3d, 0xb9, 0x73, 0x3e, 0x05, 0x9d, + 0x2b, 0x59, 0xe4, 0x84, 0x34, 0x7e, 0xda, 0xad, 0x09, 0x9b, 0x72, 0x38, 0xe8, 0x35, 0x53, 0x62, + 0x64, 0x42, 0x51, 0x20, 0x27, 0x28, 0x1f, 0x6f, 0x1d, 0x24, 0xec, 0x56, 0xb8, 0x50, 0xb0, 0xb9, + 0x26, 0x45, 0x9f, 0x73, 0x24, 0x12, 0x1b, 0xc9, 0x36, 0x25, 0x12, 0xeb, 0xc2, 0x78, 0x3d, 0x31, + 0x16, 0x9c, 0x52, 0x02, 0x51, 0x81, 0x9c, 0xe7, 0x53, 0xd7, 0x89, 0xbc, 0xca, 0x86, 0x58, 0x58, + 0x3c, 0x7c, 0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xae, 0xf6, 0xa7, 0x7f, 0xed, 0x2e, 0x80, 0x4e, 0xa2, 0xce, 0x21, 0xf3, 0xbb, 0xc3, + 0xc3, 0xee, 0x50, 0xfc, 0x2f, 0xa0, 0xb5, 0x2c, 0xfe, 0x7c, 0xfe, 0xbf, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x30, 0x2e, 0xfc, 0xa3, 0x86, 0x18, 0x00, 0x00, +} diff --git a/pkg/diagnosticspb/diagnosticspb.pb.go b/pkg/diagnosticspb/diagnosticspb.pb.go index 7154e397df..baf03c7d1d 100644 --- a/pkg/diagnosticspb/diagnosticspb.pb.go +++ b/pkg/diagnosticspb/diagnosticspb.pb.go @@ -4,17 +4,16 @@ 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 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type LogLevel int32 @@ -49,7 +48,6 @@ var LogLevel_name = map[int32]string{ 5: "Critical", 6: "Error", } - var LogLevel_value = map[string]int32{ "UNKNOWN": 0, "Debug": 1, @@ -63,9 +61,8 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{0} } type ServerInfoType int32 @@ -83,7 +80,6 @@ var ServerInfoType_name = map[int32]string{ 2: "SystemInfo", 3: "LoadInfo", } - var ServerInfoType_value = map[string]int32{ "All": 0, "HardwareInfo": 1, @@ -94,9 +90,8 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{1} } type SearchLogRequest_Target int32 @@ -110,7 +105,6 @@ var SearchLogRequest_Target_name = map[int32]string{ 0: "Normal", 1: "Slow", } - var SearchLogRequest_Target_value = map[string]int32{ "Normal": 0, "Slow": 1, @@ -119,19 +113,18 @@ 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 fileDescriptor_diagnosticspb_38cac8120806ca82, []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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -142,7 +135,7 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{0} } func (m *SearchLogRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,15 +145,15 @@ func (m *SearchLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_SearchLogRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SearchLogRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchLogRequest.Merge(dst, src) } func (m *SearchLogRequest) XXX_Size() int { return m.Size() @@ -207,7 +200,7 @@ func (m *SearchLogRequest) GetTarget() SearchLogRequest_Target { } type SearchLogResponse struct { - Messages []*LogMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` + Messages []*LogMessage `protobuf:"bytes,1,rep,name=messages" json:"messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -217,7 +210,7 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{1} } func (m *SearchLogResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -227,15 +220,15 @@ func (m *SearchLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_SearchLogResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SearchLogResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchLogResponse.Merge(dst, src) } func (m *SearchLogResponse) XXX_Size() int { return m.Size() @@ -266,7 +259,7 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{2} } func (m *LogMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -276,15 +269,15 @@ func (m *LogMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LogMessage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LogMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_LogMessage.Merge(dst, src) } func (m *LogMessage) XXX_Size() int { return m.Size() @@ -327,7 +320,7 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{3} } func (m *ServerInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -337,15 +330,15 @@ func (m *ServerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ServerInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ServerInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoRequest.Merge(dst, src) } func (m *ServerInfoRequest) XXX_Size() int { return m.Size() @@ -375,7 +368,7 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{4} } func (m *ServerInfoPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -385,15 +378,15 @@ func (m *ServerInfoPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ServerInfoPair.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ServerInfoPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoPair.Merge(dst, src) } func (m *ServerInfoPair) XXX_Size() int { return m.Size() @@ -432,7 +425,7 @@ type ServerInfoItem struct { // ServerInfoPair { key = "writebytes", value = "1k"}, // ] // } - Pairs []*ServerInfoPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` + Pairs []*ServerInfoPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -442,7 +435,7 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{5} } func (m *ServerInfoItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -452,15 +445,15 @@ func (m *ServerInfoItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ServerInfoItem.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ServerInfoItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoItem.Merge(dst, src) } func (m *ServerInfoItem) XXX_Size() int { return m.Size() @@ -493,7 +486,7 @@ func (m *ServerInfoItem) GetPairs() []*ServerInfoPair { } type ServerInfoResponse struct { - Items []*ServerInfoItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + Items []*ServerInfoItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -503,7 +496,7 @@ 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} + return fileDescriptor_diagnosticspb_38cac8120806ca82, []int{6} } func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -513,15 +506,15 @@ func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ServerInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ServerInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerInfoResponse.Merge(dst, src) } func (m *ServerInfoResponse) XXX_Size() int { return m.Size() @@ -540,9 +533,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 +540,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, 0x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08, 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 +553,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) @@ -665,7 +611,8 @@ func (c *diagnosticsClient) ServerInfo(ctx context.Context, in *ServerInfoReques 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 +620,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 +685,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 +693,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 +719,41 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +761,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +794,36 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +831,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +857,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +890,44 @@ 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.Tp) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Tp))) + i += copy(dAtA[i:], m.Tp) + } + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } if 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-- + 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 } } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Tp) > 0 { - i -= len(m.Tp) - copy(dAtA[i:], m.Tp) - i = encodeVarintDiagnosticspb(dAtA, i, uint64(len(m.Tp))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +935,38 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -1115,9 +998,6 @@ func (m *SearchLogRequest) Size() (n int) { } func (m *SearchLogResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Messages) > 0 { @@ -1133,9 +1013,6 @@ func (m *SearchLogResponse) Size() (n int) { } func (m *LogMessage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Time != 0 { @@ -1155,9 +1032,6 @@ func (m *LogMessage) Size() (n int) { } func (m *ServerInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Tp != 0 { @@ -1170,9 +1044,6 @@ func (m *ServerInfoRequest) Size() (n int) { } func (m *ServerInfoPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1190,9 +1061,6 @@ func (m *ServerInfoPair) Size() (n int) { } func (m *ServerInfoItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Tp) @@ -1216,9 +1084,6 @@ func (m *ServerInfoItem) Size() (n int) { } func (m *ServerInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Items) > 0 { @@ -1234,7 +1099,14 @@ func (m *ServerInfoResponse) Size() (n int) { } 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 +1126,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 +1154,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 +1173,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 +1190,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 +1207,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 +1216,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 +1230,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 +1254,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 +1264,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 +1283,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,7 +1294,7 @@ 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 { @@ -1463,7 +1325,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 +1353,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 +1362,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,7 +1376,7 @@ 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 { @@ -1548,7 +1407,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 +1435,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 +1454,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 +1473,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 +1483,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,7 +1494,7 @@ 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 { @@ -1669,7 +1525,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 +1553,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,7 +1564,7 @@ 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 { @@ -1739,7 +1595,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 +1623,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 +1633,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 +1652,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 +1662,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,7 +1673,7 @@ 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 { @@ -1854,7 +1704,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 +1732,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 +1742,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 +1761,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 +1771,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 +1790,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 +1799,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,7 +1813,7 @@ 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 { @@ -2003,7 +1844,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 +1872,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 +1881,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,7 +1895,7 @@ 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 { @@ -2076,7 +1914,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 +1945,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 +1965,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", fileDescriptor_diagnosticspb_38cac8120806ca82) } + +var fileDescriptor_diagnosticspb_38cac8120806ca82 = []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, 0x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9d, 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 17022f3e54..89f403e13d 100644 --- a/pkg/disaggregated/disaggregated.pb.go +++ b/pkg/disaggregated/disaggregated.pb.go @@ -7,10 +7,10 @@ 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,7 +23,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.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: @@ -40,7 +40,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{0} } func (m *S3LockResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -50,15 +50,15 @@ func (m *S3LockResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_S3LockResult.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *S3LockResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_S3LockResult.Merge(dst, src) } func (m *S3LockResult) XXX_Size() int { return m.Size() @@ -76,13 +76,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,15 +117,99 @@ 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), } } +func _S3LockResult_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*S3LockResult) + // error + switch x := m.Error.(type) { + case *S3LockResult_Success: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Success); err != nil { + return err + } + case *S3LockResult_NotOwner: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NotOwner); err != nil { + return err + } + case *S3LockResult_Conflict: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Conflict); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("S3LockResult.Error has unexpected type %T", x) + } + return nil +} + +func _S3LockResult_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*S3LockResult) + switch tag { + case 1: // error.success + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Success) + err := b.DecodeMessage(msg) + m.Error = &S3LockResult_Success{msg} + return true, err + case 2: // error.not_owner + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(NotOwner) + err := b.DecodeMessage(msg) + m.Error = &S3LockResult_NotOwner{msg} + return true, err + case 3: // error.conflict + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Conflict) + err := b.DecodeMessage(msg) + m.Error = &S3LockResult_Conflict{msg} + return true, err + default: + return false, nil + } +} + +func _S3LockResult_OneofSizer(msg proto.Message) (n int) { + m := msg.(*S3LockResult) + // error + switch x := m.Error.(type) { + case *S3LockResult_Success: + s := proto.Size(x.Success) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *S3LockResult_NotOwner: + s := proto.Size(x.NotOwner) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *S3LockResult_Conflict: + s := proto.Size(x.Conflict) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type Success struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -136,7 +220,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{1} } func (m *Success) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,15 +230,15 @@ func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Success.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *Success) XXX_Merge(src proto.Message) { - xxx_messageInfo_Success.Merge(m, src) +func (dst *Success) XXX_Merge(src proto.Message) { + xxx_messageInfo_Success.Merge(dst, src) } func (m *Success) XXX_Size() int { return m.Size() @@ -177,7 +261,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{2} } func (m *NotOwner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -187,15 +271,15 @@ func (m *NotOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NotOwner.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *NotOwner) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotOwner.Merge(dst, src) } func (m *NotOwner) XXX_Size() int { return m.Size() @@ -219,7 +303,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{3} } func (m *Conflict) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -229,15 +313,15 @@ func (m *Conflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Conflict.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Conflict) XXX_Merge(src proto.Message) { + xxx_messageInfo_Conflict.Merge(dst, src) } func (m *Conflict) XXX_Size() int { return m.Size() @@ -271,7 +355,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{4} } func (m *TryAddLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -281,15 +365,15 @@ func (m *TryAddLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_TryAddLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TryAddLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryAddLockRequest.Merge(dst, src) } func (m *TryAddLockRequest) XXX_Size() int { return m.Size() @@ -322,7 +406,7 @@ func (m *TryAddLockRequest) GetLockSeq() uint64 { } type TryAddLockResponse struct { - Result *S3LockResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + Result *S3LockResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -332,7 +416,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{5} } func (m *TryAddLockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -342,15 +426,15 @@ func (m *TryAddLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TryAddLockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TryAddLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryAddLockResponse.Merge(dst, src) } func (m *TryAddLockResponse) XXX_Size() int { return m.Size() @@ -380,7 +464,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{6} } func (m *TryMarkDeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -390,15 +474,15 @@ func (m *TryMarkDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_TryMarkDeleteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *TryMarkDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TryMarkDeleteRequest.Merge(m, src) +func (dst *TryMarkDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryMarkDeleteRequest.Merge(dst, src) } func (m *TryMarkDeleteRequest) XXX_Size() int { return m.Size() @@ -417,7 +501,7 @@ func (m *TryMarkDeleteRequest) GetDataFileKey() []byte { } type TryMarkDeleteResponse struct { - Result *S3LockResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + Result *S3LockResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -427,7 +511,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{7} } func (m *TryMarkDeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -437,15 +521,15 @@ func (m *TryMarkDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_TryMarkDeleteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TryMarkDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TryMarkDeleteResponse.Merge(dst, src) } func (m *TryMarkDeleteResponse) XXX_Size() int { return m.Size() @@ -473,7 +557,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{8} } func (m *GetDisaggConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -483,15 +567,15 @@ func (m *GetDisaggConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_GetDisaggConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetDisaggConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDisaggConfigRequest.Merge(dst, src) } func (m *GetDisaggConfigRequest) XXX_Size() int { return m.Size() @@ -515,7 +599,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{9} } func (m *DisaggS3Config) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -525,15 +609,15 @@ func (m *DisaggS3Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_DisaggS3Config.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DisaggS3Config) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisaggS3Config.Merge(dst, src) } func (m *DisaggS3Config) XXX_Size() int { return m.Size() @@ -566,7 +650,7 @@ func (m *DisaggS3Config) GetEndpoint() string { } type GetDisaggConfigResponse struct { - S3Config *DisaggS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"` + S3Config *DisaggS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config" json:"s3_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -576,7 +660,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{10} } func (m *GetDisaggConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -586,15 +670,15 @@ func (m *GetDisaggConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_GetDisaggConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetDisaggConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDisaggConfigResponse.Merge(dst, src) } func (m *GetDisaggConfigResponse) XXX_Size() int { return m.Size() @@ -634,7 +718,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{11} } func (m *DisaggTaskMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -644,15 +728,15 @@ func (m *DisaggTaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_DisaggTaskMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DisaggTaskMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisaggTaskMeta.Merge(dst, src) } func (m *DisaggTaskMeta) XXX_Size() int { return m.Size() @@ -752,7 +836,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{12} } func (m *DisaggReadError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -762,15 +846,15 @@ func (m *DisaggReadError) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_DisaggReadError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DisaggReadError) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisaggReadError.Merge(dst, src) } func (m *DisaggReadError) XXX_Size() int { return m.Size() @@ -810,7 +894,7 @@ func (m *EstablishDisaggTaskError) Reset() { *m = EstablishDisaggTaskErr func (m *EstablishDisaggTaskError) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskError) ProtoMessage() {} func (*EstablishDisaggTaskError) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{13} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{13} } func (m *EstablishDisaggTaskError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -820,15 +904,15 @@ func (m *EstablishDisaggTaskError) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_EstablishDisaggTaskError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *EstablishDisaggTaskError) XXX_Merge(src proto.Message) { - xxx_messageInfo_EstablishDisaggTaskError.Merge(m, src) +func (dst *EstablishDisaggTaskError) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishDisaggTaskError.Merge(dst, src) } func (m *EstablishDisaggTaskError) XXX_Size() int { return m.Size() @@ -846,13 +930,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,19 +971,103 @@ 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), } } +func _EstablishDisaggTaskError_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*EstablishDisaggTaskError) + // errors + switch x := m.Errors.(type) { + case *EstablishDisaggTaskError_ErrorRegion: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrorRegion); err != nil { + return err + } + case *EstablishDisaggTaskError_ErrorLocked: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrorLocked); err != nil { + return err + } + case *EstablishDisaggTaskError_ErrorOther: + _ = b.EncodeVarint(99<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ErrorOther); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("EstablishDisaggTaskError.Errors has unexpected type %T", x) + } + return nil +} + +func _EstablishDisaggTaskError_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*EstablishDisaggTaskError) + switch tag { + case 1: // errors.error_region + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ErrorRegion) + err := b.DecodeMessage(msg) + m.Errors = &EstablishDisaggTaskError_ErrorRegion{msg} + return true, err + case 2: // errors.error_locked + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ErrorLocked) + err := b.DecodeMessage(msg) + m.Errors = &EstablishDisaggTaskError_ErrorLocked{msg} + return true, err + case 99: // errors.error_other + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ErrorOther) + err := b.DecodeMessage(msg) + m.Errors = &EstablishDisaggTaskError_ErrorOther{msg} + return true, err + default: + return false, nil + } +} + +func _EstablishDisaggTaskError_OneofSizer(msg proto.Message) (n int) { + m := msg.(*EstablishDisaggTaskError) + // errors + switch x := m.Errors.(type) { + case *EstablishDisaggTaskError_ErrorRegion: + s := proto.Size(x.ErrorRegion) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *EstablishDisaggTaskError_ErrorLocked: + s := proto.Size(x.ErrorLocked) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *EstablishDisaggTaskError_ErrorOther: + s := proto.Size(x.ErrorOther) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + 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"` + RegionIds []uint64 `protobuf:"varint,2,rep,packed,name=region_ids,json=regionIds" json:"region_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -909,7 +1077,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{14} } func (m *ErrorRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -919,15 +1087,15 @@ func (m *ErrorRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ErrorRegion.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *ErrorRegion) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorRegion.Merge(m, src) +func (dst *ErrorRegion) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorRegion.Merge(dst, src) } func (m *ErrorRegion) XXX_Size() int { return m.Size() @@ -955,7 +1123,7 @@ 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"` + Locked []*kvrpcpb.LockInfo `protobuf:"bytes,2,rep,name=locked" json:"locked,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -965,7 +1133,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{15} } func (m *ErrorLocked) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -975,15 +1143,15 @@ func (m *ErrorLocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ErrorLocked.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ErrorLocked) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorLocked.Merge(dst, src) } func (m *ErrorLocked) XXX_Size() int { return m.Size() @@ -1020,7 +1188,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{16} } func (m *ErrorOther) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1030,15 +1198,15 @@ func (m *ErrorOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ErrorOther.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ErrorOther) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorOther.Merge(dst, src) } func (m *ErrorOther) XXX_Size() int { return m.Size() @@ -1064,17 +1232,17 @@ 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:"-"` @@ -1086,7 +1254,7 @@ func (m *EstablishDisaggTaskRequest) Reset() { *m = EstablishDisaggTaskR func (m *EstablishDisaggTaskRequest) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskRequest) ProtoMessage() {} func (*EstablishDisaggTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{17} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{17} } func (m *EstablishDisaggTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1096,15 +1264,15 @@ func (m *EstablishDisaggTaskRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_EstablishDisaggTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *EstablishDisaggTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishDisaggTaskRequest.Merge(dst, src) } func (m *EstablishDisaggTaskRequest) XXX_Size() int { return m.Size() @@ -1165,15 +1333,15 @@ 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"` + Tables [][]byte `protobuf:"bytes,5,rep,name=tables" json:"tables,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1183,7 +1351,7 @@ func (m *EstablishDisaggTaskResponse) Reset() { *m = EstablishDisaggTask func (m *EstablishDisaggTaskResponse) String() string { return proto.CompactTextString(m) } func (*EstablishDisaggTaskResponse) ProtoMessage() {} func (*EstablishDisaggTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{18} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{18} } func (m *EstablishDisaggTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1193,15 +1361,15 @@ func (m *EstablishDisaggTaskResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_EstablishDisaggTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *EstablishDisaggTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishDisaggTaskResponse.Merge(dst, src) } func (m *EstablishDisaggTaskResponse) XXX_Size() int { return m.Size() @@ -1241,7 +1409,7 @@ func (m *EstablishDisaggTaskResponse) GetTables() [][]byte { } type CancelDisaggTaskRequest struct { - Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Meta *DisaggTaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1251,7 +1419,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{19} } func (m *CancelDisaggTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1261,15 +1429,15 @@ func (m *CancelDisaggTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_CancelDisaggTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CancelDisaggTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelDisaggTaskRequest.Merge(dst, src) } func (m *CancelDisaggTaskRequest) XXX_Size() int { return m.Size() @@ -1297,7 +1465,7 @@ func (m *CancelDisaggTaskResponse) Reset() { *m = CancelDisaggTaskRespon func (m *CancelDisaggTaskResponse) String() string { return proto.CompactTextString(m) } func (*CancelDisaggTaskResponse) ProtoMessage() {} func (*CancelDisaggTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1026192e39a9f8dc, []int{20} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{20} } func (m *CancelDisaggTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1307,15 +1475,15 @@ func (m *CancelDisaggTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_CancelDisaggTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CancelDisaggTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelDisaggTaskResponse.Merge(dst, src) } func (m *CancelDisaggTaskResponse) XXX_Size() int { return m.Size() @@ -1328,12 +1496,12 @@ 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"` + PageIds []uint64 `protobuf:"varint,4,rep,packed,name=page_ids,json=pageIds" json:"page_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1343,7 +1511,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{21} } func (m *FetchDisaggPagesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1353,15 +1521,15 @@ func (m *FetchDisaggPagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_FetchDisaggPagesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *FetchDisaggPagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FetchDisaggPagesRequest.Merge(m, src) +func (dst *FetchDisaggPagesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FetchDisaggPagesRequest.Merge(dst, src) } func (m *FetchDisaggPagesRequest) XXX_Size() int { return m.Size() @@ -1401,15 +1569,15 @@ 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"` + Summaries [][]byte `protobuf:"bytes,4,rep,name=summaries" json:"summaries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1419,7 +1587,7 @@ 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} + return fileDescriptor_disaggregated_010d6d8c16ea6d2e, []int{22} } func (m *PagesPacket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1429,15 +1597,15 @@ func (m *PagesPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_PagesPacket.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PagesPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_PagesPacket.Merge(dst, src) } func (m *PagesPacket) XXX_Size() int { return m.Size() @@ -1501,92 +1669,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,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81, - 0x9c, 0x42, 0x81, 0x27, 0xaa, 0x66, 0x99, 0xed, 0xdf, 0xee, 0x7a, 0x30, 0x58, 0xa2, 0xd0, 0x40, - 0x43, 0x4e, 0xee, 0x40, 0xc4, 0xea, 0x3c, 0x3d, 0x46, 0xa9, 0x72, 0x51, 0xc5, 0xe1, 0x7a, 0x30, - 0xb8, 0xb8, 0x79, 0x75, 0xa3, 0x59, 0x1c, 0xf7, 0x77, 0x87, 0xcf, 0xdd, 0x11, 0x05, 0x56, 0xe7, - 0xfe, 0x9b, 0xbc, 0x05, 0x4b, 0x99, 0xa8, 0x2a, 0xcc, 0x74, 0x2e, 0x2a, 0x63, 0x18, 0x9c, 0xd7, - 0x33, 0x70, 0xc8, 0xc9, 0x2d, 0xb8, 0x7c, 0x4a, 0x89, 0x95, 0x39, 0x53, 0x71, 0x64, 0x3d, 0xbc, - 0x34, 0xc3, 0xef, 0x1b, 0x38, 0x79, 0x1f, 0x2e, 0xb9, 0x42, 0x50, 0x64, 0xfc, 0xb1, 0x99, 0x77, - 0xd3, 0x23, 0x99, 0xe0, 0x68, 0xab, 0xb0, 0x48, 0xed, 0x37, 0xb9, 0x0c, 0xad, 0xb1, 0x1a, 0xf9, - 0xb6, 0x31, 0x9f, 0xc9, 0xef, 0x01, 0xc4, 0x8f, 0x95, 0x66, 0x07, 0x65, 0xae, 0x0e, 0x67, 0xb5, - 0x74, 0x26, 0x3e, 0x82, 0xbe, 0xdd, 0x1d, 0xa9, 0xc4, 0x51, 0xee, 0xb7, 0x42, 0xb4, 0xb9, 0x3a, - 0xd7, 0x1e, 0x56, 0x97, 0x5a, 0x8d, 0xed, 0x05, 0x1a, 0xe1, 0x4c, 0x9c, 0x19, 0x30, 0x13, 0x8d, - 0xdc, 0xaf, 0xbb, 0x73, 0x0d, 0xec, 0x58, 0x8d, 0xa9, 0x01, 0x27, 0x92, 0x0f, 0xc0, 0x89, 0xa9, - 0x30, 0x7d, 0x12, 0x67, 0x96, 0xbf, 0x72, 0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0xd1, 0x18, 0x74, 0xab, 0xa0, 0x4f, 0x9d, 0x60, 0xca, 0x91, 0x1d, 0x4e, 0xaa, 0xc2, 0xcc, - 0x85, 0x2d, 0x87, 0x93, 0xc8, 0xff, 0xa1, 0xa7, 0x26, 0xe3, 0x31, 0x93, 0x39, 0x3a, 0x7f, 0xfa, - 0x74, 0x06, 0x3c, 0x48, 0x7e, 0x7a, 0xb9, 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 +1680,69 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1750,20 @@ 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) + i += 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 +1771,20 @@ 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) + i += 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 +1792,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1819,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1856,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1887,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1914,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1945,20 @@ 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) + i += 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 +1966,38 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2005,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2036,77 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2114,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2146,71 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2218,43 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2262,38 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2301,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2333,76 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2410,53 @@ 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.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 += n16 } - 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.Tables) > 0 { + for _, b := range m.Tables { + dAtA[i] = 0x2a + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2464,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2495,20 @@ 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) + i += 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 +2516,57 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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,76 +2574,60 @@ 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 len(m.Summaries) > 0 { + for _, b := range m.Summaries { + dAtA[i] = 0x22 + i++ + i = encodeVarintDisaggregated(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDisaggregated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -2787,9 +2640,6 @@ func (m *S3LockResult) Size() (n int) { } func (m *S3LockResult_Success) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Success != nil { @@ -2799,9 +2649,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 +2658,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,9 +2667,6 @@ 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 { @@ -2835,9 +2676,6 @@ func (m *Success) Size() (n int) { } func (m *NotOwner) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -2847,9 +2685,6 @@ func (m *NotOwner) Size() (n int) { } func (m *Conflict) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Reason) @@ -2863,9 +2698,6 @@ func (m *Conflict) Size() (n int) { } func (m *TryAddLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.DataFileKey) @@ -2885,9 +2717,6 @@ func (m *TryAddLockRequest) Size() (n int) { } func (m *TryAddLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Result != nil { @@ -2901,9 +2730,6 @@ func (m *TryAddLockResponse) Size() (n int) { } func (m *TryMarkDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.DataFileKey) @@ -2917,9 +2743,6 @@ func (m *TryMarkDeleteRequest) Size() (n int) { } func (m *TryMarkDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Result != nil { @@ -2933,9 +2756,6 @@ func (m *TryMarkDeleteResponse) Size() (n int) { } func (m *GetDisaggConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -2945,9 +2765,6 @@ func (m *GetDisaggConfigRequest) Size() (n int) { } func (m *DisaggS3Config) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Bucket) @@ -2969,9 +2786,6 @@ func (m *DisaggS3Config) Size() (n int) { } func (m *GetDisaggConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.S3Config != nil { @@ -2985,9 +2799,6 @@ func (m *GetDisaggConfigResponse) Size() (n int) { } func (m *DisaggTaskMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -3032,9 +2843,6 @@ func (m *DisaggTaskMeta) Size() (n int) { } func (m *DisaggReadError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -3051,9 +2859,6 @@ func (m *DisaggReadError) Size() (n int) { } func (m *EstablishDisaggTaskError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Errors != nil { @@ -3066,9 +2871,6 @@ func (m *EstablishDisaggTaskError) Size() (n int) { } func (m *EstablishDisaggTaskError_ErrorRegion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrorRegion != nil { @@ -3078,9 +2880,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 +2889,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 +2898,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) @@ -3125,9 +2918,6 @@ func (m *ErrorRegion) Size() (n int) { } func (m *ErrorLocked) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Msg) @@ -3147,9 +2937,6 @@ func (m *ErrorLocked) Size() (n int) { } func (m *ErrorOther) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -3166,9 +2953,6 @@ func (m *ErrorOther) Size() (n int) { } func (m *EstablishDisaggTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -3208,9 +2992,6 @@ func (m *EstablishDisaggTaskRequest) Size() (n int) { } func (m *EstablishDisaggTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3237,9 +3018,6 @@ func (m *EstablishDisaggTaskResponse) Size() (n int) { } func (m *CancelDisaggTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -3253,9 +3031,6 @@ func (m *CancelDisaggTaskRequest) Size() (n int) { } func (m *CancelDisaggTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -3265,9 +3040,6 @@ func (m *CancelDisaggTaskResponse) Size() (n int) { } func (m *FetchDisaggPagesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SnapshotId != nil { @@ -3294,9 +3066,6 @@ func (m *FetchDisaggPagesRequest) Size() (n int) { } func (m *PagesPacket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3328,7 +3097,14 @@ func (m *PagesPacket) Size() (n int) { } 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 +3124,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 +3152,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 +3161,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 +3184,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 +3193,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 +3216,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 +3225,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,7 +3240,7 @@ 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 { @@ -3504,7 +3271,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,7 +3291,7 @@ 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 { @@ -3555,7 +3322,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,7 +3342,7 @@ 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 { @@ -3606,7 +3373,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 +3401,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 +3411,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,7 +3422,7 @@ 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 { @@ -3689,7 +3453,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 +3481,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 +3490,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 +3512,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 +3531,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,7 +3542,7 @@ 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 { @@ -3812,7 +3573,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 +3601,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 +3610,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,7 +3626,7 @@ 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 { @@ -3899,7 +3657,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 +3685,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 +3694,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,7 +3708,7 @@ 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 { @@ -3984,7 +3739,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 +3767,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 +3776,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,7 +3792,7 @@ 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 { @@ -4071,7 +3823,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,7 +3843,7 @@ 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 { @@ -4122,7 +3874,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 +3902,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 +3912,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 +3931,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 +3941,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 +3960,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 +3970,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,7 +3981,7 @@ 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 { @@ -4269,7 +4012,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 +4040,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 +4049,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,7 +4065,7 @@ 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 { @@ -4356,7 +4096,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 +4124,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 +4143,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 +4162,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 +4181,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 +4200,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 +4219,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 +4229,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 +4248,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 +4267,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 +4286,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 +4305,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 +4324,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 +4334,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,7 +4345,7 @@ 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 { @@ -4642,7 +4376,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 +4404,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 +4423,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 +4433,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,7 +4444,7 @@ 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 { @@ -4744,7 +4475,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 +4503,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 +4512,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 +4535,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 +4544,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 +4567,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 +4576,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,7 +4591,7 @@ 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 { @@ -4900,7 +4622,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 +4650,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 +4660,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 +4677,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 +4694,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 +4703,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 +4717,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,7 +4733,7 @@ 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 { @@ -5059,7 +4764,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 +4792,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 +4802,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 +4821,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 +4830,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,7 +4844,7 @@ 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 { @@ -5176,7 +4875,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 +4903,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 +4922,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 +4932,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,7 +4943,7 @@ 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 { @@ -5278,7 +4974,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 +5002,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 +5011,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 +5035,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 +5045,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 +5064,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 +5083,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 +5092,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 +5114,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 +5133,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 +5142,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 +5164,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 +5173,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,7 +5187,7 @@ 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 { @@ -5537,7 +5218,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 +5246,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 +5255,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 +5279,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 +5298,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 +5307,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 +5331,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 +5340,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,7 +5352,7 @@ 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 { @@ -5711,7 +5383,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 +5411,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 +5420,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,7 +5436,7 @@ 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 { @@ -5798,7 +5467,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,7 +5487,7 @@ 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 { @@ -5849,7 +5518,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 +5546,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 +5555,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 +5579,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 +5598,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 +5615,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 +5632,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 +5641,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 +5655,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,7 +5671,7 @@ 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 { @@ -6050,7 +5702,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 +5730,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 +5739,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 +5763,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 +5772,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 +5792,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 +5801,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 +5821,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 +5830,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,7 +5842,7 @@ 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 { @@ -6221,7 +5861,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 +5892,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 +5912,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", fileDescriptor_disaggregated_010d6d8c16ea6d2e) } + +var fileDescriptor_disaggregated_010d6d8c16ea6d2e = []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, 0x2a, 0x76, 0x80, 0xaa, 0x14, 0x84, 0xca, 0x15, 0x0f, 0x38, 0xc4, 0xb4, + 0x4d, 0x8a, 0xb7, 0xa9, 0xf6, 0xf4, 0x89, 0x3c, 0xa5, 0xd1, 0xf4, 0xb8, 0xbb, 0x65, 0xf0, 0x0a, + 0x78, 0xe4, 0x95, 0x55, 0xb0, 0x00, 0xd8, 0x00, 0x6f, 0xb0, 0x04, 0x2a, 0xb0, 0x10, 0xaa, 0x2f, + 0x23, 0xd9, 0x8a, 0xb9, 0xa4, 0xe0, 0x49, 0xf3, 0x7d, 0x7d, 0xce, 0xe9, 0x73, 0x6f, 0xc1, 0x55, + 0x5e, 0x28, 0x36, 0x1c, 0x4a, 0x1c, 0x32, 0x8d, 0x7c, 0xa3, 0x96, 0x42, 0x0b, 0xb2, 0x74, 0x86, + 0x5c, 0xbd, 0x92, 0x8b, 0x5a, 0x8a, 0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x96, 0x9f, 0xa0, 0xce, 0x7d, 0xf0, 0xbb, 0x6c, 0x88, 0xaa, 0xb9, + 0x6a, 0x2e, 0xba, 0xe0, 0x75, 0xa3, 0x5b, 0x81, 0xd0, 0x95, 0xbe, 0x70, 0xab, 0xa1, 0x45, 0xbb, + 0x16, 0xa7, 0xdc, 0x36, 0x0d, 0x0e, 0xc7, 0x58, 0xe9, 0x59, 0x56, 0x7b, 0x9e, 0x71, 0x9a, 0x35, + 0x1b, 0xa2, 0x1d, 0xd6, 0xb6, 0x1d, 0xd6, 0xae, 0xc1, 0x66, 0x54, 0xbf, 0x0d, 0x20, 0xb2, 0x5e, + 0xee, 0x32, 0xfb, 0x56, 0xde, 0x39, 0x5b, 0xdc, 0xb5, 0x73, 0xdd, 0x9b, 0xae, 0xcd, 0xa6, 0xa6, + 0xd7, 0x60, 0xd1, 0x18, 0x74, 0xab, 0xa0, 0x4f, 0x1d, 0x30, 0xe5, 0xc8, 0x0f, 0x27, 0xd5, 0xc8, + 0xcc, 0x85, 0x2d, 0x87, 0x43, 0xe4, 0xff, 0xd0, 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 1e50033b98..ac1d6d112a 100644 --- a/pkg/disk_usage/disk_usage.pb.go +++ b/pkg/disk_usage/disk_usage.pb.go @@ -19,7 +19,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type DiskUsage int32 @@ -34,7 +34,6 @@ var DiskUsage_name = map[int32]string{ 1: "AlmostFull", 2: "AlreadyFull", } - var DiskUsage_value = map[string]int32{ "Normal": 0, "AlmostFull": 1, @@ -44,18 +43,17 @@ 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} + return fileDescriptor_disk_usage_e896984851c5cc06, []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", fileDescriptor_disk_usage_e896984851c5cc06) } -var fileDescriptor_82acb53abfd87223 = []byte{ +var fileDescriptor_disk_usage_e896984851c5cc06 = []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 24ab078e2b..03cdce3747 100644 --- a/pkg/encryptionpb/encryptionpb.pb.go +++ b/pkg/encryptionpb/encryptionpb.pb.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "math" - math_bits "math/bits" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" @@ -22,7 +21,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type EncryptionMethod int32 @@ -43,7 +42,6 @@ var EncryptionMethod_name = map[int32]string{ 4: "AES256_CTR", 5: "SM4_CTR", } - var EncryptionMethod_value = map[string]int32{ "UNKNOWN": 0, "PLAINTEXT": 1, @@ -56,9 +54,8 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{0} } // General encryption metadata for any data type. @@ -76,7 +73,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{0} } func (m *EncryptionMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,15 +83,15 @@ func (m *EncryptionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_EncryptionMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *EncryptionMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptionMeta.Merge(dst, src) } func (m *EncryptionMeta) XXX_Size() int { return m.Size() @@ -136,7 +133,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{1} } func (m *FileInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,15 +143,15 @@ func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FileInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FileInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileInfo.Merge(dst, src) } func (m *FileInfo) XXX_Size() int { return m.Size() @@ -188,7 +185,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -198,7 +195,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{2} } func (m *FileDictionary) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -208,15 +205,15 @@ func (m *FileDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_FileDictionary.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FileDictionary) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileDictionary.Merge(dst, src) } func (m *FileDictionary) XXX_Size() int { return m.Size() @@ -253,7 +250,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{3} } func (m *DataKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -263,15 +260,15 @@ func (m *DataKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DataKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DataKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataKey.Merge(dst, src) } func (m *DataKey) XXX_Size() int { return m.Size() @@ -312,7 +309,7 @@ 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:"-"` @@ -324,7 +321,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{4} } func (m *KeyDictionary) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -334,15 +331,15 @@ func (m *KeyDictionary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_KeyDictionary.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyDictionary) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyDictionary.Merge(dst, src) } func (m *KeyDictionary) XXX_Size() int { return m.Size() @@ -383,7 +380,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{5} } func (m *MasterKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -393,15 +390,15 @@ func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MasterKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MasterKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKey.Merge(dst, src) } func (m *MasterKey) XXX_Size() int { return m.Size() @@ -419,13 +416,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,15 +457,99 @@ 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), } } +func _MasterKey_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*MasterKey) + // backend + switch x := m.Backend.(type) { + case *MasterKey_Plaintext: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Plaintext); err != nil { + return err + } + case *MasterKey_File: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.File); err != nil { + return err + } + case *MasterKey_Kms: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Kms); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("MasterKey.Backend has unexpected type %T", x) + } + return nil +} + +func _MasterKey_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*MasterKey) + switch tag { + case 1: // backend.plaintext + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyPlaintext) + err := b.DecodeMessage(msg) + m.Backend = &MasterKey_Plaintext{msg} + return true, err + case 2: // backend.file + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyFile) + err := b.DecodeMessage(msg) + m.Backend = &MasterKey_File{msg} + return true, err + case 3: // backend.kms + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MasterKeyKms) + err := b.DecodeMessage(msg) + m.Backend = &MasterKey_Kms{msg} + return true, err + default: + return false, nil + } +} + +func _MasterKey_OneofSizer(msg proto.Message) (n int) { + m := msg.(*MasterKey) + // backend + switch x := m.Backend.(type) { + case *MasterKey_Plaintext: + s := proto.Size(x.Plaintext) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *MasterKey_File: + s := proto.Size(x.File) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *MasterKey_Kms: + s := proto.Size(x.Kms) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + // MasterKeyPlaintext indicates content is stored as plaintext. type MasterKeyPlaintext struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -480,7 +561,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{6} } func (m *MasterKeyPlaintext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -490,15 +571,15 @@ func (m *MasterKeyPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_MasterKeyPlaintext.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *MasterKeyPlaintext) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterKeyPlaintext.Merge(m, src) +func (dst *MasterKeyPlaintext) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKeyPlaintext.Merge(dst, src) } func (m *MasterKeyPlaintext) XXX_Size() int { return m.Size() @@ -523,7 +604,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{7} } func (m *MasterKeyFile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -533,15 +614,15 @@ func (m *MasterKeyFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_MasterKeyFile.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MasterKeyFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKeyFile.Merge(dst, src) } func (m *MasterKeyFile) XXX_Size() int { return m.Size() @@ -579,7 +660,7 @@ 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} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{8} } func (m *MasterKeyKms) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -589,15 +670,15 @@ func (m *MasterKeyKms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_MasterKeyKms.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MasterKeyKms) XXX_Merge(src proto.Message) { + xxx_messageInfo_MasterKeyKms.Merge(dst, src) } func (m *MasterKeyKms) XXX_Size() int { return m.Size() @@ -640,11 +721,11 @@ 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. @@ -659,7 +740,7 @@ func (m *EncryptedContent) Reset() { *m = EncryptedContent{} } func (m *EncryptedContent) String() string { return proto.CompactTextString(m) } func (*EncryptedContent) ProtoMessage() {} func (*EncryptedContent) Descriptor() ([]byte, []int) { - return fileDescriptor_a483860494a778a2, []int{9} + return fileDescriptor_encryptionpb_974ee413c01888fa, []int{9} } func (m *EncryptedContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -669,15 +750,15 @@ func (m *EncryptedContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_EncryptedContent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *EncryptedContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedContent.Merge(dst, src) } func (m *EncryptedContent) XXX_Size() int { return m.Size() @@ -724,7 +805,6 @@ func (m *EncryptedContent) GetCiphertextKey() []byte { } func init() { - proto.RegisterEnum("encryptionpb.EncryptionMethod", EncryptionMethod_name, EncryptionMethod_value) proto.RegisterType((*EncryptionMeta)(nil), "encryptionpb.EncryptionMeta") proto.RegisterType((*FileInfo)(nil), "encryptionpb.FileInfo") proto.RegisterType((*FileDictionary)(nil), "encryptionpb.FileDictionary") @@ -738,66 +818,12 @@ func init() { proto.RegisterType((*MasterKeyKms)(nil), "encryptionpb.MasterKeyKms") proto.RegisterType((*EncryptedContent)(nil), "encryptionpb.EncryptedContent") proto.RegisterMapType((map[string][]byte)(nil), "encryptionpb.EncryptedContent.MetadataEntry") + proto.RegisterEnum("encryptionpb.EncryptionMethod", EncryptionMethod_name, EncryptionMethod_value) } - -func init() { proto.RegisterFile("encryptionpb.proto", fileDescriptor_a483860494a778a2) } - -var fileDescriptor_a483860494a778a2 = []byte{ - // 768 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x6e, 0xdb, 0x46, - 0x14, 0xd5, 0x50, 0xd4, 0x83, 0x57, 0x8f, 0x0a, 0x03, 0xdb, 0x15, 0x54, 0x40, 0x15, 0xe8, 0xba, - 0x15, 0x5a, 0x43, 0x85, 0xd9, 0xd6, 0xb5, 0x5b, 0x04, 0x88, 0x1f, 0x0a, 0x64, 0x28, 0x52, 0x0c, - 0x5a, 0x41, 0xb2, 0x13, 0x68, 0x71, 0x2c, 0x11, 0x14, 0x1f, 0x21, 0xc7, 0xb2, 0xf9, 0x27, 0xc9, - 0x32, 0x59, 0xe5, 0x1f, 0xb2, 0xc9, 0x32, 0xcb, 0x2c, 0xb3, 0x0c, 0x9c, 0x1f, 0x09, 0x38, 0x1c, - 0x51, 0x24, 0x6c, 0x03, 0xc9, 0x8a, 0x73, 0xee, 0x9c, 0x7b, 0x79, 0xe7, 0xcc, 0x99, 0x0b, 0x98, - 0xd8, 0x13, 0x2f, 0x70, 0xa9, 0xe1, 0xd8, 0xee, 0x79, 0xc7, 0xf5, 0x1c, 0xea, 0xe0, 0x72, 0x32, - 0xd6, 0x58, 0x9b, 0x3a, 0x53, 0x87, 0x6d, 0xfc, 0x19, 0xae, 0x22, 0x4e, 0xe3, 0x07, 0xef, 0xd2, - 0xa7, 0x6c, 0x19, 0x05, 0xe4, 0x7f, 0xa1, 0xda, 0x8d, 0xd3, 0x06, 0x84, 0x6a, 0x78, 0x1d, 0xf2, - 0x26, 0x09, 0xc6, 0x86, 0x5e, 0x47, 0x2d, 0xd4, 0x16, 0xd5, 0x9c, 0x49, 0x82, 0x13, 0x1d, 0x57, - 0x41, 0x30, 0x16, 0x75, 0xa1, 0x85, 0xda, 0x65, 0x55, 0x30, 0x16, 0xb2, 0x01, 0xc5, 0x47, 0xc6, - 0x9c, 0x9c, 0xd8, 0x17, 0xce, 0x37, 0xa6, 0xe0, 0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 0x4b, - 0x33, 0x03, 0x35, 0xc7, 0x9b, 0x76, 0xa8, 0x61, 0x2e, 0x3a, 0xe6, 0x82, 0x0d, 0xf3, 0xf3, 0x3c, - 0xfb, 0xfc, 0xf5, 0x35, 0x00, 0x00, 0xff, 0xff, 0xec, 0x2d, 0xb0, 0x8e, 0x1e, 0x06, 0x00, 0x00, -} - func (m *EncryptionMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -805,38 +831,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *FileInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -844,43 +863,36 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *FileDictionary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -888,52 +900,48 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil } func (m *DataKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -941,53 +949,46 @@ 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 + i++ } - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *KeyDictionary) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -995,55 +996,52 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil } func (m *MasterKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1051,98 +1049,69 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKey_Plaintext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKey_Plaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Plaintext != nil { - { - size, err := m.Plaintext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Plaintext.Size())) + n4, err := m.Plaintext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKey_File) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKey_File) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.File != nil { - { - size, err := m.File.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.File.Size())) + n5, err := m.File.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKey_Kms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKey_Kms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Kms != nil { - { - size, err := m.Kms.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.Kms.Size())) + n6, err := m.Kms.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKeyPlaintext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1150,26 +1119,20 @@ 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) + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *MasterKeyFile) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1177,33 +1140,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil } func (m *MasterKeyKms) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1211,54 +1167,44 @@ func (m *MasterKeyKms) Marshal() (dAtA []byte, err error) { } func (m *MasterKeyKms) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterKeyKms) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Vendor) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Vendor))) + i += copy(dAtA[i:], m.Vendor) } - if len(m.Endpoint) > 0 { - i -= len(m.Endpoint) - copy(dAtA[i:], m.Endpoint) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Endpoint))) - i-- - dAtA[i] = 0x22 + if len(m.KeyId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyId))) + i += copy(dAtA[i:], m.KeyId) } if len(m.Region) > 0 { - i -= len(m.Region) - copy(dAtA[i:], m.Region) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Region))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Region))) + i += copy(dAtA[i:], m.Region) } - if len(m.KeyId) > 0 { - i -= len(m.KeyId) - copy(dAtA[i:], m.KeyId) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.KeyId))) - i-- - dAtA[i] = 0x12 + if len(m.Endpoint) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *EncryptedContent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1266,91 +1212,77 @@ func (m *EncryptedContent) Marshal() (dAtA []byte, err error) { } func (m *EncryptedContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EncryptedContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.CiphertextKey) > 0 { - i -= len(m.CiphertextKey) - copy(dAtA[i:], m.CiphertextKey) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.CiphertextKey))) - i-- - dAtA[i] = 0x2a - } - if len(m.Iv) > 0 { - i -= len(m.Iv) - copy(dAtA[i:], m.Iv) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) - i-- - dAtA[i] = 0x22 - } - if m.MasterKey != nil { - { - size, err := m.MasterKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Metadata) > 0 { + for k, _ := range m.Metadata { + dAtA[i] = 0xa + i++ + v := m.Metadata[k] + byteSize := 0 + if len(v) > 0 { + byteSize = 1 + len(v) + sovEncryptionpb(uint64(len(v))) + } + mapSize := 1 + len(k) + sovEncryptionpb(uint64(len(k))) + byteSize + i = encodeVarintEncryptionpb(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + if len(v) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) } - i -= size - i = encodeVarintEncryptionpb(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x1a } if len(m.Content) > 0 { - i -= len(m.Content) - copy(dAtA[i:], m.Content) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Content))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Content))) + i += copy(dAtA[i:], m.Content) } - if len(m.Metadata) > 0 { - for k := range m.Metadata { - v := m.Metadata[k] - baseI := i - if len(v) > 0 { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintEncryptionpb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintEncryptionpb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa + if m.MasterKey != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(m.MasterKey.Size())) + n7, err := m.MasterKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n7 + } + if len(m.Iv) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.Iv))) + i += copy(dAtA[i:], m.Iv) + } + if len(m.CiphertextKey) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintEncryptionpb(dAtA, i, uint64(len(m.CiphertextKey))) + i += copy(dAtA[i:], m.CiphertextKey) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -1367,9 +1299,6 @@ func (m *EncryptionMeta) Size() (n int) { } func (m *FileInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyId != 0 { @@ -1389,9 +1318,6 @@ func (m *FileInfo) Size() (n int) { } func (m *FileDictionary) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Files) > 0 { @@ -1414,9 +1340,6 @@ func (m *FileDictionary) Size() (n int) { } func (m *DataKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1439,9 +1362,6 @@ func (m *DataKey) Size() (n int) { } func (m *KeyDictionary) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Keys) > 0 { @@ -1467,9 +1387,6 @@ func (m *KeyDictionary) Size() (n int) { } func (m *MasterKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Backend != nil { @@ -1482,9 +1399,6 @@ func (m *MasterKey) Size() (n int) { } func (m *MasterKey_Plaintext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Plaintext != nil { @@ -1494,9 +1408,6 @@ func (m *MasterKey_Plaintext) Size() (n int) { return n } func (m *MasterKey_File) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.File != nil { @@ -1506,9 +1417,6 @@ func (m *MasterKey_File) Size() (n int) { return n } func (m *MasterKey_Kms) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Kms != nil { @@ -1518,9 +1426,6 @@ 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 { @@ -1530,9 +1435,6 @@ func (m *MasterKeyPlaintext) Size() (n int) { } func (m *MasterKeyFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Path) @@ -1546,9 +1448,6 @@ func (m *MasterKeyFile) Size() (n int) { } func (m *MasterKeyKms) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Vendor) @@ -1574,9 +1473,6 @@ func (m *MasterKeyKms) Size() (n int) { } func (m *EncryptedContent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Metadata) > 0 { @@ -1614,7 +1510,14 @@ func (m *EncryptedContent) Size() (n int) { } func sovEncryptionpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n } func sozEncryptionpb(x uint64) (n int) { return sovEncryptionpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -1634,7 +1537,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1662,7 +1565,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyId |= uint64(b&0x7F) << shift + m.KeyId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1681,7 +1584,7 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1690,9 +1593,6 @@ func (m *EncryptionMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1707,7 +1607,7 @@ 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 { @@ -1738,7 +1638,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1766,7 +1666,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyId |= uint64(b&0x7F) << shift + m.KeyId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1785,7 +1685,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1794,9 +1694,6 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1819,7 +1716,7 @@ func (m *FileInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Method |= EncryptionMethod(b&0x7F) << shift + m.Method |= (EncryptionMethod(b) & 0x7F) << shift if b < 0x80 { break } @@ -1830,7 +1727,7 @@ 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 { @@ -1861,7 +1758,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1889,7 +1786,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1898,9 +1795,6 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1921,7 +1815,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1938,7 +1832,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift + stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -1948,9 +1842,6 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEncryptionpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -1967,7 +1858,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= int(b&0x7F) << shift + mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -1976,7 +1867,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -1993,7 +1884,7 @@ func (m *FileDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -2010,7 +1901,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) > l { @@ -2041,7 +1932,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2069,7 +1960,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2078,9 +1969,6 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2103,7 +1991,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Method |= EncryptionMethod(b&0x7F) << shift + m.Method |= (EncryptionMethod(b) & 0x7F) << shift if b < 0x80 { break } @@ -2122,7 +2010,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreationTime |= uint64(b&0x7F) << shift + m.CreationTime |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2141,7 +2029,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2153,7 +2041,7 @@ 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 { @@ -2184,7 +2072,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2212,7 +2100,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2221,9 +2109,6 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2244,7 +2129,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2260,7 +2145,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapkey |= uint64(b&0x7F) << shift + mapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2276,7 +2161,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapmsglen |= int(b&0x7F) << shift + mapmsglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2285,7 +2170,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthEncryptionpb } if postmsgIndex > l { @@ -2302,7 +2187,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -2327,7 +2212,7 @@ func (m *KeyDictionary) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CurrentKeyId |= uint64(b&0x7F) << shift + m.CurrentKeyId |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2338,7 +2223,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) > l { @@ -2369,7 +2254,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2397,7 +2282,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2406,9 +2291,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2432,7 +2314,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2441,9 +2323,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2467,7 +2346,7 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2476,9 +2355,6 @@ func (m *MasterKey) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2494,7 +2370,7 @@ 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 { @@ -2525,7 +2401,7 @@ func (m *MasterKeyPlaintext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2545,7 +2421,7 @@ 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 { @@ -2576,7 +2452,7 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2604,7 +2480,7 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2614,9 +2490,6 @@ func (m *MasterKeyFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2628,7 +2501,7 @@ 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 { @@ -2659,7 +2532,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2687,7 +2560,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2697,9 +2570,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2719,7 +2589,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2729,9 +2599,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2751,7 +2618,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2761,9 +2628,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2783,7 +2647,7 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2793,9 +2657,6 @@ func (m *MasterKeyKms) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2807,7 +2668,7 @@ 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 { @@ -2838,7 +2699,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2866,7 +2727,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -2875,9 +2736,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2898,7 +2756,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= uint64(b&0x7F) << shift + wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2915,7 +2773,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift + stringLenmapkey |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2925,9 +2783,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthEncryptionpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -2944,7 +2799,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift + mapbyteLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2954,9 +2809,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postbytesIndex > l { return io.ErrUnexpectedEOF } @@ -2969,7 +2821,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthEncryptionpb } if (iNdEx + skippy) > postIndex { @@ -2994,7 +2846,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3003,9 +2855,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3028,7 +2877,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3037,9 +2886,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3064,7 +2910,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3073,9 +2919,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3098,7 +2941,7 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -3107,9 +2950,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthEncryptionpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEncryptionpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3124,7 +2964,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) > l { @@ -3143,7 +2983,6 @@ func (m *EncryptedContent) Unmarshal(dAtA []byte) error { func skipEncryptionpb(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -3175,8 +3014,10 @@ func skipEncryptionpb(dAtA []byte) (n int, err error) { break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -3193,34 +3034,107 @@ func skipEncryptionpb(dAtA []byte) (n int, err error) { break } } + iNdEx += length if length < 0 { return 0, ErrInvalidLengthEncryptionpb } - iNdEx += length + return iNdEx, nil case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupEncryptionpb + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEncryptionpb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipEncryptionpb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next } - depth-- + return iNdEx, nil + case 4: + return iNdEx, nil case 5: iNdEx += 4 + return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } - if iNdEx < 0 { - return 0, ErrInvalidLengthEncryptionpb - } - if depth == 0 { - return iNdEx, nil - } } - return 0, io.ErrUnexpectedEOF + panic("unreachable") } var ( - ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupEncryptionpb = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthEncryptionpb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEncryptionpb = fmt.Errorf("proto: integer overflow") ) + +func init() { proto.RegisterFile("encryptionpb.proto", fileDescriptor_encryptionpb_974ee413c01888fa) } + +var fileDescriptor_encryptionpb_974ee413c01888fa = []byte{ + // 768 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcb, 0x6e, 0xdb, 0x46, + 0x14, 0xd5, 0x50, 0xd4, 0x83, 0x57, 0x8f, 0x0a, 0x03, 0xdb, 0x15, 0x54, 0x40, 0x15, 0xe8, 0xba, + 0x15, 0x5a, 0x43, 0x85, 0xd9, 0xd6, 0xb5, 0x5b, 0x04, 0x88, 0x1f, 0x0a, 0x64, 0x28, 0x52, 0x0c, + 0x5a, 0x41, 0xb2, 0x13, 0x68, 0x71, 0x2c, 0x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, 0xbf, + 0x6b, 0x53, 0x2f, 0x50, 0xa3, 0xac, 0xc6, 0x29, 0xc0, 0x2a, 0x88, 0x6b, 0x90, 0x35, 0x49, 0xc0, + 0x7a, 0x97, 0xd4, 0x70, 0x89, 0xb7, 0x21, 0xb7, 0xd0, 0xe6, 0x97, 0x84, 0x35, 0x5f, 0x52, 0x36, + 0x6e, 0x97, 0x0f, 0xcf, 0xad, 0x46, 0xa4, 0xff, 0x84, 0x3d, 0x24, 0xbf, 0x42, 0x50, 0x38, 0xd6, + 0xa8, 0xd6, 0x27, 0xa9, 0x7a, 0xe5, 0xa8, 0xde, 0xea, 0xe4, 0xc2, 0xf7, 0x9c, 0x1c, 0x6f, 0x42, + 0x65, 0xe2, 0x11, 0x2d, 0xdc, 0x19, 0x53, 0xc3, 0x22, 0x4c, 0x38, 0x51, 0x2d, 0x2f, 0x83, 0x23, + 0xc3, 0x22, 0xf8, 0x67, 0x28, 0x5d, 0x69, 0xfe, 0x98, 0x5c, 0xbb, 0x8e, 0x4f, 0xf4, 0xba, 0xd8, + 0x42, 0xed, 0xa2, 0x0a, 0x57, 0x9a, 0xdf, 0x8d, 0x22, 0xf2, 0x7b, 0x04, 0x95, 0x3e, 0x09, 0x12, + 0xf2, 0xed, 0x83, 0x68, 0x92, 0x60, 0xa9, 0xde, 0x56, 0xba, 0x9b, 0x14, 0x35, 0x44, 0x5c, 0x3b, + 0x96, 0x82, 0x7f, 0x81, 0xea, 0xe4, 0xd2, 0xf3, 0x88, 0x4d, 0xc7, 0xfc, 0xce, 0x05, 0xde, 0x53, + 0x14, 0xed, 0x87, 0x57, 0xdf, 0x18, 0x82, 0x14, 0x27, 0x26, 0xf5, 0x10, 0x23, 0x3d, 0xfe, 0x48, + 0xeb, 0xbb, 0x9e, 0x6e, 0x80, 0xeb, 0x98, 0x94, 0xf7, 0x1d, 0x02, 0x69, 0xa0, 0xf9, 0x94, 0x78, + 0xa1, 0xc0, 0x0f, 0x41, 0x72, 0xe7, 0x9a, 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 0xa1, 0x7f, + 0xbc, 0x47, 0x68, 0x55, 0xb2, 0x62, 0x3b, 0x44, 0x73, 0x46, 0x8c, 0xe7, 0xcc, 0x16, 0x54, 0x27, + 0x86, 0x3b, 0x23, 0x5e, 0x28, 0x33, 0xab, 0x95, 0x63, 0x7b, 0x95, 0x55, 0xb4, 0x4f, 0x82, 0xc6, + 0xff, 0x50, 0x49, 0xf5, 0x78, 0xc7, 0x1c, 0x58, 0x4b, 0xfa, 0xb4, 0x9c, 0x30, 0xe4, 0xef, 0x66, + 0xac, 0x51, 0xfc, 0x6a, 0x71, 0x09, 0x0a, 0x4f, 0x87, 0xfd, 0xe1, 0x93, 0x67, 0xc3, 0x5a, 0x06, + 0x57, 0x40, 0x3a, 0x7d, 0x7c, 0x70, 0x32, 0x1c, 0x75, 0x9f, 0x8f, 0x6a, 0x08, 0x57, 0x01, 0x0e, + 0xba, 0x67, 0x3b, 0xca, 0xde, 0xf8, 0x68, 0xa4, 0xd6, 0x84, 0x25, 0xde, 0x57, 0x18, 0xce, 0x72, + 0xac, 0xfc, 0xb3, 0xcb, 0xb0, 0x18, 0xd6, 0x3a, 0x1b, 0xfc, 0xcd, 0x40, 0xee, 0xf0, 0xd7, 0x4f, + 0x6f, 0x8b, 0xe8, 0xc3, 0x4d, 0x13, 0x7d, 0xbc, 0x69, 0xa2, 0xcf, 0x37, 0x4d, 0xf4, 0xf2, 0x4b, + 0x33, 0x03, 0x35, 0xc7, 0x9b, 0x76, 0xa8, 0x61, 0x2e, 0x3a, 0xe6, 0x82, 0x0d, 0xf3, 0xf3, 0x3c, + 0xfb, 0xfc, 0xf5, 0x35, 0x00, 0x00, 0xff, 0xff, 0xec, 0x2d, 0xb0, 0x8e, 0x1e, 0x06, 0x00, 0x00, +} diff --git a/pkg/enginepb/enginepb.pb.go b/pkg/enginepb/enginepb.pb.go index 5dd72599bf..86768fcfee 100644 --- a/pkg/enginepb/enginepb.pb.go +++ b/pkg/enginepb/enginepb.pb.go @@ -4,19 +4,20 @@ 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 +29,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.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"` @@ -49,7 +50,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{0} } func (m *CommandRequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -59,15 +60,15 @@ func (m *CommandRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_CommandRequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommandRequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandRequestHeader.Merge(dst, src) } func (m *CommandRequestHeader) XXX_Size() int { return m.Size() @@ -121,13 +122,13 @@ 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"` + AdminResponse *raft_cmdpb.AdminResponse `protobuf:"bytes,4,opt,name=admin_response,json=adminResponse" json:"admin_response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -137,7 +138,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{1} } func (m *CommandRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,15 +148,15 @@ func (m *CommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CommandRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommandRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandRequest.Merge(dst, src) } func (m *CommandRequest) XXX_Size() int { return m.Size() @@ -195,7 +196,7 @@ func (m *CommandRequest) GetAdminResponse() *raft_cmdpb.AdminResponse { } type CommandRequestBatch struct { - Requests []*CommandRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + Requests []*CommandRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -205,7 +206,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{2} } func (m *CommandRequestBatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -215,15 +216,15 @@ func (m *CommandRequestBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CommandRequestBatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommandRequestBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandRequestBatch.Merge(dst, src) } func (m *CommandRequestBatch) XXX_Size() int { return m.Size() @@ -254,7 +255,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{3} } func (m *CommandResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -264,15 +265,15 @@ func (m *CommandResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_CommandResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommandResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandResponseHeader.Merge(dst, src) } func (m *CommandResponseHeader) XXX_Size() int { return m.Size() @@ -298,8 +299,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -310,7 +311,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{4} } func (m *CommandResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -320,15 +321,15 @@ func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_CommandResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommandResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandResponse.Merge(dst, src) } func (m *CommandResponse) XXX_Size() int { return m.Size() @@ -361,7 +362,7 @@ func (m *CommandResponse) GetAppliedTerm() uint64 { } type CommandResponseBatch struct { - Responses []*CommandResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` + Responses []*CommandResponse `protobuf:"bytes,1,rep,name=responses" json:"responses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -371,7 +372,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{5} } func (m *CommandResponseBatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -381,15 +382,15 @@ func (m *CommandResponseBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_CommandResponseBatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommandResponseBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommandResponseBatch.Merge(dst, src) } func (m *CommandResponseBatch) XXX_Size() int { return m.Size() @@ -408,9 +409,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -420,7 +421,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{6} } func (m *SnapshotState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -430,15 +431,15 @@ func (m *SnapshotState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_SnapshotState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotState) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotState.Merge(dst, src) } func (m *SnapshotState) XXX_Size() int { return m.Size() @@ -473,7 +474,7 @@ 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"` + Data []*raft_serverpb.KeyValue `protobuf:"bytes,3,rep,name=data" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -483,7 +484,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{7} } func (m *SnapshotData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -493,15 +494,15 @@ func (m *SnapshotData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SnapshotData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotData) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotData.Merge(dst, src) } func (m *SnapshotData) XXX_Size() int { return m.Size() @@ -547,7 +548,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{8} } func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -557,15 +558,15 @@ func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_SnapshotRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotRequest.Merge(dst, src) } func (m *SnapshotRequest) XXX_Size() int { return m.Size() @@ -583,10 +584,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,14 +614,80 @@ 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), } } +func _SnapshotRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*SnapshotRequest) + // chunk + switch x := m.Chunk.(type) { + case *SnapshotRequest_State: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.State); err != nil { + return err + } + case *SnapshotRequest_Data: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Data); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("SnapshotRequest.Chunk has unexpected type %T", x) + } + return nil +} + +func _SnapshotRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*SnapshotRequest) + switch tag { + case 1: // chunk.state + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SnapshotState) + err := b.DecodeMessage(msg) + m.Chunk = &SnapshotRequest_State{msg} + return true, err + case 2: // chunk.data + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SnapshotData) + err := b.DecodeMessage(msg) + m.Chunk = &SnapshotRequest_Data{msg} + return true, err + default: + return false, nil + } +} + +func _SnapshotRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*SnapshotRequest) + // chunk + switch x := m.Chunk.(type) { + case *SnapshotRequest_State: + s := proto.Size(x.State) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *SnapshotRequest_Data: + s := proto.Size(x.Data) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type SnapshotDone struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -631,7 +698,7 @@ 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} + return fileDescriptor_enginepb_3d26096a0d74b990, []int{9} } func (m *SnapshotDone) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -641,15 +708,15 @@ func (m *SnapshotDone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SnapshotDone.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *SnapshotDone) XXX_Merge(src proto.Message) { - xxx_messageInfo_SnapshotDone.Merge(m, src) +func (dst *SnapshotDone) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotDone.Merge(dst, src) } func (m *SnapshotDone) XXX_Size() int { return m.Size() @@ -673,55 +740,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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0xd9, - 0x22, 0x9f, 0x7e, 0xb5, 0x72, 0xa7, 0x65, 0xf9, 0x1f, 0x7d, 0xff, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x9d, 0xc9, 0x50, 0xee, 0xf4, 0x05, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -730,9 +748,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) @@ -811,23 +828,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 +914,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 +922,61 @@ 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 len(m.Context) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - if m.RegionId != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +984,62 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1047,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1080,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1116,45 @@ 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 + } + if m.AppliedTerm != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.AppliedTerm)) } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1162,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1195,50 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1246,43 @@ 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.Cf) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) + } + if m.Checksum != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintEnginepb(dAtA, i, uint64(m.Checksum)) } if 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-- + 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 } } - if m.Checksum != 0 { - i = encodeVarintEnginepb(dAtA, i, uint64(m.Checksum)) - i-- - dAtA[i] = 0x10 - } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintEnginepb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1290,55 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1346,26 @@ 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) + i += 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 { @@ -1494,9 +1394,6 @@ func (m *CommandRequestHeader) Size() (n int) { } func (m *CommandRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1524,9 +1421,6 @@ func (m *CommandRequest) Size() (n int) { } func (m *CommandRequestBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Requests) > 0 { @@ -1542,9 +1436,6 @@ func (m *CommandRequestBatch) Size() (n int) { } func (m *CommandResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1560,9 +1451,6 @@ func (m *CommandResponseHeader) Size() (n int) { } func (m *CommandResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1583,9 +1471,6 @@ func (m *CommandResponse) Size() (n int) { } func (m *CommandResponseBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Responses) > 0 { @@ -1601,9 +1486,6 @@ func (m *CommandResponseBatch) Size() (n int) { } func (m *SnapshotState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -1625,9 +1507,6 @@ func (m *SnapshotState) Size() (n int) { } func (m *SnapshotData) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -1650,9 +1529,6 @@ func (m *SnapshotData) Size() (n int) { } func (m *SnapshotRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -1665,9 +1541,6 @@ func (m *SnapshotRequest) Size() (n int) { } func (m *SnapshotRequest_State) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != nil { @@ -1677,9 +1550,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,9 +1559,6 @@ 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 { @@ -1701,7 +1568,14 @@ func (m *SnapshotDone) Size() (n int) { } 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 +1595,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 +1623,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 +1642,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 +1661,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 +1680,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 +1700,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 +1720,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 +1729,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,7 +1743,7 @@ 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 { @@ -1903,7 +1774,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 +1802,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 +1811,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 +1835,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 +1844,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 +1866,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 +1875,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 +1899,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 +1908,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,7 +1924,7 @@ 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 { @@ -2096,7 +1955,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 +1983,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 +1992,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,7 +2006,7 @@ 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 { @@ -2181,7 +2037,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 +2065,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 +2084,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,7 +2096,7 @@ 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 { @@ -2271,7 +2127,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 +2155,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 +2164,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 +2188,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 +2197,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 +2221,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,7 +2232,7 @@ 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 { @@ -2413,7 +2263,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 +2291,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 +2300,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,7 +2314,7 @@ 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 { @@ -2498,7 +2345,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 +2373,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 +2382,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 +2406,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 +2415,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 +2439,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 +2448,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,7 +2464,7 @@ 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 { @@ -2657,7 +2495,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 +2523,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 +2533,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 +2552,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 +2571,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 +2580,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,7 +2594,7 @@ 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 { @@ -2793,7 +2625,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 +2653,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 +2662,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 +2685,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 +2694,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,7 +2709,7 @@ 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 { @@ -2914,7 +2740,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,7 +2760,7 @@ 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 { @@ -2953,7 +2779,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 +2810,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 +2830,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", fileDescriptor_enginepb_3d26096a0d74b990) } + +var fileDescriptor_enginepb_3d26096a0d74b990 = []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, 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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 7ee9532676..5c2a5c42a3 100644 --- a/pkg/eraftpb/eraftpb.pb.go +++ b/pkg/eraftpb/eraftpb.pb.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" ) @@ -21,7 +20,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 +35,6 @@ var EntryType_name = map[int32]string{ 1: "EntryConfChange", 2: "EntryConfChangeV2", } - var EntryType_value = map[string]int32{ "EntryNormal": 0, "EntryConfChange": 1, @@ -46,9 +44,8 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{0} } type MessageType int32 @@ -96,7 +93,6 @@ var MessageType_name = map[int32]string{ 17: "MsgRequestPreVote", 18: "MsgRequestPreVoteResponse", } - var MessageType_value = map[string]int32{ "MsgHup": 0, "MsgBeat": 1, @@ -122,9 +118,8 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{1} } type ConfChangeTransition int32 @@ -152,7 +147,6 @@ var ConfChangeTransition_name = map[int32]string{ 1: "Implicit", 2: "Explicit", } - var ConfChangeTransition_value = map[string]int32{ "Auto": 0, "Implicit": 1, @@ -162,9 +156,8 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{2} } type ConfChangeType int32 @@ -180,7 +173,6 @@ var ConfChangeType_name = map[int32]string{ 1: "RemoveNode", 2: "AddLearnerNode", } - var ConfChangeType_value = map[string]int32{ "AddNode": 0, "RemoveNode": 1, @@ -190,9 +182,8 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{3} } // The entry is a type of change that needs to be applied. It contains two data fields. @@ -223,7 +214,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{0} } func (m *Entry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -233,15 +224,15 @@ func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Entry.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_Entry.Merge(dst, src) } func (m *Entry) XXX_Size() int { return m.Size() @@ -296,7 +287,7 @@ 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. @@ -310,7 +301,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{1} } func (m *SnapshotMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -320,15 +311,15 @@ func (m *SnapshotMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_SnapshotMetadata.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotMetadata.Merge(dst, src) } func (m *SnapshotMetadata) XXX_Size() int { return m.Size() @@ -362,7 +353,7 @@ 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"` + Metadata *SnapshotMetadata `protobuf:"bytes,2,opt,name=metadata" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -372,7 +363,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{2} } func (m *Snapshot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -382,15 +373,15 @@ func (m *Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Snapshot.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Snapshot) XXX_Merge(src proto.Message) { + xxx_messageInfo_Snapshot.Merge(dst, src) } func (m *Snapshot) XXX_Size() int { return m.Size() @@ -422,9 +413,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"` @@ -445,7 +436,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{3} } func (m *Message) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -455,15 +446,15 @@ func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Message.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Message) XXX_Merge(src proto.Message) { + xxx_messageInfo_Message.Merge(dst, src) } func (m *Message) XXX_Size() int { return m.Size() @@ -592,7 +583,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{4} } func (m *HardState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -602,15 +593,15 @@ func (m *HardState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_HardState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *HardState) XXX_Merge(src proto.Message) { + xxx_messageInfo_HardState.Merge(dst, src) } func (m *HardState) XXX_Size() int { return m.Size() @@ -643,14 +634,14 @@ 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"` @@ -663,7 +654,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{5} } func (m *ConfState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -673,15 +664,15 @@ func (m *ConfState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConfState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ConfState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfState.Merge(dst, src) } func (m *ConfState) XXX_Size() int { return m.Size() @@ -741,7 +732,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{6} } func (m *ConfChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -751,15 +742,15 @@ func (m *ConfChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ConfChange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ConfChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfChange.Merge(dst, src) } func (m *ConfChange) XXX_Size() int { return m.Size() @@ -812,7 +803,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{7} } func (m *ConfChangeSingle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -822,15 +813,15 @@ func (m *ConfChangeSingle) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_ConfChangeSingle.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ConfChangeSingle) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfChangeSingle.Merge(dst, src) } func (m *ConfChangeSingle) XXX_Size() int { return m.Size() @@ -889,7 +880,7 @@ 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"` + Changes []*ConfChangeSingle `protobuf:"bytes,2,rep,name=changes" json:"changes,omitempty"` Context []byte `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -900,7 +891,7 @@ 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} + return fileDescriptor_eraftpb_ccf896a26548e2dd, []int{8} } func (m *ConfChangeV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -910,15 +901,15 @@ func (m *ConfChangeV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ConfChangeV2.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ConfChangeV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConfChangeV2.Merge(dst, src) } func (m *ConfChangeV2) XXX_Size() int { return m.Size() @@ -951,10 +942,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 +951,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,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0x5f, 0x31, 0x9b, 0x5d, - 0x69, 0xad, 0x74, 0x65, 0xef, 0x08, 0xba, 0xf5, 0x13, 0x4e, 0x47, 0xd0, 0xd3, 0xce, 0x29, 0xe3, - 0x59, 0x38, 0x27, 0x6b, 0xf4, 0x19, 0x8c, 0x34, 0xb0, 0xcc, 0x4c, 0x2c, 0xfa, 0x11, 0x6c, 0x3c, - 0x02, 0x2f, 0xf7, 0x89, 0xbd, 0xf7, 0x4b, 0x0b, 0x7a, 0x8d, 0x57, 0x89, 0x02, 0x74, 0x66, 0x22, - 0x39, 0x5a, 0x14, 0x64, 0x8d, 0xf6, 0xc0, 0x99, 0x89, 0xe4, 0x2d, 0x86, 0x92, 0x58, 0x74, 0x08, - 0x30, 0x13, 0xc9, 0x19, 0x67, 0x05, 0x13, 0x48, 0x6c, 0x3a, 0x80, 0xee, 0x4c, 0x24, 0x07, 0x45, - 0x81, 0x79, 0x4c, 0x5a, 0x2a, 0x7d, 0xed, 0xfa, 0x28, 0x0a, 0x96, 0x0b, 0x24, 0x6d, 0x4a, 0x61, - 0x38, 0x13, 0x89, 0x5f, 0x7e, 0xec, 0x97, 0x4c, 0x22, 0x59, 0xa7, 0x2f, 0x60, 0x6b, 0x15, 0xab, - 0xf9, 0x1d, 0x55, 0xcb, 0x4c, 0x24, 0xd5, 0xab, 0x40, 0x1c, 0x4a, 0xa0, 0xaf, 0xf4, 0x60, 0xc8, - 0xe5, 0x95, 0x12, 0xe2, 0x52, 0x0f, 0x36, 0x9b, 0x48, 0x1d, 0xdc, 0x35, 0x97, 0xbd, 0xcf, 0x39, - 0x86, 0xd1, 0x4d, 0x78, 0x35, 0x47, 0x02, 0x74, 0x03, 0x06, 0x26, 0xa1, 0xfa, 0xd8, 0x16, 0x82, - 0xf4, 0x0c, 0xed, 0xf0, 0x06, 0xa3, 0x1f, 0xbe, 0x5b, 0x30, 0xbe, 0xc8, 0x48, 0xdf, 0xc8, 0xd7, - 0xc3, 0xbb, 0x46, 0x7e, 0x82, 0x61, 0x8c, 0x9c, 0x0c, 0x4c, 0xf4, 0x45, 0x9a, 0x21, 0x5b, 0xc8, - 0x53, 0xf6, 0x13, 0x19, 0x1a, 0x41, 0x3e, 0x86, 0xf1, 0xb1, 0x7a, 0x54, 0xc9, 0x88, 0x6e, 0x02, - 0x69, 0x22, 0x4a, 0x10, 0x21, 0x26, 0xa3, 0xa9, 0xf2, 0x8c, 0xa3, 0x2e, 0x7e, 0x83, 0xee, 0xc0, - 0xf6, 0x13, 0xb8, 0x2e, 0x81, 0xee, 0x7d, 0x05, 0x9b, 0x1f, 0xda, 0x25, 0xea, 0x42, 0xfb, 0x60, - 0x21, 0x19, 0x59, 0xa3, 0x7d, 0x70, 0x8f, 0xb3, 0x62, 0x9e, 0x46, 0xa9, 0x9a, 0x4a, 0x1f, 0xdc, - 0x77, 0x77, 0xc6, 0xb3, 0xf7, 0x0e, 0x60, 0xb8, 0xba, 0xec, 0x6a, 0x84, 0x07, 0x71, 0x7c, 0xca, - 0x62, 0x24, 0x6b, 0x6a, 0x84, 0x3e, 0x66, 0xec, 0x16, 0xb5, 0x6f, 0xa9, 0x46, 0x1c, 0xc4, 0xf1, - 0x49, 0xf9, 0x12, 0x68, 0xcc, 0x7e, 0x4b, 0xfe, 0x7c, 0xd8, 0xb5, 0xfe, 0x7a, 0xd8, 0xb5, 0xfe, - 0x79, 0xd8, 0xb5, 0x7e, 0xfd, 0x77, 0x77, 0xed, 0xaa, 0xa3, 0xff, 0x31, 0xde, 0xfc, 0x17, 0x00, - 0x00, 0xff, 0xff, 0x07, 0x70, 0x92, 0xd9, 0x74, 0x08, 0x00, 0x00, -} - func (m *Entry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -1048,65 +967,57 @@ 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 + i++ } - 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 - } - if m.Term != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x10 + if len(m.Context) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - if m.EntryType != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.EntryType)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1025,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1066,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1103,113 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1217,35 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1253,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 +1269,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 +1286,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 +1303,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 +1320,31 @@ 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]) + } + if m.AutoLeave { + dAtA[i] = 0x28 + i++ + if m.AutoLeave { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1352,41 @@ 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 len(m.Context) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintEraftpb(dAtA, i, uint64(len(m.Context))) + i += copy(dAtA[i:], m.Context) } - if m.Id != 0 { - i = encodeVarintEraftpb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1394,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1425,49 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -1657,9 +1497,6 @@ func (m *Entry) Size() (n int) { } func (m *SnapshotMetadata) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ConfState != nil { @@ -1679,9 +1516,6 @@ func (m *SnapshotMetadata) Size() (n int) { } func (m *Snapshot) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Data) @@ -1699,9 +1533,6 @@ func (m *Snapshot) Size() (n int) { } func (m *Message) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MsgType != 0 { @@ -1761,9 +1592,6 @@ func (m *Message) Size() (n int) { } func (m *HardState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Term != 0 { @@ -1782,9 +1610,6 @@ func (m *HardState) Size() (n int) { } func (m *ConfState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Voters) > 0 { @@ -1825,9 +1650,6 @@ func (m *ConfState) Size() (n int) { } func (m *ConfChange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1850,9 +1672,6 @@ func (m *ConfChange) Size() (n int) { } func (m *ConfChangeSingle) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ChangeType != 0 { @@ -1868,9 +1687,6 @@ func (m *ConfChangeSingle) Size() (n int) { } func (m *ConfChangeV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Transition != 0 { @@ -1893,7 +1709,14 @@ func (m *ConfChangeV2) Size() (n int) { } 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 +1736,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 +1764,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 +1783,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 +1802,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 +1821,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 +1830,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 +1852,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 +1872,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 +1881,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,7 +1895,7 @@ 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 { @@ -2109,7 +1926,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 +1954,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 +1963,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 +1987,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 +2006,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,7 +2017,7 @@ 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 { @@ -2234,7 +2048,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 +2076,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 +2085,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 +2107,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 +2116,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,7 +2132,7 @@ 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 { @@ -2355,7 +2163,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 +2191,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 +2210,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 +2229,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 +2248,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 +2267,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 +2286,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 +2305,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 +2314,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 +2336,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 +2355,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 +2364,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 +2388,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 +2408,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 +2427,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 +2436,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 +2458,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 +2477,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 +2496,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,7 +2507,7 @@ 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 { @@ -2739,7 +2538,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 +2566,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 +2585,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 +2604,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,7 +2615,7 @@ 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 { @@ -2847,7 +2646,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 +2672,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 +2689,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 +2698,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 +2712,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 +2734,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 +2751,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 +2760,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 +2774,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 +2796,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 +2813,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 +2822,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 +2836,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 +2858,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 +2875,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 +2884,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 +2898,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 +2922,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,7 +2934,7 @@ 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 { @@ -3222,7 +2965,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 +2993,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 +3012,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 +3031,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 +3050,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 +3059,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,7 +3073,7 @@ 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 { @@ -3364,7 +3104,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 +3132,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 +3151,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,7 +3162,7 @@ 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 { @@ -3453,7 +3193,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 +3221,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 +3240,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 +3249,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 +3271,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 +3280,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,7 +3294,7 @@ 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 { @@ -3579,7 +3313,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 +3344,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 +3364,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", fileDescriptor_eraftpb_ccf896a26548e2dd) } + +var fileDescriptor_eraftpb_ccf896a26548e2dd = []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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 0xc9, 0xf8, 0x32, 0x27, 0x03, 0x23, 0x5f, 0x0f, + 0xef, 0x0a, 0xf9, 0x31, 0x46, 0x09, 0x72, 0x32, 0x34, 0xd1, 0xe7, 0x59, 0x8e, 0x6c, 0x29, 0x4f, + 0xd8, 0x4f, 0x64, 0x64, 0x04, 0x05, 0x18, 0x25, 0x47, 0xea, 0x51, 0x25, 0x63, 0xba, 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 77f14962ce..3e2fd0976e 100644 --- a/pkg/errorpb/errorpb.pb.go +++ b/pkg/errorpb/errorpb.pb.go @@ -7,10 +7,10 @@ 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" ) @@ -23,7 +23,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.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,7 +31,7 @@ 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"` + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -41,7 +41,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{0} } func (m *NotLeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -51,15 +51,15 @@ func (m *NotLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NotLeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *NotLeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotLeader.Merge(dst, src) } func (m *NotLeader) XXX_Size() int { return m.Size() @@ -98,7 +98,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{1} } func (m *IsWitness) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -108,15 +108,15 @@ func (m *IsWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IsWitness.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IsWitness) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsWitness.Merge(dst, src) } func (m *IsWitness) XXX_Size() int { return m.Size() @@ -138,7 +138,7 @@ func (m *IsWitness) GetRegionId() uint64 { // 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"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -148,7 +148,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{2} } func (m *BucketVersionNotMatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,15 +158,15 @@ func (m *BucketVersionNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_BucketVersionNotMatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BucketVersionNotMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_BucketVersionNotMatch.Merge(dst, src) } func (m *BucketVersionNotMatch) XXX_Size() int { return m.Size() @@ -193,7 +193,7 @@ 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:"-"` @@ -205,7 +205,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{3} } func (m *DiskFull) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -215,15 +215,15 @@ func (m *DiskFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DiskFull.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DiskFull) XXX_Merge(src proto.Message) { + xxx_messageInfo_DiskFull.Merge(dst, src) } func (m *DiskFull) XXX_Size() int { return m.Size() @@ -264,7 +264,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{4} } func (m *StoreNotMatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -274,15 +274,15 @@ func (m *StoreNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_StoreNotMatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreNotMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreNotMatch.Merge(dst, src) } func (m *StoreNotMatch) XXX_Size() int { return m.Size() @@ -321,7 +321,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{5} } func (m *RegionNotFound) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -331,15 +331,15 @@ func (m *RegionNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RegionNotFound.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionNotFound) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionNotFound.Merge(dst, src) } func (m *RegionNotFound) XXX_Size() int { return m.Size() @@ -371,7 +371,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{6} } func (m *RegionNotInitialized) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -381,15 +381,15 @@ func (m *RegionNotInitialized) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_RegionNotInitialized.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionNotInitialized) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionNotInitialized.Merge(dst, src) } func (m *RegionNotInitialized) XXX_Size() int { return m.Size() @@ -427,7 +427,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{7} } func (m *KeyNotInRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -437,15 +437,15 @@ func (m *KeyNotInRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_KeyNotInRegion.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyNotInRegion) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyNotInRegion.Merge(dst, src) } func (m *KeyNotInRegion) XXX_Size() int { return m.Size() @@ -489,7 +489,7 @@ 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"` + CurrentRegions []*metapb.Region `protobuf:"bytes,1,rep,name=current_regions,json=currentRegions" json:"current_regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -499,7 +499,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{8} } func (m *EpochNotMatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -509,15 +509,15 @@ func (m *EpochNotMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_EpochNotMatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *EpochNotMatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochNotMatch.Merge(dst, src) } func (m *EpochNotMatch) XXX_Size() int { return m.Size() @@ -552,7 +552,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{9} } func (m *ServerIsBusy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -562,15 +562,15 @@ func (m *ServerIsBusy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ServerIsBusy.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ServerIsBusy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServerIsBusy.Merge(dst, src) } func (m *ServerIsBusy) XXX_Size() int { return m.Size() @@ -622,7 +622,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{10} } func (m *StaleCommand) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -632,15 +632,15 @@ func (m *StaleCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_StaleCommand.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StaleCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_StaleCommand.Merge(dst, src) } func (m *StaleCommand) XXX_Size() int { return m.Size() @@ -668,7 +668,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{11} } func (m *RaftEntryTooLarge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -678,15 +678,15 @@ func (m *RaftEntryTooLarge) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_RaftEntryTooLarge.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftEntryTooLarge) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftEntryTooLarge.Merge(dst, src) } func (m *RaftEntryTooLarge) XXX_Size() int { return m.Size() @@ -725,7 +725,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{12} } func (m *MaxTimestampNotSynced) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -735,15 +735,15 @@ func (m *MaxTimestampNotSynced) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_MaxTimestampNotSynced.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MaxTimestampNotSynced) XXX_Merge(src proto.Message) { + xxx_messageInfo_MaxTimestampNotSynced.Merge(dst, src) } func (m *MaxTimestampNotSynced) XXX_Size() int { return m.Size() @@ -772,7 +772,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{13} } func (m *ReadIndexNotReady) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -782,15 +782,15 @@ func (m *ReadIndexNotReady) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ReadIndexNotReady.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReadIndexNotReady) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexNotReady.Merge(dst, src) } func (m *ReadIndexNotReady) XXX_Size() int { return m.Size() @@ -830,7 +830,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{14} } func (m *ProposalInMergingMode) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -840,15 +840,15 @@ func (m *ProposalInMergingMode) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ProposalInMergingMode.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ProposalInMergingMode) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalInMergingMode.Merge(dst, src) } func (m *ProposalInMergingMode) XXX_Size() int { return m.Size() @@ -880,7 +880,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{15} } func (m *DataIsNotReady) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -890,15 +890,15 @@ func (m *DataIsNotReady) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_DataIsNotReady.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DataIsNotReady) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataIsNotReady.Merge(dst, src) } func (m *DataIsNotReady) XXX_Size() int { return m.Size() @@ -942,7 +942,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{16} } func (m *RecoveryInProgress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -952,15 +952,15 @@ func (m *RecoveryInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RecoveryInProgress.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RecoveryInProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoveryInProgress.Merge(dst, src) } func (m *RecoveryInProgress) XXX_Size() int { return m.Size() @@ -991,7 +991,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{17} } func (m *FlashbackInProgress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1001,15 +1001,15 @@ func (m *FlashbackInProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_FlashbackInProgress.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlashbackInProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackInProgress.Merge(dst, src) } func (m *FlashbackInProgress) XXX_Size() int { return m.Size() @@ -1046,7 +1046,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{18} } func (m *FlashbackNotPrepared) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1056,15 +1056,15 @@ func (m *FlashbackNotPrepared) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_FlashbackNotPrepared.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlashbackNotPrepared) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackNotPrepared.Merge(dst, src) } func (m *FlashbackNotPrepared) XXX_Size() int { return m.Size() @@ -1096,7 +1096,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{19} } func (m *MismatchPeerId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1106,15 +1106,15 @@ func (m *MismatchPeerId) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_MismatchPeerId.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MismatchPeerId) XXX_Merge(src proto.Message) { + xxx_messageInfo_MismatchPeerId.Merge(dst, src) } func (m *MismatchPeerId) XXX_Size() int { return m.Size() @@ -1143,35 +1143,35 @@ 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"` + BucketVersionNotMatch *BucketVersionNotMatch `protobuf:"bytes,21,opt,name=bucket_version_not_match,json=bucketVersionNotMatch" json:"bucket_version_not_match,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1181,7 +1181,7 @@ 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} + return fileDescriptor_errorpb_44c7bbd4f2bd8526, []int{20} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1191,15 +1191,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -1380,94 +1380,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, 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81, 0x2e, 0xc1, 0x8b, 0xe9, 0xab, 0x40, 0x2d, 0x31, 0x62, 0x92, 0x92, 0x06, 0x24, 0x1e, - 0x98, 0x80, 0x87, 0x59, 0xc0, 0x52, 0xdc, 0x90, 0x6e, 0x5c, 0xa6, 0x36, 0x59, 0x22, 0x4d, 0x09, - 0x69, 0xa2, 0x6a, 0x71, 0xe1, 0x35, 0x8a, 0x59, 0x16, 0x51, 0x45, 0x3a, 0xe2, 0x2d, 0x7a, 0x5d, - 0x82, 0x37, 0x4b, 0x41, 0xa4, 0x2f, 0x4c, 0x6c, 0x51, 0x14, 0xc4, 0x3c, 0x44, 0xaf, 0x59, 0xc8, - 0xb2, 0x94, 0x58, 0xa4, 0x3b, 0x2b, 0x05, 0xd9, 0x09, 0x74, 0x42, 0xaa, 0xa8, 0xbe, 0x02, 0xab, - 0x14, 0x5b, 0x85, 0x8b, 0x98, 0xa7, 0x19, 0x71, 0xc2, 0x3c, 0xdd, 0x86, 0x70, 0x6b, 0xad, 0x1f, - 0xd8, 0xea, 0xd7, 0xeb, 0x39, 0x26, 0xd0, 0xdd, 0xb7, 0xbb, 0x62, 0xed, 0xff, 0x4c, 0xf6, 0x45, - 0xd9, 0x5f, 0xfb, 0x18, 0xea, 0x21, 0x93, 0xd3, 0x60, 0x3c, 0x8f, 0x22, 0xaf, 0x6d, 0xe2, 0x74, - 0x56, 0x09, 0xa5, 0x0f, 0x17, 0x52, 0x0b, 0x97, 0x4f, 0x98, 0xb3, 0x32, 0x26, 0x7a, 0x7b, 0xc6, - 0xf1, 0xce, 0x5a, 0x02, 0x45, 0x13, 0x52, 0x86, 0xd2, 0x41, 0x29, 0x2d, 0xbd, 0x8e, 0x89, 0xf6, - 0x41, 0x16, 0xad, 0xc4, 0x86, 0x94, 0x62, 0xf6, 0xfb, 0x72, 0x36, 0x7a, 0x6e, 0xe1, 0x7c, 0xca, - 0x8c, 0x48, 0x39, 0x56, 0x1f, 0x00, 0x30, 0x19, 0xbc, 0xb4, 0x0f, 0x46, 0xef, 0x66, 0x81, 0x5b, - 0xd9, 0x53, 0x92, 0xd4, 0x59, 0xf6, 0xaa, 0x7c, 0x0c, 0x7b, 0x71, 0x0a, 0xdb, 0x8c, 0x9a, 0xfb, - 0x85, 0x52, 0xe7, 0x69, 0x4c, 0x9c, 0x38, 0x4f, 0xe7, 0x4b, 0xf0, 0xae, 0xcc, 0xdb, 0x33, 0x48, - 0x9f, 0x96, 0x6b, 0x3d, 0xdc, 0x2d, 0xdc, 0xc3, 0xd2, 0x47, 0x2a, 0xe9, 0x5e, 0x95, 0xaa, 0x1b, - 0x96, 0x26, 0x86, 0x50, 0x27, 0xf7, 0xff, 0xfa, 0xad, 0x56, 0xf9, 0xe3, 0xcd, 0x61, 0xe5, 0xcf, - 0x37, 0x87, 0x95, 0xbf, 0xdf, 0x1c, 0x56, 0x7e, 0xfd, 0xe7, 0xf0, 0x3d, 0xd8, 0xe3, 0x62, 0x72, - 0xac, 0xd8, 0xf4, 0xfa, 0x78, 0x7a, 0x6d, 0xde, 0xe0, 0x57, 0x55, 0xf3, 0x79, 0xf4, 0x6f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xa3, 0x67, 0x41, 0x1d, 0xd9, 0x0b, 0x00, 0x00, -} - 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 +1391,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1427,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1453,33 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1487,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 +1503,27 @@ 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]) + } + if len(m.Reason) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.Reason))) + i += copy(dAtA[i:], m.Reason) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 +1531,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1562,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1588,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1614,43 @@ 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.EndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1658,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1691,41 @@ 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 m.AppliedIndex != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintErrorpb(dAtA, i, uint64(m.AppliedIndex)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1733,20 @@ 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) + i += 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 +1754,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1785,20 @@ 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) + i += 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 +1806,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1838,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1864,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1900,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1926,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1957,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1983,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2014,244 @@ 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 + i += n23 } - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -2536,9 +2268,6 @@ func (m *NotLeader) Size() (n int) { } func (m *IsWitness) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2551,9 +2280,6 @@ func (m *IsWitness) Size() (n int) { } func (m *BucketVersionNotMatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Version != 0 { @@ -2572,9 +2298,6 @@ func (m *BucketVersionNotMatch) Size() (n int) { } func (m *DiskFull) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.StoreId) > 0 { @@ -2595,9 +2318,6 @@ func (m *DiskFull) Size() (n int) { } func (m *StoreNotMatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RequestStoreId != 0 { @@ -2613,9 +2333,6 @@ func (m *StoreNotMatch) Size() (n int) { } func (m *RegionNotFound) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2628,9 +2345,6 @@ func (m *RegionNotFound) Size() (n int) { } func (m *RegionNotInitialized) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2643,9 +2357,6 @@ func (m *RegionNotInitialized) Size() (n int) { } func (m *KeyNotInRegion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -2670,9 +2381,6 @@ func (m *KeyNotInRegion) Size() (n int) { } func (m *EpochNotMatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.CurrentRegions) > 0 { @@ -2688,9 +2396,6 @@ func (m *EpochNotMatch) Size() (n int) { } func (m *ServerIsBusy) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Reason) @@ -2713,9 +2418,6 @@ func (m *ServerIsBusy) Size() (n int) { } func (m *StaleCommand) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -2725,9 +2427,6 @@ func (m *StaleCommand) Size() (n int) { } func (m *RaftEntryTooLarge) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2743,9 +2442,6 @@ func (m *RaftEntryTooLarge) Size() (n int) { } func (m *MaxTimestampNotSynced) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -2755,9 +2451,6 @@ func (m *MaxTimestampNotSynced) Size() (n int) { } func (m *ReadIndexNotReady) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Reason) @@ -2774,9 +2467,6 @@ func (m *ReadIndexNotReady) Size() (n int) { } func (m *ProposalInMergingMode) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2789,9 +2479,6 @@ func (m *ProposalInMergingMode) Size() (n int) { } func (m *DataIsNotReady) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2810,9 +2497,6 @@ func (m *DataIsNotReady) Size() (n int) { } func (m *RecoveryInProgress) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2825,9 +2509,6 @@ func (m *RecoveryInProgress) Size() (n int) { } func (m *FlashbackInProgress) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2843,9 +2524,6 @@ func (m *FlashbackInProgress) Size() (n int) { } func (m *FlashbackNotPrepared) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -2858,9 +2536,6 @@ func (m *FlashbackNotPrepared) Size() (n int) { } func (m *MismatchPeerId) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RequestPeerId != 0 { @@ -2876,9 +2551,6 @@ func (m *MismatchPeerId) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Message) @@ -2972,7 +2644,14 @@ func (m *Error) Size() (n int) { } 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 +2671,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 +2699,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 +2718,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 +2727,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,7 +2743,7 @@ 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 { @@ -3098,7 +2774,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 +2802,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,7 +2813,7 @@ 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 { @@ -3168,7 +2844,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 +2872,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 +2891,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 +2900,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,7 +2912,7 @@ 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 { @@ -3270,7 +2943,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 +2969,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 +2986,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 +2995,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 +3009,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 +3033,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 +3043,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,7 +3054,7 @@ 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 { @@ -3429,7 +3085,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 +3113,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 +3132,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,7 +3143,7 @@ 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 { @@ -3518,7 +3174,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 +3202,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,7 +3213,7 @@ 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 { @@ -3588,7 +3244,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 +3272,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,7 +3283,7 @@ 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 { @@ -3658,7 +3314,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 +3342,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 +3351,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 +3373,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 +3392,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 +3401,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 +3423,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 +3432,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,7 +3446,7 @@ 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 { @@ -3830,7 +3477,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 +3505,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 +3514,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,7 +3528,7 @@ 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 { @@ -3915,7 +3559,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 +3587,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 +3597,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 +3616,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 +3635,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 +3654,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,7 +3665,7 @@ 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 { @@ -4055,7 +3696,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,7 +3716,7 @@ 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 { @@ -4106,7 +3747,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 +3775,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 +3794,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,7 +3805,7 @@ 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 { @@ -4195,7 +3836,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,7 +3856,7 @@ 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 { @@ -4246,7 +3887,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 +3915,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 +3925,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 +3944,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,7 +3955,7 @@ 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 { @@ -4348,7 +3986,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 +4014,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,7 +4025,7 @@ 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 { @@ -4418,7 +4056,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 +4084,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 +4103,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 +4122,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,7 +4133,7 @@ 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 { @@ -4526,7 +4164,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 +4192,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,7 +4203,7 @@ 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 { @@ -4596,7 +4234,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 +4262,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 +4281,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,7 +4292,7 @@ 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 { @@ -4685,7 +4323,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 +4351,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,7 +4362,7 @@ 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 { @@ -4755,7 +4393,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 +4421,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 +4440,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,7 +4451,7 @@ 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 { @@ -4844,7 +4482,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 +4510,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 +4520,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 +4539,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 +4548,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 +4572,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 +4581,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 +4605,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 +4614,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 +4638,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 +4647,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 +4671,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 +4680,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 +4704,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 +4713,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 +4737,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 +4746,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 +4770,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 +4779,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 +4803,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 +4812,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 +4836,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 +4845,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 +4869,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 +4878,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 +4902,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 +4911,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 +4935,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 +4944,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 +4968,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 +4977,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 +5001,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 +5010,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 +5034,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 +5043,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 +5067,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 +5076,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 +5100,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 +5109,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 +5133,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 +5142,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 +5166,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 +5175,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,7 +5191,7 @@ 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 { @@ -5635,7 +5210,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 +5241,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 +5261,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", fileDescriptor_errorpb_44c7bbd4f2bd8526) } + +var fileDescriptor_errorpb_44c7bbd4f2bd8526 = []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, 0x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 0xdc, 0x2d, 0xdc, 0xc3, 0xd2, 0x47, 0x2a, 0xe9, 0x5e, 0x95, 0xaa, 0x1b, + 0x96, 0x26, 0x86, 0x50, 0x27, 0xf7, 0xff, 0xfa, 0xad, 0x56, 0xf9, 0xe3, 0xcd, 0x61, 0xe5, 0xcf, + 0x37, 0x87, 0x95, 0xbf, 0xdf, 0x1c, 0x56, 0x7e, 0xfd, 0xe7, 0xf0, 0x3d, 0xd8, 0xe3, 0x62, 0x72, + 0xac, 0xd8, 0xf4, 0xfa, 0x78, 0x7a, 0x6d, 0xde, 0xe0, 0x57, 0x55, 0xf3, 0x79, 0xf4, 0x6f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xa3, 0x67, 0x41, 0x1d, 0xd9, 0x0b, 0x00, 0x00, +} diff --git a/pkg/gcpb/gcpb.pb.go b/pkg/gcpb/gcpb.pb.go index de95856f5d..fbdcb46796 100644 --- a/pkg/gcpb/gcpb.pb.go +++ b/pkg/gcpb/gcpb.pb.go @@ -4,17 +4,16 @@ 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 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ErrorType int32 @@ -47,7 +46,6 @@ var ErrorType_name = map[int32]string{ 3: "REVISION_MISMATCH", 4: "SAFEPOINT_ROLLBACK", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -59,9 +57,8 @@ 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} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{0} } type RequestHeader struct { @@ -78,7 +75,7 @@ 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} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{0} } func (m *RequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -88,15 +85,15 @@ func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(dst, src) } func (m *RequestHeader) XXX_Size() int { return m.Size() @@ -124,7 +121,7 @@ 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"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -134,7 +131,7 @@ 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} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{1} } func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -144,15 +141,15 @@ func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(dst, src) } func (m *ResponseHeader) XXX_Size() int { return m.Size() @@ -189,7 +186,7 @@ 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} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{2} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -199,15 +196,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -244,7 +241,7 @@ 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} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{3} } func (m *KeySpace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -254,15 +251,15 @@ func (m *KeySpace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KeySpace.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeySpace) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeySpace.Merge(dst, src) } func (m *KeySpace) XXX_Size() int { return m.Size() @@ -288,7 +285,7 @@ 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:"-"` @@ -300,7 +297,7 @@ 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} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{4} } func (m *ListKeySpacesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -310,15 +307,15 @@ func (m *ListKeySpacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_ListKeySpacesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ListKeySpacesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListKeySpacesRequest.Merge(dst, src) } func (m *ListKeySpacesRequest) XXX_Size() int { return m.Size() @@ -344,8 +341,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -355,7 +352,7 @@ 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} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{5} } func (m *ListKeySpacesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -365,15 +362,15 @@ func (m *ListKeySpacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ListKeySpacesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ListKeySpacesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListKeySpacesResponse.Merge(dst, src) } func (m *ListKeySpacesResponse) XXX_Size() int { return m.Size() @@ -399,7 +396,7 @@ func (m *ListKeySpacesResponse) GetKeySpaces() []*KeySpace { } type GetMinServiceSafePointRequest 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -410,7 +407,7 @@ func (m *GetMinServiceSafePointRequest) Reset() { *m = GetMinServiceSafe func (m *GetMinServiceSafePointRequest) String() string { return proto.CompactTextString(m) } func (*GetMinServiceSafePointRequest) ProtoMessage() {} func (*GetMinServiceSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{6} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{6} } func (m *GetMinServiceSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -420,15 +417,15 @@ func (m *GetMinServiceSafePointRequest) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_GetMinServiceSafePointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMinServiceSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinServiceSafePointRequest.Merge(dst, src) } func (m *GetMinServiceSafePointRequest) XXX_Size() int { return m.Size() @@ -454,7 +451,7 @@ 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 @@ -468,7 +465,7 @@ func (m *GetMinServiceSafePointResponse) Reset() { *m = GetMinServiceSaf func (m *GetMinServiceSafePointResponse) String() string { return proto.CompactTextString(m) } func (*GetMinServiceSafePointResponse) ProtoMessage() {} func (*GetMinServiceSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{7} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{7} } func (m *GetMinServiceSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -478,15 +475,15 @@ func (m *GetMinServiceSafePointResponse) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_GetMinServiceSafePointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMinServiceSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinServiceSafePointResponse.Merge(dst, src) } func (m *GetMinServiceSafePointResponse) XXX_Size() int { return m.Size() @@ -519,7 +516,7 @@ 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, @@ -534,7 +531,7 @@ func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointReque func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointRequest) ProtoMessage() {} func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{8} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{8} } func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -544,15 +541,15 @@ func (m *UpdateGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_UpdateGCSafePointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointRequest.Merge(dst, src) } func (m *UpdateGCSafePointRequest) XXX_Size() int { return m.Size() @@ -592,7 +589,7 @@ 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"` @@ -606,7 +603,7 @@ func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResp func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointResponse) ProtoMessage() {} func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{9} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{9} } func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -616,15 +613,15 @@ func (m *UpdateGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_UpdateGCSafePointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointResponse.Merge(dst, src) } func (m *UpdateGCSafePointResponse) XXX_Size() int { return m.Size() @@ -657,7 +654,7 @@ 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) @@ -674,7 +671,7 @@ func (m *UpdateServiceSafePointRequest) Reset() { *m = UpdateServiceSafe func (m *UpdateServiceSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointRequest) ProtoMessage() {} func (*UpdateServiceSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{10} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{10} } func (m *UpdateServiceSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -684,15 +681,15 @@ func (m *UpdateServiceSafePointRequest) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_UpdateServiceSafePointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateServiceSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointRequest.Merge(dst, src) } func (m *UpdateServiceSafePointRequest) XXX_Size() int { return m.Size() @@ -739,7 +736,7 @@ 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"` @@ -755,7 +752,7 @@ func (m *UpdateServiceSafePointResponse) Reset() { *m = UpdateServiceSaf func (m *UpdateServiceSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointResponse) ProtoMessage() {} func (*UpdateServiceSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b5e0ef170d88dab2, []int{11} + return fileDescriptor_gcpb_ee1b49db8cc69fdc, []int{11} } func (m *UpdateServiceSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -765,15 +762,15 @@ func (m *UpdateServiceSafePointResponse) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_UpdateServiceSafePointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateServiceSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointResponse.Merge(dst, src) } func (m *UpdateServiceSafePointResponse) XXX_Size() int { return m.Size() @@ -820,7 +817,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 +829,7 @@ func init() { proto.RegisterType((*UpdateGCSafePointResponse)(nil), "gcpb.UpdateGCSafePointResponse") proto.RegisterType((*UpdateServiceSafePointRequest)(nil), "gcpb.UpdateServiceSafePointRequest") proto.RegisterType((*UpdateServiceSafePointResponse)(nil), "gcpb.UpdateServiceSafePointResponse") -} - -func init() { proto.RegisterFile("gcpb.proto", fileDescriptor_b5e0ef170d88dab2) } - -var fileDescriptor_b5e0ef170d88dab2 = []byte{ - // 750 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xda, 0x4a, - 0x14, 0xc6, 0x18, 0x12, 0x7c, 0x48, 0x88, 0x33, 0x97, 0x44, 0x84, 0x5c, 0xb8, 0xb9, 0x4e, 0x54, - 0x45, 0x4d, 0x4b, 0x25, 0xfa, 0x04, 0x84, 0x12, 0xe2, 0x42, 0x30, 0x32, 0x4e, 0xba, 0xb4, 0x88, - 0x3d, 0x71, 0x2c, 0x52, 0xec, 0x7a, 0x0c, 0x11, 0x8f, 0xd0, 0x45, 0xf7, 0xdd, 0x74, 0xdf, 0x37, - 0xe8, 0x2b, 0x74, 0xd9, 0x65, 0x17, 0x5d, 0x54, 0xe9, 0x3b, 0x74, 0x5d, 0x79, 0x06, 0x13, 0xfe, - 0x55, 0x45, 0xca, 0x8a, 0x99, 0xf3, 0xcd, 0x9c, 0xef, 0x3b, 0xdf, 0x1c, 0x1f, 0x00, 0x2c, 0xc3, - 0xbd, 0x2c, 0xb8, 0x9e, 0xe3, 0x3b, 0x28, 0x16, 0xac, 0xb3, 0x69, 0xcb, 0xb1, 0x1c, 0x1a, 0x78, - 0x11, 0xac, 0x18, 0x96, 0xdd, 0xf0, 0x7a, 0xc4, 0xa7, 0x4b, 0x16, 0x90, 0x6a, 0xb0, 0xae, 0xe2, - 0x77, 0x3d, 0x4c, 0xfc, 0x53, 0xdc, 0x36, 0xb1, 0x87, 0x72, 0x00, 0xc6, 0x4d, 0x8f, 0xf8, 0xd8, - 0xd3, 0x6d, 0x33, 0xc3, 0xed, 0x71, 0x87, 0x31, 0x55, 0x18, 0x46, 0x64, 0x13, 0xed, 0x82, 0x40, - 0x70, 0xd7, 0x64, 0x68, 0x94, 0xa2, 0x09, 0x16, 0x90, 0x4d, 0x49, 0x85, 0x94, 0x8a, 0x89, 0xeb, - 0x74, 0x09, 0xfe, 0xbb, 0x6c, 0xff, 0x43, 0x1c, 0x7b, 0x9e, 0xe3, 0xd1, 0x4c, 0xc9, 0x62, 0xb2, - 0x40, 0xcb, 0xa8, 0x04, 0x21, 0x95, 0x21, 0xd2, 0x09, 0xc4, 0xe9, 0x1e, 0xed, 0x43, 0xcc, 0x1f, - 0xb8, 0x98, 0x26, 0x49, 0x15, 0x37, 0xc6, 0x8e, 0x6a, 0x03, 0x17, 0xab, 0x14, 0x44, 0x19, 0x58, - 0x7d, 0x8b, 0x09, 0x69, 0x5b, 0x98, 0xa6, 0x14, 0xd4, 0x70, 0x2b, 0xc9, 0x90, 0xa8, 0xe1, 0x41, - 0xcb, 0x6d, 0x1b, 0x18, 0xed, 0x40, 0x82, 0x04, 0x8b, 0x50, 0xd3, 0x9a, 0x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0x52, 0xaf, 0x1f, 0x97, 0xca, 0x35, 0x31, 0x56, - 0xfc, 0x1d, 0x85, 0x68, 0xb5, 0x8c, 0x5e, 0xc3, 0xfa, 0xc4, 0x84, 0x42, 0x59, 0x66, 0xd5, 0xbc, - 0x41, 0x99, 0xdd, 0x9d, 0x8b, 0x31, 0x4f, 0xa5, 0x08, 0xc2, 0xb0, 0x3d, 0x7f, 0x1a, 0xa0, 0x7d, - 0x76, 0x71, 0xe9, 0x54, 0xca, 0x1e, 0x2c, 0x3f, 0x34, 0xa2, 0xb9, 0x80, 0xcd, 0x99, 0x0f, 0x09, - 0xe5, 0xd9, 0xe5, 0x45, 0x13, 0x20, 0xfb, 0xdf, 0x42, 0x7c, 0x5c, 0xfe, 0xfc, 0xb6, 0x0a, 0xe5, - 0x2f, 0xfd, 0x5c, 0x42, 0xf9, 0xcb, 0x3b, 0x53, 0x8a, 0x1c, 0x3f, 0xf9, 0xfe, 0x39, 0xc1, 0x7d, - 0xbd, 0xcb, 0x73, 0xdf, 0xee, 0xf2, 0xdc, 0xcf, 0xbb, 0x3c, 0xf7, 0xf1, 0x57, 0x3e, 0x02, 0xa2, - 0xe3, 0x59, 0x05, 0xdf, 0xee, 0xf4, 0x0b, 0x9d, 0x3e, 0xfd, 0x87, 0xbf, 0x5c, 0xa1, 0x3f, 0x2f, - 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x66, 0xde, 0x26, 0x9d, 0x23, 0x08, 0x00, 0x00, + proto.RegisterEnum("gcpb.ErrorType", ErrorType_name, ErrorType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -896,9 +840,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) @@ -950,7 +893,8 @@ func (c *gCClient) UpdateServiceSafePoint(ctx context.Context, in *UpdateService 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 +902,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 +1006,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 +1014,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1045,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1081,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1113,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1145,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1186,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1229,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1266,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1307,46 @@ 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 = encodeVarintGcpb(dAtA, i, uint64(m.Header.Size())) + n6, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - if m.Revision != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) - 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 m.SafePoint != 0 { - i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.SafePoint)) } - 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.Revision != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.Revision)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1354,45 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1400,52 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1453,61 @@ 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)) } - return len(dAtA) - i, nil + if m.OldSafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.OldSafePoint)) + } + if m.NewSafePoint != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintGcpb(dAtA, i, uint64(m.NewSafePoint)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -1699,9 +1523,6 @@ func (m *RequestHeader) Size() (n int) { } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1718,9 +1539,6 @@ func (m *ResponseHeader) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -1737,9 +1555,6 @@ func (m *Error) Size() (n int) { } func (m *KeySpace) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.SpaceId) @@ -1756,9 +1571,6 @@ func (m *KeySpace) Size() (n int) { } func (m *ListKeySpacesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1775,9 +1587,6 @@ func (m *ListKeySpacesRequest) Size() (n int) { } func (m *ListKeySpacesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1797,9 +1606,6 @@ func (m *ListKeySpacesResponse) Size() (n int) { } func (m *GetMinServiceSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1817,9 +1623,6 @@ func (m *GetMinServiceSafePointRequest) Size() (n int) { } func (m *GetMinServiceSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1839,9 +1642,6 @@ func (m *GetMinServiceSafePointResponse) Size() (n int) { } func (m *UpdateGCSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1865,9 +1665,6 @@ func (m *UpdateGCSafePointRequest) Size() (n int) { } func (m *UpdateGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1887,9 +1684,6 @@ func (m *UpdateGCSafePointResponse) Size() (n int) { } func (m *UpdateServiceSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1917,9 +1711,6 @@ func (m *UpdateServiceSafePointRequest) Size() (n int) { } func (m *UpdateServiceSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1945,7 +1736,14 @@ func (m *UpdateServiceSafePointResponse) Size() (n int) { } 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 +1763,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 +1791,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 +1810,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,7 +1821,7 @@ 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 { @@ -2054,7 +1852,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 +1880,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 +1899,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 +1908,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,7 +1924,7 @@ 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 { @@ -2160,7 +1955,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 +1983,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 +2002,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 +2012,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,7 +2023,7 @@ 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 { @@ -2262,7 +2054,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 +2082,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 +2091,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 +2113,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,7 +2124,7 @@ 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 { @@ -2366,7 +2155,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 +2183,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 +2192,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 +2216,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,7 +2228,7 @@ 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 { @@ -2473,7 +2259,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 +2287,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 +2296,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 +2320,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 +2329,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,7 +2343,7 @@ 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 { @@ -2594,7 +2374,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 +2402,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 +2411,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 +2435,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 +2444,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,7 +2458,7 @@ 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 { @@ -2715,7 +2489,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 +2517,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 +2526,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 +2550,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 +2569,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,7 +2580,7 @@ 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 { @@ -2840,7 +2611,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 +2639,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 +2648,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 +2672,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 +2681,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 +2703,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 +2722,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,7 +2733,7 @@ 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 { @@ -2999,7 +2764,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 +2792,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 +2801,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 +2825,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 +2845,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,7 +2856,7 @@ 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 { @@ -3125,7 +2887,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 +2915,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 +2924,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 +2948,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 +2957,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 +2979,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 +2988,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 +3010,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 +3029,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,7 +3040,7 @@ 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 { @@ -3318,7 +3071,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 +3099,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 +3108,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 +3132,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 +3152,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 +3171,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 +3190,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,7 +3201,7 @@ 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 { @@ -3470,7 +3220,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 +3251,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 +3271,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", fileDescriptor_gcpb_ee1b49db8cc69fdc) } + +var fileDescriptor_gcpb_ee1b49db8cc69fdc = []byte{ + // 750 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xda, 0x4a, + 0x14, 0xc6, 0x18, 0x12, 0x7c, 0x48, 0x88, 0x33, 0x97, 0x44, 0x84, 0x5c, 0xb8, 0xb9, 0x4e, 0x54, + 0x45, 0x4d, 0x4b, 0x25, 0xfa, 0x04, 0x84, 0x12, 0xe2, 0x42, 0x30, 0x32, 0x4e, 0xba, 0xb4, 0x88, + 0x3d, 0x71, 0x2c, 0x52, 0xec, 0x7a, 0x0c, 0x11, 0x8f, 0xd0, 0x45, 0xf7, 0xdd, 0x74, 0xdf, 0x37, + 0xe8, 0x2b, 0x74, 0xd9, 0x65, 0x17, 0x5d, 0x54, 0xe9, 0x3b, 0x74, 0x5d, 0x79, 0x06, 0x13, 0xfe, + 0x55, 0x45, 0xca, 0x8a, 0x99, 0xf3, 0xcd, 0x9c, 0xef, 0x3b, 0xdf, 0x1c, 0x1f, 0x00, 0x2c, 0xc3, + 0xbd, 0x2c, 0xb8, 0x9e, 0xe3, 0x3b, 0x28, 0x16, 0xac, 0xb3, 0x69, 0xcb, 0xb1, 0x1c, 0x1a, 0x78, + 0x11, 0xac, 0x18, 0x96, 0xdd, 0xf0, 0x7a, 0xc4, 0xa7, 0x4b, 0x16, 0x90, 0x6a, 0xb0, 0xae, 0xe2, + 0x77, 0x3d, 0x4c, 0xfc, 0x53, 0xdc, 0x36, 0xb1, 0x87, 0x72, 0x00, 0xc6, 0x4d, 0x8f, 0xf8, 0xd8, + 0xd3, 0x6d, 0x33, 0xc3, 0xed, 0x71, 0x87, 0x31, 0x55, 0x18, 0x46, 0x64, 0x13, 0xed, 0x82, 0x40, + 0x70, 0xd7, 0x64, 0x68, 0x94, 0xa2, 0x09, 0x16, 0x90, 0x4d, 0x49, 0x85, 0x94, 0x8a, 0x89, 0xe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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 e104042632..6de9c9a79a 100644 --- a/pkg/import_kvpb/import_kvpb.pb.go +++ b/pkg/import_kvpb/import_kvpb.pb.go @@ -4,18 +4,18 @@ 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" + + 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 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type Mutation_OP int32 @@ -38,7 +38,6 @@ const ( var Mutation_OP_name = map[int32]string{ 0: "Put", } - var Mutation_OP_value = map[string]int32{ "Put": 0, } @@ -46,14 +45,13 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []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"` + Request *import_sstpb.SwitchModeRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -63,7 +61,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{0} } func (m *SwitchModeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,15 +71,15 @@ func (m *SwitchModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_SwitchModeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SwitchModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeRequest.Merge(dst, src) } func (m *SwitchModeRequest) XXX_Size() int { return m.Size() @@ -116,7 +114,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{1} } func (m *SwitchModeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -126,15 +124,15 @@ func (m *SwitchModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_SwitchModeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SwitchModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeResponse.Merge(dst, src) } func (m *SwitchModeResponse) XXX_Size() int { return m.Size() @@ -157,7 +155,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{2} } func (m *OpenEngineRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -167,15 +165,15 @@ func (m *OpenEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_OpenEngineRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *OpenEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenEngineRequest.Merge(dst, src) } func (m *OpenEngineRequest) XXX_Size() int { return m.Size() @@ -210,7 +208,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{3} } func (m *OpenEngineResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -220,15 +218,15 @@ func (m *OpenEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_OpenEngineResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *OpenEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenEngineResponse.Merge(dst, src) } func (m *OpenEngineResponse) XXX_Size() int { return m.Size() @@ -250,7 +248,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{4} } func (m *WriteHead) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -260,15 +258,15 @@ func (m *WriteHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_WriteHead.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteHead) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteHead.Merge(dst, src) } func (m *WriteHead) XXX_Size() int { return m.Size() @@ -299,7 +297,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{5} } func (m *Mutation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -309,15 +307,15 @@ func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Mutation.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Mutation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mutation.Merge(dst, src) } func (m *Mutation) XXX_Size() int { return m.Size() @@ -351,7 +349,7 @@ 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"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -361,7 +359,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{6} } func (m *WriteBatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -371,15 +369,15 @@ func (m *WriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_WriteBatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteBatch.Merge(dst, src) } func (m *WriteBatch) XXX_Size() int { return m.Size() @@ -418,7 +416,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{7} } func (m *WriteEngineRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -428,15 +426,15 @@ func (m *WriteEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_WriteEngineRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteEngineRequest.Merge(dst, src) } func (m *WriteEngineRequest) XXX_Size() int { return m.Size() @@ -454,10 +452,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,14 +482,80 @@ 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), } } +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 + } + case nil: + default: + return fmt.Errorf("WriteEngineRequest.Chunk has unexpected type %T", x) + } + return nil +} + +func _WriteEngineRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*WriteEngineRequest) + switch tag { + case 1: // chunk.head + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WriteHead) + err := b.DecodeMessage(msg) + m.Chunk = &WriteEngineRequest_Head{msg} + return true, err + case 2: // chunk.batch + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WriteBatch) + err := b.DecodeMessage(msg) + m.Chunk = &WriteEngineRequest_Batch{msg} + return true, err + default: + return false, nil + } +} + +func _WriteEngineRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*WriteEngineRequest) + // chunk + switch x := m.Chunk.(type) { + case *WriteEngineRequest_Head: + s := proto.Size(x.Head) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *WriteEngineRequest_Batch: + s := proto.Size(x.Batch) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + 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"` @@ -504,7 +568,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{8} } func (m *KVPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -514,15 +578,15 @@ func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KVPair.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KVPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KVPair.Merge(dst, src) } func (m *KVPair) XXX_Size() int { return m.Size() @@ -550,7 +614,7 @@ 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"` + Pairs []*KVPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -560,7 +624,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{9} } func (m *WriteEngineV3Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -570,15 +634,15 @@ func (m *WriteEngineV3Request) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_WriteEngineV3Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteEngineV3Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteEngineV3Request.Merge(dst, src) } func (m *WriteEngineV3Request) XXX_Size() int { return m.Size() @@ -611,7 +675,7 @@ func (m *WriteEngineV3Request) GetPairs() []*KVPair { } type WriteEngineResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -621,7 +685,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{10} } func (m *WriteEngineResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -631,15 +695,15 @@ func (m *WriteEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_WriteEngineResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteEngineResponse.Merge(dst, src) } func (m *WriteEngineResponse) XXX_Size() int { return m.Size() @@ -668,7 +732,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{11} } func (m *CloseEngineRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -678,15 +742,15 @@ func (m *CloseEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CloseEngineRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CloseEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloseEngineRequest.Merge(dst, src) } func (m *CloseEngineRequest) XXX_Size() int { return m.Size() @@ -705,7 +769,7 @@ func (m *CloseEngineRequest) GetUuid() []byte { } type CloseEngineResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -715,7 +779,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{12} } func (m *CloseEngineResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -725,15 +789,15 @@ func (m *CloseEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CloseEngineResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CloseEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloseEngineResponse.Merge(dst, src) } func (m *CloseEngineResponse) XXX_Size() int { return m.Size() @@ -763,7 +827,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{13} } func (m *ImportEngineRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -773,15 +837,15 @@ func (m *ImportEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ImportEngineRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ImportEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportEngineRequest.Merge(dst, src) } func (m *ImportEngineRequest) XXX_Size() int { return m.Size() @@ -816,7 +880,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{14} } func (m *ImportEngineResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -826,15 +890,15 @@ func (m *ImportEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_ImportEngineResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ImportEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportEngineResponse.Merge(dst, src) } func (m *ImportEngineResponse) XXX_Size() int { return m.Size() @@ -856,7 +920,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{15} } func (m *CleanupEngineRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -866,15 +930,15 @@ func (m *CleanupEngineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_CleanupEngineRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CleanupEngineRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupEngineRequest.Merge(dst, src) } func (m *CleanupEngineRequest) XXX_Size() int { return m.Size() @@ -902,7 +966,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{16} } func (m *CleanupEngineResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -912,15 +976,15 @@ func (m *CleanupEngineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_CleanupEngineResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CleanupEngineResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupEngineResponse.Merge(dst, src) } func (m *CleanupEngineResponse) XXX_Size() int { return m.Size() @@ -933,7 +997,7 @@ 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"` + Request *import_sstpb.CompactRequest `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -943,7 +1007,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{17} } func (m *CompactClusterRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -953,15 +1017,15 @@ func (m *CompactClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_CompactClusterRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactClusterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactClusterRequest.Merge(dst, src) } func (m *CompactClusterRequest) XXX_Size() int { return m.Size() @@ -996,7 +1060,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{18} } func (m *CompactClusterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1006,15 +1070,15 @@ func (m *CompactClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_CompactClusterResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactClusterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactClusterResponse.Merge(dst, src) } func (m *CompactClusterResponse) XXX_Size() int { return m.Size() @@ -1035,7 +1099,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{19} } func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1045,15 +1109,15 @@ func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_GetVersionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVersionRequest.Merge(dst, src) } func (m *GetVersionRequest) XXX_Size() int { return m.Size() @@ -1076,7 +1140,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{20} } func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1086,15 +1150,15 @@ func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetVersionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVersionResponse.Merge(dst, src) } func (m *GetVersionResponse) XXX_Size() int { return m.Size() @@ -1129,7 +1193,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{21} } func (m *GetMetricsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1139,15 +1203,15 @@ func (m *GetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_GetMetricsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMetricsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsRequest.Merge(dst, src) } func (m *GetMetricsRequest) XXX_Size() int { return m.Size() @@ -1169,7 +1233,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{22} } func (m *GetMetricsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1179,15 +1243,15 @@ func (m *GetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetMetricsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMetricsResponse.Merge(dst, src) } func (m *GetMetricsResponse) XXX_Size() int { return m.Size() @@ -1210,7 +1274,7 @@ 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"` + EngineNotFound *Error_EngineNotFound `protobuf:"bytes,1,opt,name=engine_not_found,json=engineNotFound" json:"engine_not_found,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1220,7 +1284,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{23} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1230,15 +1294,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -1267,7 +1331,7 @@ 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} + return fileDescriptor_import_kvpb_7450c87f07581b0e, []int{23, 0} } func (m *Error_EngineNotFound) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1277,15 +1341,15 @@ func (m *Error_EngineNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_Error_EngineNotFound.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *Error_EngineNotFound) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error_EngineNotFound.Merge(m, src) +func (dst *Error_EngineNotFound) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error_EngineNotFound.Merge(dst, src) } func (m *Error_EngineNotFound) XXX_Size() int { return m.Size() @@ -1304,7 +1368,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 +1393,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, 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x9e, 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 +1404,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) @@ -1551,7 +1552,8 @@ func (c *importKVClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, 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 +1577,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 +1823,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 +1831,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1868,20 @@ 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) + i += 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 +1889,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1922,20 @@ 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) + i += 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 +1943,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1970,37 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2008,37 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2046,55 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2102,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2135,43 @@ 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.Uuid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) + } + if m.CommitTs != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) } if 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-- + 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 } } - if m.CommitTs != 0 { - i = encodeVarintImportKvpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x10 - } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintImportKvpb(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2179,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2210,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2237,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2268,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2301,20 @@ 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) + i += 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 +2322,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2349,20 @@ 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) + i += 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 +2370,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2407,20 @@ 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) + i += 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 +2428,20 @@ 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) + i += 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 +2449,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2482,20 @@ 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) + i += 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 +2503,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2530,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2561,32 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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) @@ -2840,9 +2604,6 @@ func (m *SwitchModeRequest) Size() (n int) { } func (m *SwitchModeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -2852,9 +2613,6 @@ func (m *SwitchModeResponse) Size() (n int) { } func (m *OpenEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -2872,9 +2630,6 @@ func (m *OpenEngineRequest) Size() (n int) { } func (m *OpenEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -2884,9 +2639,6 @@ func (m *OpenEngineResponse) Size() (n int) { } func (m *WriteHead) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -2900,9 +2652,6 @@ func (m *WriteHead) Size() (n int) { } func (m *Mutation) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Op != 0 { @@ -2923,9 +2672,6 @@ func (m *Mutation) Size() (n int) { } func (m *WriteBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CommitTs != 0 { @@ -2944,9 +2690,6 @@ func (m *WriteBatch) Size() (n int) { } func (m *WriteEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -2959,9 +2702,6 @@ func (m *WriteEngineRequest) Size() (n int) { } func (m *WriteEngineRequest_Head) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Head != nil { @@ -2971,9 +2711,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 +2720,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) @@ -3003,9 +2737,6 @@ func (m *KVPair) Size() (n int) { } func (m *WriteEngineV3Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -3028,9 +2759,6 @@ func (m *WriteEngineV3Request) Size() (n int) { } func (m *WriteEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3044,9 +2772,6 @@ func (m *WriteEngineResponse) Size() (n int) { } func (m *CloseEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -3060,9 +2785,6 @@ func (m *CloseEngineRequest) Size() (n int) { } func (m *CloseEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3076,9 +2798,6 @@ func (m *CloseEngineResponse) Size() (n int) { } func (m *ImportEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -3096,9 +2815,6 @@ func (m *ImportEngineRequest) Size() (n int) { } func (m *ImportEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -3108,9 +2824,6 @@ func (m *ImportEngineResponse) Size() (n int) { } func (m *CleanupEngineRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -3124,9 +2837,6 @@ func (m *CleanupEngineRequest) Size() (n int) { } func (m *CleanupEngineResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -3136,9 +2846,6 @@ func (m *CleanupEngineResponse) Size() (n int) { } func (m *CompactClusterRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.PdAddr) @@ -3156,9 +2863,6 @@ func (m *CompactClusterRequest) Size() (n int) { } func (m *CompactClusterResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -3168,9 +2872,6 @@ func (m *CompactClusterResponse) Size() (n int) { } func (m *GetVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -3180,9 +2881,6 @@ func (m *GetVersionRequest) Size() (n int) { } func (m *GetVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Version) @@ -3200,9 +2898,6 @@ func (m *GetVersionResponse) Size() (n int) { } func (m *GetMetricsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -3212,9 +2907,6 @@ func (m *GetMetricsRequest) Size() (n int) { } func (m *GetMetricsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Prometheus) @@ -3228,9 +2920,6 @@ func (m *GetMetricsResponse) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.EngineNotFound != nil { @@ -3244,9 +2933,6 @@ func (m *Error) Size() (n int) { } func (m *Error_EngineNotFound) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -3260,7 +2946,14 @@ func (m *Error_EngineNotFound) Size() (n int) { } 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 +2973,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 +3001,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 +3011,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 +3030,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 +3039,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,7 +3055,7 @@ 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 { @@ -3399,7 +3086,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,7 +3106,7 @@ 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 { @@ -3450,7 +3137,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 +3165,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 +3174,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 +3196,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 +3205,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,7 +3219,7 @@ 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 { @@ -3569,7 +3250,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,7 +3270,7 @@ 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 { @@ -3620,7 +3301,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 +3329,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 +3338,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,7 +3352,7 @@ 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 { @@ -3705,7 +3383,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 +3411,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 +3430,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 +3439,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 +3461,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 +3470,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,7 +3484,7 @@ 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 { @@ -3843,7 +3515,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 +3543,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 +3562,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 +3571,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,7 +3585,7 @@ 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 { @@ -3947,7 +3616,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 +3644,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 +3653,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 +3676,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 +3685,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,7 +3700,7 @@ 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 { @@ -4068,7 +3731,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 +3759,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 +3768,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 +3790,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 +3799,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,7 +3813,7 @@ 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 { @@ -4187,7 +3844,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 +3872,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 +3881,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 +3903,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 +3922,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 +3931,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,7 +3945,7 @@ 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 { @@ -4325,7 +3976,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 +4004,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 +4013,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,7 +4029,7 @@ 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 { @@ -4412,7 +4060,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 +4088,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 +4097,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,7 +4111,7 @@ 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 { @@ -4497,7 +4142,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 +4170,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 +4179,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,7 +4195,7 @@ 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 { @@ -4584,7 +4226,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 +4254,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 +4263,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 +4285,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 +4295,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,7 +4306,7 @@ 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 { @@ -4701,7 +4337,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,7 +4357,7 @@ 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 { @@ -4752,7 +4388,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 +4416,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 +4425,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,7 +4439,7 @@ 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 { @@ -4837,7 +4470,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,7 +4490,7 @@ 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 { @@ -4888,7 +4521,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 +4549,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 +4559,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 +4578,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 +4587,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,7 +4603,7 @@ 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 { @@ -5007,7 +4634,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,7 +4654,7 @@ 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 { @@ -5058,7 +4685,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,7 +4705,7 @@ 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 { @@ -5109,7 +4736,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 +4764,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 +4774,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 +4793,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 +4803,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,7 +4814,7 @@ 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 { @@ -5224,7 +4845,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,7 +4865,7 @@ 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 { @@ -5275,7 +4896,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 +4924,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 +4934,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,7 +4945,7 @@ 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 { @@ -5358,7 +4976,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 +5004,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 +5013,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,7 +5029,7 @@ 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 { @@ -5445,7 +5060,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 +5088,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 +5097,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,7 +5111,7 @@ 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 { @@ -5518,7 +5130,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 +5161,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 +5181,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", fileDescriptor_import_kvpb_7450c87f07581b0e) } + +var fileDescriptor_import_kvpb_7450c87f07581b0e = []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, 0x9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x83, 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 8c077a5d8c..a385af2651 100644 --- a/pkg/import_sstpb/import_sstpb.pb.go +++ b/pkg/import_sstpb/import_sstpb.pb.go @@ -4,21 +4,24 @@ 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" + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + 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. @@ -30,7 +33,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type SwitchMode int32 @@ -43,7 +46,6 @@ var SwitchMode_name = map[int32]string{ 0: "Normal", 1: "Import", } - var SwitchMode_value = map[string]int32{ "Normal": 0, "Import": 1, @@ -52,9 +54,8 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{0} } type DownloadRequestType int32 @@ -70,7 +71,6 @@ var DownloadRequestType_name = map[int32]string{ 0: "Legacy", 1: "Keyspace", } - var DownloadRequestType_value = map[string]int32{ "Legacy": 0, "Keyspace": 1, @@ -79,9 +79,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 fileDescriptor_import_sstpb_0d73fb2e55915072, []int{1} } type Pair_OP int32 @@ -95,7 +94,6 @@ var Pair_OP_name = map[int32]string{ 0: "Put", 1: "Delete", } - var Pair_OP_value = map[string]int32{ "Put": 0, "Delete": 1, @@ -104,9 +102,8 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{21, 0} } type SuspendImportRPCRequest struct { @@ -127,7 +124,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{0} } func (m *SuspendImportRPCRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -137,15 +134,15 @@ func (m *SuspendImportRPCRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_SuspendImportRPCRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SuspendImportRPCRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SuspendImportRPCRequest.Merge(dst, src) } func (m *SuspendImportRPCRequest) XXX_Size() int { return m.Size() @@ -189,7 +186,7 @@ func (m *SuspendImportRPCResponse) Reset() { *m = SuspendImportRPCRespon func (m *SuspendImportRPCResponse) String() string { return proto.CompactTextString(m) } func (*SuspendImportRPCResponse) ProtoMessage() {} func (*SuspendImportRPCResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{1} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{1} } func (m *SuspendImportRPCResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -199,15 +196,15 @@ func (m *SuspendImportRPCResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_SuspendImportRPCResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SuspendImportRPCResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SuspendImportRPCResponse.Merge(dst, src) } func (m *SuspendImportRPCResponse) XXX_Size() int { return m.Size() @@ -227,7 +224,7 @@ 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"` + Ranges []*Range `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -237,7 +234,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{2} } func (m *SwitchModeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -247,15 +244,15 @@ func (m *SwitchModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_SwitchModeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SwitchModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeRequest.Merge(dst, src) } func (m *SwitchModeRequest) XXX_Size() int { return m.Size() @@ -290,7 +287,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{3} } func (m *SwitchModeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -300,15 +297,15 @@ func (m *SwitchModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_SwitchModeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SwitchModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchModeResponse.Merge(dst, src) } func (m *SwitchModeResponse) XXX_Size() int { return m.Size() @@ -329,7 +326,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{4} } func (m *GetModeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -339,15 +336,15 @@ func (m *GetModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_GetModeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetModeRequest.Merge(dst, src) } func (m *GetModeRequest) XXX_Size() int { return m.Size() @@ -369,7 +366,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{5} } func (m *GetModeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -379,15 +376,15 @@ func (m *GetModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_GetModeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetModeResponse.Merge(dst, src) } func (m *GetModeResponse) XXX_Size() int { return m.Size() @@ -417,7 +414,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{6} } func (m *Range) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -427,15 +424,15 @@ func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Range.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Range) XXX_Merge(src proto.Message) { + xxx_messageInfo_Range.Merge(dst, src) } func (m *Range) XXX_Size() int { return m.Size() @@ -462,12 +459,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. @@ -486,7 +483,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{7} } func (m *SSTMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -496,15 +493,15 @@ func (m *SSTMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SSTMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SSTMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_SSTMeta.Merge(dst, src) } func (m *SSTMeta) XXX_Size() int { return m.Size() @@ -614,7 +611,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{8} } func (m *RewriteRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -624,15 +621,15 @@ func (m *RewriteRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_RewriteRule.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RewriteRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_RewriteRule.Merge(dst, src) } func (m *RewriteRule) XXX_Size() int { return m.Size() @@ -678,7 +675,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{9} } func (m *UploadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -688,15 +685,15 @@ func (m *UploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_UploadRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UploadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadRequest.Merge(dst, src) } func (m *UploadRequest) XXX_Size() int { return m.Size() @@ -714,10 +711,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() {} @@ -744,14 +741,76 @@ 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), } } +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 + } + 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 _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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *UploadRequest_Data: + n += 1 // tag and wire + 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 +} + type UploadResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -762,7 +821,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{10} } func (m *UploadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -772,15 +831,15 @@ func (m *UploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_UploadResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *UploadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadResponse.Merge(m, src) +func (dst *UploadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadResponse.Merge(dst, src) } func (m *UploadResponse) XXX_Size() int { return m.Size() @@ -792,8 +851,8 @@ func (m *UploadResponse) XXX_DiscardUnknown() { var xxx_messageInfo_UploadResponse proto.InternalMessageInfo 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"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Sst *SSTMeta `protobuf:"bytes,2,opt,name=sst" json:"sst,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -803,7 +862,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{11} } func (m *IngestRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -813,15 +872,15 @@ func (m *IngestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_IngestRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IngestRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestRequest.Merge(dst, src) } func (m *IngestRequest) XXX_Size() int { return m.Size() @@ -847,8 +906,8 @@ 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"` + Context *kvrpcpb.Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` + Ssts []*SSTMeta `protobuf:"bytes,2,rep,name=ssts" json:"ssts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -858,7 +917,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{12} } func (m *MultiIngestRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -868,15 +927,15 @@ func (m *MultiIngestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_MultiIngestRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MultiIngestRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MultiIngestRequest.Merge(dst, src) } func (m *MultiIngestRequest) XXX_Size() int { return m.Size() @@ -902,7 +961,7 @@ func (m *MultiIngestRequest) GetSsts() []*SSTMeta { } type IngestResponse struct { - Error *errorpb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *errorpb.Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -912,7 +971,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{13} } func (m *IngestResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -922,15 +981,15 @@ func (m *IngestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_IngestResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IngestResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestResponse.Merge(dst, src) } func (m *IngestResponse) XXX_Size() int { return m.Size() @@ -952,9 +1011,9 @@ 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"` + 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,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -964,7 +1023,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{14} } func (m *CompactRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -974,15 +1033,15 @@ func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CompactRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactRequest.Merge(dst, src) } func (m *CompactRequest) XXX_Size() int { return m.Size() @@ -1024,7 +1083,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{15} } func (m *CompactResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1034,15 +1093,15 @@ func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_CompactResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactResponse.Merge(dst, src) } func (m *CompactResponse) XXX_Size() int { return m.Size() @@ -1056,15 +1115,15 @@ var xxx_messageInfo_CompactResponse proto.InternalMessageInfo type DownloadRequest struct { // Map represents the map of . // We'll generate all SSTMeta into one SST File. - Ssts map[string]*SSTMeta `protobuf:"bytes,1,rep,name=ssts,proto3" json:"ssts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // resolved_ts is used to merge related SST Files. - ResolvedTs uint64 `protobuf:"varint,3,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + 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"` + // watermark is used to merge related SST Files. + Watermark uint64 `protobuf:"varint,3,opt,name=watermark,proto3" json:"watermark,omitempty"` // The SST meta used to identify the downloaded file. // Must be the same among all nodes in the same Raft group. // 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. @@ -1079,18 +1138,18 @@ 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 *brpb.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 *brpb.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"` + Context *kvrpcpb.Context `protobuf:"bytes,19,opt,name=context" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1100,7 +1159,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{16} } func (m *DownloadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1110,15 +1169,15 @@ func (m *DownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_DownloadRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DownloadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadRequest.Merge(dst, src) } func (m *DownloadRequest) XXX_Size() int { return m.Size() @@ -1136,9 +1195,9 @@ func (m *DownloadRequest) GetSsts() map[string]*SSTMeta { return nil } -func (m *DownloadRequest) GetResolvedTs() uint64 { +func (m *DownloadRequest) GetWatermark() uint64 { if m != nil { - return m.ResolvedTs + return m.Watermark } return 0 } @@ -1211,7 +1270,7 @@ 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"` + StoreError *errorpb.Error `protobuf:"bytes,2,opt,name=store_error,json=storeError" json:"store_error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1221,7 +1280,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{17} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1231,15 +1290,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -1267,12 +1326,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"` @@ -1280,7 +1339,7 @@ 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"` + Ssts []*SSTMeta `protobuf:"bytes,6,rep,name=ssts" json:"ssts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1290,7 +1349,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{18} } func (m *DownloadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1300,15 +1359,15 @@ func (m *DownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_DownloadResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DownloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DownloadResponse.Merge(dst, src) } func (m *DownloadResponse) XXX_Size() int { return m.Size() @@ -1373,7 +1432,7 @@ func (m *SetDownloadSpeedLimitRequest) Reset() { *m = SetDownloadSpeedLi func (m *SetDownloadSpeedLimitRequest) String() string { return proto.CompactTextString(m) } func (*SetDownloadSpeedLimitRequest) ProtoMessage() {} func (*SetDownloadSpeedLimitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{19} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{19} } func (m *SetDownloadSpeedLimitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1383,15 +1442,15 @@ func (m *SetDownloadSpeedLimitRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_SetDownloadSpeedLimitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SetDownloadSpeedLimitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetDownloadSpeedLimitRequest.Merge(dst, src) } func (m *SetDownloadSpeedLimitRequest) XXX_Size() int { return m.Size() @@ -1419,7 +1478,7 @@ func (m *SetDownloadSpeedLimitResponse) Reset() { *m = SetDownloadSpeedL func (m *SetDownloadSpeedLimitResponse) String() string { return proto.CompactTextString(m) } func (*SetDownloadSpeedLimitResponse) ProtoMessage() {} func (*SetDownloadSpeedLimitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4d076b7935cfab6b, []int{20} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{20} } func (m *SetDownloadSpeedLimitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1429,15 +1488,15 @@ func (m *SetDownloadSpeedLimitResponse) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_SetDownloadSpeedLimitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SetDownloadSpeedLimitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetDownloadSpeedLimitResponse.Merge(dst, src) } func (m *SetDownloadSpeedLimitResponse) XXX_Size() int { return m.Size() @@ -1461,7 +1520,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{21} } func (m *Pair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1471,15 +1530,15 @@ func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Pair.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Pair) XXX_Merge(src proto.Message) { + xxx_messageInfo_Pair.Merge(dst, src) } func (m *Pair) XXX_Size() int { return m.Size() @@ -1513,7 +1572,7 @@ 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"` + Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs" json:"pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1523,7 +1582,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{22} } func (m *WriteBatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1533,15 +1592,15 @@ func (m *WriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_WriteBatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteBatch.Merge(dst, src) } func (m *WriteBatch) XXX_Size() int { return m.Size() @@ -1571,7 +1630,7 @@ type WriteRequest struct { // *WriteRequest_Meta // *WriteRequest_Batch Chunk isWriteRequest_Chunk `protobuf_oneof:"chunk"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1581,7 +1640,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{23} } func (m *WriteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1591,15 +1650,15 @@ func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteRequest.Merge(dst, src) } func (m *WriteRequest) XXX_Size() int { return m.Size() @@ -1617,10 +1676,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() {} @@ -1654,17 +1713,83 @@ 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), } } +func _WriteRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*WriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *WriteRequest_Meta: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Meta); err != nil { + return err + } + case *WriteRequest_Batch: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Batch); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("WriteRequest.Chunk has unexpected type %T", x) + } + return nil +} + +func _WriteRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*WriteRequest) + switch tag { + case 1: // chunk.meta + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SSTMeta) + err := b.DecodeMessage(msg) + m.Chunk = &WriteRequest_Meta{msg} + return true, err + case 2: // chunk.batch + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WriteBatch) + err := b.DecodeMessage(msg) + m.Chunk = &WriteRequest_Batch{msg} + return true, err + default: + return false, nil + } +} + +func _WriteRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*WriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *WriteRequest_Meta: + s := proto.Size(x.Meta) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *WriteRequest_Batch: + s := proto.Size(x.Batch) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + 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"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas" json:"metas,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1674,7 +1799,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{24} } func (m *WriteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1684,15 +1809,15 @@ func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *WriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteResponse.Merge(m, src) +func (dst *WriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteResponse.Merge(dst, src) } func (m *WriteResponse) XXX_Size() int { return m.Size() @@ -1719,7 +1844,7 @@ 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. @@ -1735,7 +1860,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{25} } func (m *RawWriteBatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1745,15 +1870,15 @@ func (m *RawWriteBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RawWriteBatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawWriteBatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawWriteBatch.Merge(dst, src) } func (m *RawWriteBatch) XXX_Size() int { return m.Size() @@ -1790,7 +1915,7 @@ type RawWriteRequest struct { // *RawWriteRequest_Meta // *RawWriteRequest_Batch Chunk isRawWriteRequest_Chunk `protobuf_oneof:"chunk"` - Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,3,opt,name=context" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1800,7 +1925,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{26} } func (m *RawWriteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1810,15 +1935,15 @@ func (m *RawWriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_RawWriteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawWriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawWriteRequest.Merge(dst, src) } func (m *RawWriteRequest) XXX_Size() int { return m.Size() @@ -1836,10 +1961,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() {} @@ -1873,17 +1998,83 @@ 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), } } +func _RawWriteRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RawWriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *RawWriteRequest_Meta: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Meta); err != nil { + return err + } + case *RawWriteRequest_Batch: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Batch); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RawWriteRequest.Chunk has unexpected type %T", x) + } + return nil +} + +func _RawWriteRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RawWriteRequest) + switch tag { + case 1: // chunk.meta + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SSTMeta) + err := b.DecodeMessage(msg) + m.Chunk = &RawWriteRequest_Meta{msg} + return true, err + case 2: // chunk.batch + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(RawWriteBatch) + err := b.DecodeMessage(msg) + m.Chunk = &RawWriteRequest_Batch{msg} + return true, err + default: + return false, nil + } +} + +func _RawWriteRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RawWriteRequest) + // chunk + switch x := m.Chunk.(type) { + case *RawWriteRequest_Meta: + s := proto.Size(x.Meta) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *RawWriteRequest_Batch: + s := proto.Size(x.Batch) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + 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"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Metas []*SSTMeta `protobuf:"bytes,2,rep,name=metas" json:"metas,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1893,7 +2084,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{27} } func (m *RawWriteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1903,15 +2094,15 @@ func (m *RawWriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_RawWriteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *RawWriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawWriteResponse.Merge(m, src) +func (dst *RawWriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawWriteResponse.Merge(dst, src) } func (m *RawWriteResponse) XXX_Size() int { return m.Size() @@ -1937,7 +2128,7 @@ 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. @@ -1953,7 +2144,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{28} } func (m *DuplicateDetectRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1963,15 +2154,15 @@ func (m *DuplicateDetectRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_DuplicateDetectRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DuplicateDetectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DuplicateDetectRequest.Merge(dst, src) } func (m *DuplicateDetectRequest) XXX_Size() int { return m.Size() @@ -2030,7 +2221,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{29} } func (m *KvPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2040,15 +2231,15 @@ func (m *KvPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KvPair.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KvPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KvPair.Merge(dst, src) } func (m *KvPair) XXX_Size() int { return m.Size() @@ -2081,8 +2272,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: // [ @@ -2093,7 +2284,7 @@ type DuplicateDetectResponse struct { // {key: "key2", value: "value22", commit_ts: 1002}, // ... // ] - Pairs []*KvPair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"` + Pairs []*KvPair `protobuf:"bytes,3,rep,name=pairs" json:"pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2103,7 +2294,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{30} } func (m *DuplicateDetectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2113,15 +2304,15 @@ func (m *DuplicateDetectResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_DuplicateDetectResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *DuplicateDetectResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DuplicateDetectResponse.Merge(m, src) +func (dst *DuplicateDetectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DuplicateDetectResponse.Merge(dst, src) } func (m *DuplicateDetectResponse) XXX_Size() int { return m.Size() @@ -2189,7 +2380,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{31} } func (m *KVMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2199,15 +2390,15 @@ func (m *KVMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KVMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KVMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_KVMeta.Merge(dst, src) } func (m *KVMeta) XXX_Size() int { return m.Size() @@ -2311,8 +2502,8 @@ func (m *KVMeta) GetCompressionType() brpb.CompressionType { 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: // @@ -2324,17 +2515,17 @@ 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"` + StorageBackend *brpb.StorageBackend `protobuf:"bytes,3,opt,name=storage_backend,json=storageBackend" json:"storage_backend,omitempty"` // context represents region info and it used to build raft commands. - Context *kvrpcpb.Context `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` + Context *kvrpcpb.Context `protobuf:"bytes,4,opt,name=context" json:"context,omitempty"` // cipher_info is used to decrypt kv file when download file. - CipherInfo *brpb.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo,proto3" json:"cipher_info,omitempty"` + CipherInfo *brpb.CipherInfo `protobuf:"bytes,11,opt,name=cipher_info,json=cipherInfo" json:"cipher_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2344,7 +2535,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{32} } func (m *ApplyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2354,15 +2545,15 @@ func (m *ApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ApplyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ApplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplyRequest.Merge(dst, src) } func (m *ApplyRequest) XXX_Size() int { return m.Size() @@ -2432,8 +2623,8 @@ func (m *ApplyRequest) GetCipherInfo() *brpb.CipherInfo { type ApplyResponse struct { // The actual key range (after rewrite) of the downloaded file. The range is // inclusive in both ends. - Range Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range"` - Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + Range Range `protobuf:"bytes,1,opt,name=range" json:"range"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2443,7 +2634,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{33} } func (m *ApplyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2453,15 +2644,15 @@ func (m *ApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_ApplyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ApplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplyResponse.Merge(dst, src) } func (m *ApplyResponse) XXX_Size() int { return m.Size() @@ -2498,7 +2689,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{34} } func (m *ClearRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2508,15 +2699,15 @@ func (m *ClearRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ClearRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ClearRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearRequest.Merge(dst, src) } func (m *ClearRequest) XXX_Size() int { return m.Size() @@ -2535,7 +2726,7 @@ func (m *ClearRequest) GetPrefix() string { } type ClearResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2545,7 +2736,7 @@ 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} + return fileDescriptor_import_sstpb_0d73fb2e55915072, []int{35} } func (m *ClearResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2555,15 +2746,15 @@ func (m *ClearResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_ClearResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ClearResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearResponse.Merge(dst, src) } func (m *ClearResponse) XXX_Size() int { return m.Size() @@ -2582,9 +2773,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") @@ -2622,150 +2810,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{ - // 2197 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 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 0xa8, 0x8e, 0x28, 0x63, 0xb6, 0xaa, 0x8c, 0xba, 0x19, 0x0f, 0xc9, 0x23, 0x68, 0x08, 0x97, - 0x52, 0x4b, 0x16, 0x5c, 0x61, 0x6e, 0xc1, 0x01, 0x8a, 0xe0, 0xb7, 0xf1, 0x5e, 0x83, 0xce, 0x6c, - 0xff, 0xaa, 0x60, 0x1f, 0x2d, 0xae, 0x3b, 0x95, 0x28, 0xaa, 0xfa, 0xae, 0x43, 0xcd, 0x65, 0x16, - 0x1d, 0x85, 0x7c, 0x8a, 0x6b, 0x62, 0xd8, 0x76, 0xc5, 0x50, 0xd4, 0xb0, 0xb4, 0xa5, 0x38, 0x4f, - 0x57, 0x1a, 0x01, 0x66, 0x87, 0x6a, 0x69, 0xfe, 0xa1, 0x5a, 0xce, 0x1c, 0xaa, 0x31, 0x24, 0x55, - 0x16, 0x43, 0xd2, 0x33, 0xb8, 0xd9, 0xa7, 0x3c, 0xde, 0x66, 0x3f, 0xa4, 0x74, 0xf0, 0xd2, 0x1d, - 0xb9, 0x09, 0xce, 0xdc, 0x81, 0x06, 0x13, 0x44, 0xcb, 0x13, 0x54, 0xdc, 0x75, 0xc9, 0x04, 0x96, - 0xc8, 0x19, 0x77, 0xe0, 0xd6, 0x39, 0x0a, 0x14, 0x38, 0x84, 0x50, 0x3a, 0xb0, 0xdd, 0x28, 0x1d, - 0x70, 0x5d, 0x06, 0x7c, 0x39, 0x1d, 0x70, 0x5d, 0x45, 0x96, 0x7c, 0x0e, 0x85, 0x40, 0x1e, 0x40, - 0xad, 0xbc, 0xe9, 0x42, 0xcf, 0xc6, 0x9b, 0x03, 0xb3, 0x10, 0x84, 0xc6, 0x75, 0x28, 0xbc, 0x39, - 0x20, 0x55, 0x28, 0x1e, 0x8c, 0x79, 0x67, 0x89, 0x00, 0x54, 0x76, 0xa8, 0x47, 0x39, 0xed, 0x68, - 0x46, 0x1f, 0xe0, 0x57, 0xa2, 0x44, 0xb7, 0x6c, 0xee, 0x9c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Mode", 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. @@ -2776,9 +2823,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) @@ -3041,7 +3087,8 @@ func (c *importSSTClient) SuspendImportRPC(ctx context.Context, in *SuspendImpor 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) @@ -3072,53 +3119,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) } @@ -3475,7 +3475,7 @@ var _ImportSST_serviceDesc = grpc.ServiceDesc{ func (m *SuspendImportRPCRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3483,48 +3483,41 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3532,36 +3525,30 @@ 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3569,45 +3556,37 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3615,26 +3594,20 @@ 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) + i += 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 } @@ -3642,26 +3615,20 @@ 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) + i += 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 } @@ -3669,31 +3636,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3701,40 +3662,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3742,111 +3695,98 @@ 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 + i++ } - if len(m.CfName) > 0 { - i -= len(m.CfName) - copy(dAtA[i:], m.CfName) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CfName))) - i-- - dAtA[i] = 0x2a + if m.TotalKvs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalKvs)) } - if m.Length != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x20 + if m.TotalBytes != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.TotalBytes)) } - if m.Crc32 != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) - i-- - dAtA[i] = 0x18 + if m.ApiVersion != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.ApiVersion)) } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if len(m.CipherIv) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.CipherIv))) + i += copy(dAtA[i:], m.CipherIv) } - 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3854,45 +3794,37 @@ 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 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 { + dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.NewKeyPrefix))) + i += copy(dAtA[i:], m.NewKeyPrefix) } if m.NewTimestamp != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.NewTimestamp)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.NewTimestamp)) } - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.OldKeyPrefix) > 0 { - i -= len(m.OldKeyPrefix) - copy(dAtA[i:], m.OldKeyPrefix) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.OldKeyPrefix))) - i-- - dAtA[i] = 0xa - } - return 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 } @@ -3900,72 +3832,51 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3973,26 +3884,20 @@ 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) + i += 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 } @@ -4000,50 +3905,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4051,52 +3946,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -4104,38 +3989,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += 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 } @@ -4143,55 +4020,45 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4199,26 +4066,20 @@ 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) + i += 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 } @@ -4226,150 +4087,134 @@ 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.Watermark != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Watermark)) } - 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 + i++ } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - { - size, err := m.RewriteRule.MarshalToSizedBuffer(dAtA[:i]) + if 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 += n16 } - 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 - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4377,45 +4222,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4423,82 +4259,70 @@ 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) + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Range.Size())) + n18, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - if len(m.Ssts) > 0 { - for iNdEx := len(m.Ssts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ssts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 + i += n18 + if m.IsEmpty { + dAtA[i] = 0x10 + i++ + if m.IsEmpty { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - if m.Length != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x28 + if m.Error != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Error.Size())) + n19, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } if m.Crc32 != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) - i-- dAtA[i] = 0x20 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Crc32)) } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + 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 -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.IsEmpty { - i-- - if m.IsEmpty { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + i += n } - i-- - dAtA[i] = 0x10 } - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + 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 } @@ -4506,31 +4330,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4538,26 +4356,20 @@ 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) + i += 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 } @@ -4565,45 +4377,37 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4611,45 +4415,37 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4657,89 +4453,65 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4747,52 +4519,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -4800,50 +4562,42 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4851,89 +4605,65 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -4941,52 +4671,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -4994,67 +4714,57 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5062,45 +4772,37 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -5108,64 +4810,52 @@ func (m *DuplicateDetectResponse) Marshal() (dAtA []byte, err error) { } func (m *DuplicateDetectResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DuplicateDetectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Pairs) > 0 { - for iNdEx := len(m.Pairs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Pairs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RegionError.Size())) + n31, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n31 } if m.KeyError != nil { - { - size, err := m.KeyError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.KeyError.Size())) + 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -5173,106 +4863,95 @@ func (m *KVMeta) Marshal() (dAtA []byte, err error) { } func (m *KVMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KVMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CompressionType != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.CompressionType)) - i-- - dAtA[i] = 0x68 + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if m.RangeLength != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeLength)) - i-- - dAtA[i] = 0x60 + if m.Length != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) } - if m.RangeOffset != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeOffset)) - i-- - dAtA[i] = 0x58 + if len(m.Cf) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if m.StartTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x50 + if m.IsDelete { + dAtA[i] = 0x20 + i++ + if m.IsDelete { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if m.StartSnapshotTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartSnapshotTs)) - i-- - dAtA[i] = 0x48 + if m.RestoreTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RestoreTs)) } - if len(m.Sha256) > 0 { - i -= len(m.Sha256) - copy(dAtA[i:], m.Sha256) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Sha256))) - i-- - dAtA[i] = 0x42 + if len(m.StartKey) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) + i += copy(dAtA[i:], m.StartKey) } if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) - i-- dAtA[i] = 0x3a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x32 + if len(m.Sha256) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Sha256))) + i += copy(dAtA[i:], m.Sha256) } - if m.RestoreTs != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.RestoreTs)) - i-- - dAtA[i] = 0x28 + if m.StartSnapshotTs != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartSnapshotTs)) } - if m.IsDelete { - i-- - if m.IsDelete { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 + if m.StartTs != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StartTs)) } - if len(m.Cf) > 0 { - i -= len(m.Cf) - copy(dAtA[i:], m.Cf) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Cf))) - i-- - dAtA[i] = 0x1a + if m.RangeOffset != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeOffset)) } - if m.Length != 0 { - i = encodeVarintImportSstpb(dAtA, i, uint64(m.Length)) - i-- - dAtA[i] = 0x10 + if m.RangeLength != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RangeLength)) } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if m.CompressionType != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CompressionType)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5280,119 +4959,98 @@ func (m *ApplyRequest) Marshal() (dAtA []byte, err error) { } func (m *ApplyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.RewriteRules) > 0 { - for iNdEx := len(m.RewriteRules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RewriteRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a + if m.Meta != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.Meta.Size())) + n33, err := m.Meta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n33 } - if len(m.Metas) > 0 { - for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 + dAtA[i] = 0x12 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.RewriteRule.Size())) + n34, err := m.RewriteRule.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 + if m.StorageBackend != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.StorageBackend.Size())) + n35, err := m.StorageBackend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n35 } - 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())) + n36, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x5a + i += n36 } if len(m.StorageCacheId) > 0 { - i -= len(m.StorageCacheId) - copy(dAtA[i:], m.StorageCacheId) - i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) - i-- dAtA[i] = 0x2a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(len(m.StorageCacheId))) + i += copy(dAtA[i:], m.StorageCacheId) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + if m.CipherInfo != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(m.CipherInfo.Size())) + n37, err := m.CipherInfo.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n37 } - if m.StorageBackend != nil { - { - size, err := m.StorageBackend.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Metas) > 0 { + for _, msg := range m.Metas { + dAtA[i] = 0x62 + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - { - size, err := m.RewriteRule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + i += n } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0x12 - if m.Meta != nil { - { - size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if len(m.RewriteRules) > 0 { + for _, msg := range m.RewriteRules { + dAtA[i] = 0x6a + i++ + i = encodeVarintImportSstpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -5400,48 +5058,38 @@ 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())) + n38, err := m.Range.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n38 if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = 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())) + n39, err := m.Error.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintImportSstpb(dAtA, i, uint64(size)) + i += n39 } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -5449,33 +5097,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5483,49 +5124,36 @@ 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())) + n40, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -5545,9 +5173,6 @@ func (m *SuspendImportRPCRequest) Size() (n int) { } func (m *SuspendImportRPCResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AlreadySuspended { @@ -5560,9 +5185,6 @@ func (m *SuspendImportRPCResponse) Size() (n int) { } func (m *SwitchModeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Mode != 0 { @@ -5581,9 +5203,6 @@ func (m *SwitchModeRequest) Size() (n int) { } func (m *SwitchModeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5593,9 +5212,6 @@ func (m *SwitchModeResponse) Size() (n int) { } func (m *GetModeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5605,9 +5221,6 @@ func (m *GetModeRequest) Size() (n int) { } func (m *GetModeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Mode != 0 { @@ -5620,9 +5233,6 @@ func (m *GetModeResponse) Size() (n int) { } func (m *Range) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Start) @@ -5640,9 +5250,6 @@ func (m *Range) Size() (n int) { } func (m *SSTMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Uuid) @@ -5693,9 +5300,6 @@ func (m *SSTMeta) Size() (n int) { } func (m *RewriteRule) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.OldKeyPrefix) @@ -5716,9 +5320,6 @@ func (m *RewriteRule) Size() (n int) { } func (m *UploadRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -5731,9 +5332,6 @@ func (m *UploadRequest) Size() (n int) { } func (m *UploadRequest_Meta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -5743,9 +5341,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 { @@ -5755,9 +5350,6 @@ 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 { @@ -5767,9 +5359,6 @@ func (m *UploadResponse) Size() (n int) { } func (m *IngestRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -5787,9 +5376,6 @@ func (m *IngestRequest) Size() (n int) { } func (m *MultiIngestRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -5809,9 +5395,6 @@ func (m *MultiIngestRequest) Size() (n int) { } func (m *IngestResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -5825,9 +5408,6 @@ func (m *IngestResponse) Size() (n int) { } func (m *CompactRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Range != nil { @@ -5848,9 +5428,6 @@ func (m *CompactRequest) Size() (n int) { } func (m *CompactResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5860,9 +5437,6 @@ func (m *CompactResponse) Size() (n int) { } func (m *DownloadRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Ssts) > 0 { @@ -5880,8 +5454,8 @@ func (m *DownloadRequest) Size() (n int) { } l = m.Sst.Size() n += 1 + l + sovImportSstpb(uint64(l)) - if m.ResolvedTs != 0 { - n += 1 + sovImportSstpb(uint64(m.ResolvedTs)) + if m.Watermark != 0 { + n += 1 + sovImportSstpb(uint64(m.Watermark)) } l = len(m.Name) if l > 0 { @@ -5918,9 +5492,6 @@ func (m *DownloadRequest) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Message) @@ -5938,9 +5509,6 @@ func (m *Error) Size() (n int) { } func (m *DownloadResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Range.Size() @@ -5971,9 +5539,6 @@ func (m *DownloadResponse) Size() (n int) { } func (m *SetDownloadSpeedLimitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SpeedLimit != 0 { @@ -5986,9 +5551,6 @@ func (m *SetDownloadSpeedLimitRequest) Size() (n int) { } func (m *SetDownloadSpeedLimitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -5998,9 +5560,6 @@ func (m *SetDownloadSpeedLimitResponse) Size() (n int) { } func (m *Pair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -6021,9 +5580,6 @@ func (m *Pair) Size() (n int) { } func (m *WriteBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CommitTs != 0 { @@ -6042,9 +5598,6 @@ func (m *WriteBatch) Size() (n int) { } func (m *WriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -6061,9 +5614,6 @@ func (m *WriteRequest) Size() (n int) { } func (m *WriteRequest_Meta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -6073,9 +5623,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 { @@ -6085,9 +5632,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 { @@ -6107,9 +5651,6 @@ func (m *WriteResponse) Size() (n int) { } func (m *RawWriteBatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Ttl != 0 { @@ -6131,9 +5672,6 @@ func (m *RawWriteBatch) Size() (n int) { } func (m *RawWriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Chunk != nil { @@ -6150,9 +5688,6 @@ func (m *RawWriteRequest) Size() (n int) { } func (m *RawWriteRequest_Meta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -6162,9 +5697,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 { @@ -6174,9 +5706,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 { @@ -6196,9 +5725,6 @@ func (m *RawWriteResponse) Size() (n int) { } func (m *DuplicateDetectRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -6226,9 +5752,6 @@ func (m *DuplicateDetectRequest) Size() (n int) { } func (m *KvPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -6249,9 +5772,6 @@ func (m *KvPair) Size() (n int) { } func (m *DuplicateDetectResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -6275,9 +5795,6 @@ func (m *DuplicateDetectResponse) Size() (n int) { } func (m *KVMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -6331,9 +5848,6 @@ func (m *KVMeta) Size() (n int) { } func (m *ApplyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -6377,9 +5891,6 @@ func (m *ApplyRequest) Size() (n int) { } func (m *ApplyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Range.Size() @@ -6395,9 +5906,6 @@ func (m *ApplyResponse) Size() (n int) { } func (m *ClearRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Prefix) @@ -6411,9 +5919,6 @@ func (m *ClearRequest) Size() (n int) { } func (m *ClearResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -6427,7 +5932,14 @@ func (m *ClearResponse) Size() (n int) { } 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)))) @@ -6447,7 +5959,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 } @@ -6475,7 +5987,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 } @@ -6495,7 +6007,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 } @@ -6514,7 +6026,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 } @@ -6524,9 +6036,6 @@ func (m *SuspendImportRPCRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6538,7 +6047,7 @@ 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 { @@ -6569,7 +6078,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 } @@ -6597,7 +6106,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 } @@ -6609,7 +6118,7 @@ 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 { @@ -6640,7 +6149,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 } @@ -6668,7 +6177,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 } @@ -6687,7 +6196,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 } @@ -6696,9 +6205,6 @@ func (m *SwitchModeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6713,7 +6219,7 @@ 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 { @@ -6744,7 +6250,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 } @@ -6764,7 +6270,7 @@ 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 { @@ -6795,7 +6301,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 } @@ -6815,7 +6321,7 @@ 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 { @@ -6846,7 +6352,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 } @@ -6874,7 +6380,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 } @@ -6885,7 +6391,7 @@ 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 { @@ -6916,7 +6422,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 } @@ -6944,7 +6450,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 } @@ -6953,9 +6459,6 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6978,7 +6481,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 } @@ -6987,9 +6490,6 @@ func (m *Range) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7004,7 +6504,7 @@ 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 { @@ -7035,7 +6535,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 } @@ -7063,7 +6563,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 } @@ -7072,9 +6572,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7097,7 +6594,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 } @@ -7106,9 +6603,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7133,7 +6627,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 } @@ -7152,7 +6646,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 } @@ -7171,7 +6665,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 } @@ -7181,9 +6675,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7203,7 +6694,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 } @@ -7222,7 +6713,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 } @@ -7231,9 +6722,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7258,7 +6746,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 } @@ -7278,7 +6766,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 } @@ -7297,7 +6785,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 } @@ -7316,7 +6804,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 } @@ -7335,7 +6823,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 } @@ -7344,9 +6832,6 @@ func (m *SSTMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7361,7 +6846,7 @@ 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 { @@ -7392,7 +6877,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 } @@ -7420,7 +6905,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 } @@ -7429,9 +6914,6 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7454,7 +6936,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 } @@ -7463,9 +6945,6 @@ func (m *RewriteRule) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7488,7 +6967,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 } @@ -7499,7 +6978,7 @@ 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 { @@ -7530,7 +7009,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 } @@ -7558,7 +7037,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 } @@ -7567,9 +7046,6 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7593,7 +7069,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 } @@ -7602,9 +7078,6 @@ func (m *UploadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7618,7 +7091,7 @@ 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 { @@ -7649,7 +7122,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 } @@ -7669,7 +7142,7 @@ 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 { @@ -7700,7 +7173,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 } @@ -7728,7 +7201,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 } @@ -7737,9 +7210,6 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7764,7 +7234,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 } @@ -7773,9 +7243,6 @@ func (m *IngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7792,7 +7259,7 @@ 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 { @@ -7823,7 +7290,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 } @@ -7851,7 +7318,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 } @@ -7860,9 +7327,6 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7887,7 +7351,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 } @@ -7896,9 +7360,6 @@ func (m *MultiIngestRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7913,7 +7374,7 @@ 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 { @@ -7944,7 +7405,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 } @@ -7972,7 +7433,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 } @@ -7981,9 +7442,6 @@ func (m *IngestResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8000,7 +7458,7 @@ 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 { @@ -8031,7 +7489,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 } @@ -8059,7 +7517,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 } @@ -8068,9 +7526,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8095,7 +7550,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 } @@ -8114,7 +7569,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 } @@ -8123,9 +7578,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8142,7 +7594,7 @@ 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 { @@ -8173,7 +7625,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 } @@ -8193,7 +7645,7 @@ 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 { @@ -8224,7 +7676,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 } @@ -8252,7 +7704,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 } @@ -8261,9 +7713,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8284,7 +7733,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 } @@ -8301,7 +7750,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 } @@ -8311,9 +7760,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthImportSstpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -8330,7 +7776,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 } @@ -8339,7 +7785,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthImportSstpb } if postmsgIndex > l { @@ -8356,7 +7802,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 { @@ -8381,7 +7827,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 } @@ -8390,9 +7836,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8402,9 +7845,9 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Watermark", wireType) } - m.ResolvedTs = 0 + m.Watermark = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowImportSstpb @@ -8414,7 +7857,7 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.Watermark |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -8433,7 +7876,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 } @@ -8443,9 +7886,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8465,7 +7905,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 } @@ -8474,9 +7914,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8498,7 +7935,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 } @@ -8507,9 +7944,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8534,7 +7968,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 } @@ -8554,7 +7988,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 } @@ -8563,9 +7997,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8590,7 +8021,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 } @@ -8600,9 +8031,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8622,7 +8050,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 } @@ -8641,7 +8069,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 } @@ -8650,9 +8078,6 @@ func (m *DownloadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8669,7 +8094,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) > l { @@ -8700,7 +8125,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 } @@ -8728,7 +8153,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 } @@ -8738,9 +8163,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8760,7 +8182,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 } @@ -8769,9 +8191,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8788,7 +8207,7 @@ 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 { @@ -8819,7 +8238,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 } @@ -8847,7 +8266,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 } @@ -8856,9 +8275,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8880,7 +8296,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 } @@ -8900,7 +8316,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 } @@ -8909,9 +8325,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8936,7 +8349,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 } @@ -8955,7 +8368,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 } @@ -8974,7 +8387,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 } @@ -8983,9 +8396,6 @@ func (m *DownloadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9000,7 +8410,7 @@ 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 { @@ -9031,7 +8441,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 } @@ -9059,7 +8469,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 } @@ -9070,7 +8480,7 @@ 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 { @@ -9101,7 +8511,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 } @@ -9121,7 +8531,7 @@ 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 { @@ -9152,7 +8562,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 } @@ -9180,7 +8590,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 } @@ -9189,9 +8599,6 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9214,7 +8621,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 } @@ -9223,9 +8630,6 @@ func (m *Pair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9248,7 +8652,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 } @@ -9259,7 +8663,7 @@ 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 { @@ -9290,7 +8694,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 } @@ -9318,7 +8722,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 } @@ -9337,7 +8741,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 } @@ -9346,9 +8750,6 @@ func (m *WriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9363,7 +8764,7 @@ 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 { @@ -9394,7 +8795,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 } @@ -9422,7 +8823,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 } @@ -9431,9 +8832,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9457,7 +8855,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 } @@ -9466,9 +8864,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9492,7 +8887,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 } @@ -9501,9 +8896,6 @@ func (m *WriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9520,7 +8912,7 @@ 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 { @@ -9551,7 +8943,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 } @@ -9579,7 +8971,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 } @@ -9588,9 +8980,6 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9615,7 +9004,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 } @@ -9624,9 +9013,6 @@ func (m *WriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9641,7 +9027,7 @@ 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 { @@ -9672,7 +9058,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 } @@ -9700,7 +9086,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 } @@ -9719,7 +9105,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 } @@ -9728,9 +9114,6 @@ func (m *RawWriteBatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9753,7 +9136,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 } @@ -9764,7 +9147,7 @@ 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 { @@ -9795,7 +9178,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 } @@ -9823,7 +9206,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 } @@ -9832,9 +9215,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9858,7 +9238,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 } @@ -9867,9 +9247,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9893,7 +9270,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 } @@ -9902,9 +9279,6 @@ func (m *RawWriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9921,7 +9295,7 @@ 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 { @@ -9952,7 +9326,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 } @@ -9980,7 +9354,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 } @@ -9989,9 +9363,6 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10016,7 +9387,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 } @@ -10025,9 +9396,6 @@ func (m *RawWriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10042,7 +9410,7 @@ 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 { @@ -10073,7 +9441,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 } @@ -10101,7 +9469,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 } @@ -10110,9 +9478,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10137,7 +9502,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 } @@ -10146,9 +9511,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10171,7 +9533,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 } @@ -10180,9 +9542,6 @@ func (m *DuplicateDetectRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10205,7 +9564,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 } @@ -10225,7 +9584,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 } @@ -10236,7 +9595,7 @@ 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 { @@ -10267,7 +9626,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 } @@ -10295,7 +9654,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 } @@ -10304,9 +9663,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10329,7 +9685,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 } @@ -10338,9 +9694,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10363,7 +9716,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 } @@ -10374,7 +9727,7 @@ 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 { @@ -10405,7 +9758,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 } @@ -10433,7 +9786,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 } @@ -10442,9 +9795,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10469,7 +9819,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 } @@ -10478,9 +9828,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10505,7 +9852,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 } @@ -10514,9 +9861,6 @@ func (m *DuplicateDetectResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10531,7 +9875,7 @@ 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 { @@ -10562,7 +9906,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 } @@ -10590,7 +9934,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 } @@ -10600,9 +9944,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10622,7 +9963,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 } @@ -10641,7 +9982,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 } @@ -10651,9 +9992,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10673,7 +10011,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 } @@ -10693,7 +10031,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 } @@ -10712,7 +10050,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 } @@ -10721,9 +10059,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10746,7 +10081,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 } @@ -10755,9 +10090,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10780,7 +10112,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 } @@ -10789,9 +10121,6 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10814,7 +10143,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 } @@ -10833,7 +10162,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 } @@ -10852,7 +10181,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 } @@ -10871,7 +10200,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 } @@ -10890,7 +10219,7 @@ func (m *KVMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompressionType |= brpb.CompressionType(b&0x7F) << shift + m.CompressionType |= (brpb.CompressionType(b) & 0x7F) << shift if b < 0x80 { break } @@ -10901,7 +10230,7 @@ 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 { @@ -10932,7 +10261,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 } @@ -10960,7 +10289,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 } @@ -10969,9 +10298,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10996,7 +10322,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 } @@ -11005,9 +10331,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11029,7 +10352,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 } @@ -11038,9 +10361,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11065,7 +10385,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 } @@ -11074,9 +10394,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11101,7 +10418,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 } @@ -11111,9 +10428,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11133,7 +10447,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 } @@ -11142,9 +10456,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11169,7 +10480,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 } @@ -11178,9 +10489,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11203,7 +10511,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 } @@ -11212,9 +10520,6 @@ func (m *ApplyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11229,7 +10534,7 @@ 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 { @@ -11260,7 +10565,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 } @@ -11288,7 +10593,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 } @@ -11297,9 +10602,6 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11321,7 +10623,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 } @@ -11330,9 +10632,6 @@ func (m *ApplyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11349,7 +10648,7 @@ 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 { @@ -11380,7 +10679,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 } @@ -11408,7 +10707,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 } @@ -11418,9 +10717,6 @@ func (m *ClearRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11432,7 +10728,7 @@ 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 { @@ -11463,7 +10759,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 } @@ -11491,7 +10787,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 } @@ -11500,9 +10796,6 @@ func (m *ClearResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthImportSstpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthImportSstpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11519,7 +10812,7 @@ 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 { @@ -11538,7 +10831,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 { @@ -11570,8 +10862,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 { @@ -11588,34 +10882,197 @@ 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", fileDescriptor_import_sstpb_0d73fb2e55915072) } + +var fileDescriptor_import_sstpb_0d73fb2e55915072 = []byte{ + // 2196 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x73, 0xdb, 0xc8, + 0x11, 0x16, 0xf8, 0x66, 0x13, 0x7c, 0x78, 0xac, 0x95, 0x61, 0xfa, 0xb9, 0x88, 0xd7, 0x2b, 0x4b, + 0x89, 0xec, 0xc8, 0x1b, 0x57, 0x6a, 0x53, 0x15, 0xd7, 0xea, 0x11, 0x5b, 0x91, 0x1f, 0x0a, 0xa8, + 0x38, 0x87, 0x1c, 0x50, 0x10, 0x38, 0x92, 0x10, 0x82, 0x00, 0x82, 0x19, 0x52, 0xe6, 0x25, 0x3f, + 0x20, 0xb7, 0xdc, 0x72, 0x4b, 0x25, 0xa7, 0xad, 0x9c, 0x73, 0xc9, 0x3f, 0xd8, 0x63, 0x8e, 0x39, + 0xa5, 0x52, 0xce, 0xdf, 0x48, 0x55, 0x52, 0xd3, 0x33, 0x20, 0x01, 0x98, 0x12, 0x6d, 0xd5, 0xee, + 0x89, 0x33, 0x3d, 0x8d, 0xee, 0x9e, 0xee, 0xe9, 0x6f, 0xba, 0x87, 0x40, 0xbc, 0x61, 0x14, 0xc6, + 0xdc, 0x66, 0x8c, 0x47, 0x47, 0x1b, 0x51, 0x1c, 0xf2, 0x90, 0xe8, 0x69, 0x5a, 0x57, 0x1f, 0x52, + 0xee, 0x24, 0x6b, 0xdd, 0x26, 0x8d, 0xe3, 0x30, 0x9e, 0x4d, 0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9b, 0x77, 0xb7, 0xb5, 0x7f, 0xbc, 0xbb, 0xad, 0xfd, 0xfb, 0xdd, 0x6d, 0xed, 0x8f, + 0xff, 0xb9, 0xbd, 0x04, 0x9d, 0x30, 0x3e, 0xd9, 0xe0, 0xde, 0x60, 0xbc, 0x31, 0x18, 0xe3, 0x5f, + 0x0d, 0x47, 0x15, 0xfc, 0x79, 0xfc, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x5f, 0xf8, 0x88, + 0xf4, 0x18, 0x00, 0x00, +} diff --git a/pkg/keyspacepb/keyspacepb.pb.go b/pkg/keyspacepb/keyspacepb.pb.go index 4ac64771bd..50b236bc55 100644 --- a/pkg/keyspacepb/keyspacepb.pb.go +++ b/pkg/keyspacepb/keyspacepb.pb.go @@ -4,18 +4,18 @@ 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" + + 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 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type KeyspaceState int32 @@ -44,7 +44,6 @@ var KeyspaceState_name = map[int32]string{ 2: "ARCHIVED", 3: "TOMBSTONE", } - var KeyspaceState_value = map[string]int32{ "ENABLED": 0, "DISABLED": 1, @@ -55,9 +54,8 @@ 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} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{0} } type KeyspaceMeta struct { @@ -66,7 +64,7 @@ type KeyspaceMeta struct { 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -76,7 +74,7 @@ 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} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{0} } func (m *KeyspaceMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,15 +84,15 @@ func (m *KeyspaceMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_KeyspaceMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyspaceMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyspaceMeta.Merge(dst, src) } func (m *KeyspaceMeta) XXX_Size() int { return m.Size() @@ -148,7 +146,7 @@ func (m *KeyspaceMeta) GetConfig() map[string]string { } type LoadKeyspaceRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -159,7 +157,7 @@ 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} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{1} } func (m *LoadKeyspaceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -169,15 +167,15 @@ func (m *LoadKeyspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_LoadKeyspaceRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LoadKeyspaceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadKeyspaceRequest.Merge(dst, src) } func (m *LoadKeyspaceRequest) XXX_Size() int { return m.Size() @@ -203,8 +201,8 @@ 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"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -214,7 +212,7 @@ 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} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{2} } func (m *LoadKeyspaceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -224,15 +222,15 @@ func (m *LoadKeyspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_LoadKeyspaceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LoadKeyspaceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadKeyspaceResponse.Merge(dst, src) } func (m *LoadKeyspaceResponse) XXX_Size() int { return m.Size() @@ -258,7 +256,7 @@ func (m *LoadKeyspaceResponse) GetKeyspace() *KeyspaceMeta { } type WatchKeyspacesRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -268,7 +266,7 @@ 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} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{3} } func (m *WatchKeyspacesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -278,15 +276,15 @@ func (m *WatchKeyspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_WatchKeyspacesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchKeyspacesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchKeyspacesRequest.Merge(dst, src) } func (m *WatchKeyspacesRequest) XXX_Size() int { return m.Size() @@ -305,8 +303,8 @@ 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"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces" json:"keyspaces,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -316,7 +314,7 @@ 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 fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{4} } func (m *WatchKeyspacesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -326,15 +324,15 @@ func (m *WatchKeyspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_WatchKeyspacesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchKeyspacesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchKeyspacesResponse.Merge(dst, src) } func (m *WatchKeyspacesResponse) XXX_Size() int { return m.Size() @@ -360,7 +358,7 @@ func (m *WatchKeyspacesResponse) GetKeyspaces() []*KeyspaceMeta { } type UpdateKeyspaceStateRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -372,7 +370,7 @@ func (m *UpdateKeyspaceStateRequest) Reset() { *m = UpdateKeyspaceStateR func (m *UpdateKeyspaceStateRequest) String() string { return proto.CompactTextString(m) } func (*UpdateKeyspaceStateRequest) ProtoMessage() {} func (*UpdateKeyspaceStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{5} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{5} } func (m *UpdateKeyspaceStateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -382,15 +380,15 @@ func (m *UpdateKeyspaceStateRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_UpdateKeyspaceStateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateKeyspaceStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateKeyspaceStateRequest.Merge(dst, src) } func (m *UpdateKeyspaceStateRequest) XXX_Size() int { return m.Size() @@ -423,8 +421,8 @@ 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"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspace *KeyspaceMeta `protobuf:"bytes,2,opt,name=keyspace" json:"keyspace,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -434,7 +432,7 @@ func (m *UpdateKeyspaceStateResponse) Reset() { *m = UpdateKeyspaceState func (m *UpdateKeyspaceStateResponse) String() string { return proto.CompactTextString(m) } func (*UpdateKeyspaceStateResponse) ProtoMessage() {} func (*UpdateKeyspaceStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_5c5d91f3e5071166, []int{6} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{6} } func (m *UpdateKeyspaceStateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -444,15 +442,15 @@ func (m *UpdateKeyspaceStateResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_UpdateKeyspaceStateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *UpdateKeyspaceStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateKeyspaceStateResponse.Merge(m, src) +func (dst *UpdateKeyspaceStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateKeyspaceStateResponse.Merge(dst, src) } func (m *UpdateKeyspaceStateResponse) XXX_Size() int { return m.Size() @@ -478,7 +476,7 @@ func (m *UpdateKeyspaceStateResponse) GetKeyspace() *KeyspaceMeta { } type GetAllKeyspacesRequest struct { - Header *pdpb.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -490,7 +488,7 @@ 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} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{7} } func (m *GetAllKeyspacesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -500,15 +498,15 @@ func (m *GetAllKeyspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_GetAllKeyspacesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllKeyspacesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllKeyspacesRequest.Merge(dst, src) } func (m *GetAllKeyspacesRequest) XXX_Size() int { return m.Size() @@ -541,8 +539,8 @@ 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"` + Header *pdpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Keyspaces []*KeyspaceMeta `protobuf:"bytes,2,rep,name=keyspaces" json:"keyspaces,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -552,7 +550,7 @@ 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} + return fileDescriptor_keyspacepb_f0be7b63ff329f0c, []int{8} } func (m *GetAllKeyspacesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -562,15 +560,15 @@ func (m *GetAllKeyspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_GetAllKeyspacesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllKeyspacesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllKeyspacesResponse.Merge(dst, src) } func (m *GetAllKeyspacesResponse) XXX_Size() int { return m.Size() @@ -596,7 +594,6 @@ 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") @@ -607,53 +604,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, 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, 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 +615,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. @@ -743,7 +693,8 @@ func (c *keyspaceClient) GetAllKeyspaces(ctx context.Context, in *GetAllKeyspace 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 +704,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 +813,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 +821,63 @@ 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 m.StateChangedAt != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(m.StateChangedAt)) } - 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 len(m.Config) > 0 { + for k, _ := range m.Config { + dAtA[i] = 0x3a + i++ + v := m.Config[k] + mapSize := 1 + len(k) + sovKeyspacepb(uint64(len(k))) + 1 + len(v) + sovKeyspacepb(uint64(len(v))) + i = encodeVarintKeyspacepb(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintKeyspacepb(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) + } } - if m.Id != 0 { - i = encodeVarintKeyspacepb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +885,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +922,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +963,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +994,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1037,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1078,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1119,40 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1160,48 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -1388,9 +1235,6 @@ func (m *KeyspaceMeta) Size() (n int) { } func (m *LoadKeyspaceRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1408,9 +1252,6 @@ func (m *LoadKeyspaceRequest) Size() (n int) { } func (m *LoadKeyspaceResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1428,9 +1269,6 @@ func (m *LoadKeyspaceResponse) Size() (n int) { } func (m *WatchKeyspacesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1444,9 +1282,6 @@ func (m *WatchKeyspacesRequest) Size() (n int) { } func (m *WatchKeyspacesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1466,9 +1301,6 @@ func (m *WatchKeyspacesResponse) Size() (n int) { } func (m *UpdateKeyspaceStateRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1488,9 +1320,6 @@ func (m *UpdateKeyspaceStateRequest) Size() (n int) { } func (m *UpdateKeyspaceStateResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1508,9 +1337,6 @@ func (m *UpdateKeyspaceStateResponse) Size() (n int) { } func (m *GetAllKeyspacesRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1530,9 +1356,6 @@ func (m *GetAllKeyspacesRequest) Size() (n int) { } func (m *GetAllKeyspacesResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1552,7 +1375,14 @@ func (m *GetAllKeyspacesResponse) Size() (n int) { } 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 +1402,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 +1430,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 +1449,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 +1459,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 +1478,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 +1497,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 +1516,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 +1535,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 +1544,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 +1564,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 +1581,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 +1591,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 +1607,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 +1617,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 +1628,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,7 +1645,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) > l { @@ -1858,7 +1676,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 +1704,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 +1713,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 +1737,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 +1747,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,7 +1758,7 @@ 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 { @@ -1977,7 +1789,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 +1817,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 +1826,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 +1850,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 +1859,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,7 +1875,7 @@ 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 { @@ -2100,7 +1906,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 +1934,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 +1943,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,7 +1959,7 @@ 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 { @@ -2187,7 +1990,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 +2018,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 +2027,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 +2051,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 +2060,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,7 +2074,7 @@ 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 { @@ -2308,7 +2105,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 +2133,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 +2142,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 +2166,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 +2185,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,7 +2196,7 @@ 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 { @@ -2433,7 +2227,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 +2255,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 +2264,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 +2288,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 +2297,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,7 +2313,7 @@ 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 { @@ -2556,7 +2344,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 +2372,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 +2381,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 +2405,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 +2424,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,7 +2435,7 @@ 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 { @@ -2681,7 +2466,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 +2494,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 +2503,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 +2527,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 +2536,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,7 +2550,7 @@ 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 { @@ -2790,7 +2569,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 +2600,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 +2620,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", fileDescriptor_keyspacepb_f0be7b63ff329f0c) } + +var fileDescriptor_keyspacepb_f0be7b63ff329f0c = []byte{ + // 643 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xee, 0xda, 0xfd, 0x49, 0x26, 0x4d, 0x6a, 0x6d, 0x43, 0x71, 0x8d, 0x08, 0xc6, 0xa0, 0x62, + 0x01, 0x72, 0x51, 0x40, 0x08, 0x10, 0x97, 0xb4, 0x89, 0xda, 0x8a, 0xfe, 0x48, 0x4e, 0x29, 0x07, + 0x90, 0xaa, 0x6d, 0xbc, 0x24, 0x56, 0xd2, 0xd8, 0xd8, 0xdb, 0x48, 0xe5, 0x00, 0x42, 0xe2, 0xc4, + 0x13, 0xf0, 0x02, 0x48, 0x3c, 0x0a, 0x47, 0x8e, 0x1c, 0x51, 0x78, 0x11, 0xe4, 0xb5, 0x9d, 0x3a, + 0xc1, 0x29, 0x22, 0x48, 0x3d, 0x65, 0x66, 0xf6, 0xdb, 0x6f, 0xe7, 0x9b, 0x9f, 0x18, 0xa4, 0x36, + 0x3d, 0xf5, 0x5d, 0xd2, 0xa0, 0xee, 0x91, 0xe1, 0x7a, 0x0e, 0x73, 0x30, 0x9c, 0x45, 0x14, 0x70, + 0xad, 0x38, 0xae, 0x14, 0x9b, 0x4e, 0xd3, 0xe1, 0xe6, 0x6a, 0x60, 0x45, 0xd1, 0x05, 0xef, 0xc4, + 0x67, 0xdc, 0x0c, 0x03, 0xda, 0x17, 0x01, 0xe6, 0x9f, 0x45, 0x0c, 0x3b, 0x94, 0x11, 0x5c, 0x00, + 0xc1, 0xb6, 0x64, 0xa4, 0x22, 0x3d, 0x6f, 0x0a, 0xb6, 0x85, 0x31, 0x4c, 0x77, 0xc9, 0x31, 0x95, + 0x05, 0x15, 0xe9, 0x59, 0x93, 0xdb, 0x78, 0x15, 0x66, 0x7c, 0x46, 0x18, 0x95, 0x45, 0x15, 0xe9, + 0x85, 0xf2, 0xb2, 0x91, 0xc8, 0x2a, 0x26, 0xab, 0x07, 0x00, 0x33, 0xc4, 0xe1, 0xab, 0x00, 0x0d, + 0x8f, 0x12, 0x46, 0xad, 0x43, 0x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, + 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 c4bd2f865a..e4dce09240 100644 --- a/pkg/kvrpcpb/kvrpcpb.pb.go +++ b/pkg/kvrpcpb/kvrpcpb.pb.go @@ -7,16 +7,21 @@ 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" + 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" + + github_com_pingcap_kvproto_pkg_sharedbytes "github.com/pingcap/kvproto/pkg/sharedbytes" ) // Reference imports to suppress errors if they are not otherwise used. @@ -28,7 +33,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 +55,6 @@ var PessimisticLockWakeUpMode_name = map[int32]string{ 0: "WakeUpModeNormal", 1: "WakeUpModeForceLock", } - var PessimisticLockWakeUpMode_value = map[string]int32{ "WakeUpModeNormal": 0, "WakeUpModeForceLock": 1, @@ -59,9 +63,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 fileDescriptor_kvrpcpb_abc33f417130e774, []int{0} } type PessimisticLockKeyResultType int32 @@ -77,7 +80,6 @@ var PessimisticLockKeyResultType_name = map[int32]string{ 1: "LockResultLockedWithConflict", 2: "LockResultFailed", } - var PessimisticLockKeyResultType_value = map[string]int32{ "LockResultNormal": 0, "LockResultLockedWithConflict": 1, @@ -87,9 +89,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 fileDescriptor_kvrpcpb_abc33f417130e774, []int{1} } // The API version the server and the client is using. @@ -154,7 +155,6 @@ var APIVersion_name = map[int32]string{ 1: "V1TTL", 2: "V2", } - var APIVersion_value = map[string]int32{ "V1": 0, "V1TTL": 1, @@ -164,9 +164,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{2} } type CommandPri int32 @@ -182,7 +181,6 @@ var CommandPri_name = map[int32]string{ 1: "Low", 2: "High", } - var CommandPri_value = map[string]int32{ "Normal": 0, "Low": 1, @@ -192,9 +190,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{3} } type IsolationLevel int32 @@ -210,7 +207,6 @@ var IsolationLevel_name = map[int32]string{ 1: "RC", 2: "RCCheckTS", } - var IsolationLevel_value = map[string]int32{ "SI": 0, "RC": 1, @@ -220,9 +216,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{4} } // Operation allowed info during each TiKV storage threshold. @@ -239,7 +234,6 @@ var DiskFullOpt_name = map[int32]string{ 1: "AllowedOnAlmostFull", 2: "AllowedOnAlreadyFull", } - var DiskFullOpt_value = map[string]int32{ "NotAllowedOnFull": 0, "AllowedOnAlmostFull": 1, @@ -249,9 +243,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{5} } type Op int32 @@ -276,7 +269,6 @@ var Op_name = map[int32]string{ 5: "PessimisticLock", 6: "CheckNotExists", } - var Op_value = map[string]int32{ "Put": 0, "Del": 1, @@ -290,9 +282,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{6} } type Assertion int32 @@ -308,7 +299,6 @@ var Assertion_name = map[int32]string{ 1: "Exist", 2: "NotExist", } - var Assertion_value = map[string]int32{ "None": 0, "Exist": 1, @@ -318,9 +308,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{7} } type AssertionLevel int32 @@ -339,7 +328,6 @@ var AssertionLevel_name = map[int32]string{ 1: "Fast", 2: "Strict", } - var AssertionLevel_value = map[string]int32{ "Off": 0, "Fast": 1, @@ -349,9 +337,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{8} } type Action int32 @@ -373,7 +360,6 @@ var Action_name = map[int32]string{ 4: "TTLExpirePessimisticRollback", 5: "LockNotExistDoNothing", } - var Action_value = map[string]int32{ "NoAction": 0, "TTLExpireRollback": 1, @@ -386,9 +372,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{9} } type ExtraOp int32 @@ -403,7 +388,6 @@ var ExtraOp_name = map[int32]string{ 0: "Noop", 1: "ReadOldValue", } - var ExtraOp_value = map[string]int32{ "Noop": 0, "ReadOldValue": 1, @@ -412,9 +396,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{10} } type ChecksumAlgorithm int32 @@ -426,7 +409,6 @@ const ( var ChecksumAlgorithm_name = map[int32]string{ 0: "Crc64_Xor", } - var ChecksumAlgorithm_value = map[string]int32{ "Crc64_Xor": 0, } @@ -434,9 +416,8 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{11} } // What kind of checks need to be performed for keys in a pessimistic transaction. @@ -456,7 +437,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 +446,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 fileDescriptor_kvrpcpb_abc33f417130e774, []int{4, 0} } type WriteConflict_Reason int32 @@ -490,7 +469,6 @@ var WriteConflict_Reason_name = map[int32]string{ 4: "RcCheckTs", 5: "LazyUniquenessCheck", } - var WriteConflict_Reason_value = map[string]int32{ "Unknown": 0, "Optimistic": 1, @@ -503,15 +481,14 @@ 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 fileDescriptor_kvrpcpb_abc33f417130e774, []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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -523,7 +500,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{0} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -533,15 +510,15 @@ func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(dst, src) } func (m *GetRequest) XXX_Size() int { return m.Size() @@ -576,15 +553,15 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,6,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -594,7 +571,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{1} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -604,15 +581,15 @@ func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(dst, src) } func (m *GetResponse) XXX_Size() int { return m.Size() @@ -661,7 +638,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"` @@ -684,7 +661,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{2} } func (m *ScanRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -694,15 +671,15 @@ func (m *ScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ScanRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanRequest.Merge(dst, src) } func (m *ScanRequest) XXX_Size() int { return m.Size() @@ -770,13 +747,13 @@ 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"` + Error *KeyError `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -786,7 +763,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{3} } func (m *ScanResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -796,15 +773,15 @@ func (m *ScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ScanResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanResponse.Merge(dst, src) } func (m *ScanResponse) XXX_Size() int { return m.Size() @@ -840,9 +817,9 @@ func (m *ScanResponse) GetError() *KeyError { // TiKV will write the data in a preliminary state. Data cannot be read until it has been committed. // The client should only commit a transaction once all prewrites succeed. type PrewriteRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // The data to be written to the database. - Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations,proto3" json:"mutations,omitempty"` + Mutations []*Mutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"` // The client picks one key to be primary (unrelated to the primary key concept in SQL). This // key's lock is the source of truth for the state of a transaction. All other locks due to a // transaction will point to the primary lock. @@ -854,7 +831,7 @@ type PrewriteRequest struct { SkipConstraintCheck bool `protobuf:"varint,6,opt,name=skip_constraint_check,json=skipConstraintCheck,proto3" json:"skip_constraint_check,omitempty"` // For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key. // Keys with deferred constraint checks are not locked. - PessimisticActions []PrewriteRequest_PessimisticAction `protobuf:"varint,7,rep,packed,name=pessimistic_actions,json=pessimisticActions,proto3,enum=kvrpcpb.PrewriteRequest_PessimisticAction" json:"pessimistic_actions,omitempty"` + PessimisticActions []PrewriteRequest_PessimisticAction `protobuf:"varint,7,rep,packed,name=pessimistic_actions,json=pessimisticActions,enum=kvrpcpb.PrewriteRequest_PessimisticAction" json:"pessimistic_actions,omitempty"` // How many keys this transaction involves in this region. TxnSize uint64 `protobuf:"varint,8,opt,name=txn_size,json=txnSize,proto3" json:"txn_size,omitempty"` // For pessimistic transactions only; used to check if a conflict lock is already committed. @@ -865,7 +842,7 @@ type PrewriteRequest struct { // When async commit is enabled, `secondaries` should be set as the key list of all secondary // locks if the request prewrites the primary lock. UseAsyncCommit bool `protobuf:"varint,11,opt,name=use_async_commit,json=useAsyncCommit,proto3" json:"use_async_commit,omitempty"` - Secondaries [][]byte `protobuf:"bytes,12,rep,name=secondaries,proto3" json:"secondaries,omitempty"` + Secondaries [][]byte `protobuf:"bytes,12,rep,name=secondaries" json:"secondaries,omitempty"` // When the transaction involves only one region, it's possible to commit the transaction // directly with 1PC protocol. TryOnePc bool `protobuf:"varint,13,opt,name=try_one_pc,json=tryOnePc,proto3" json:"try_one_pc,omitempty"` @@ -876,9 +853,9 @@ 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"` + TxnFileChunks []uint64 `protobuf:"varint,100,rep,packed,name=txn_file_chunks,json=txnFileChunks" json:"txn_file_chunks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -888,7 +865,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{4} } func (m *PrewriteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -898,15 +875,15 @@ func (m *PrewriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_PrewriteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrewriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteRequest.Merge(dst, src) } func (m *PrewriteRequest) XXX_Size() int { return m.Size() @@ -1051,7 +1028,7 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Reset() { *m = PrewriteR 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{4, 0} } func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1061,15 +1038,15 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Marshal(b []byte, determinis return xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrewriteRequest_ForUpdateTSConstraint) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteRequest_ForUpdateTSConstraint.Merge(dst, src) } func (m *PrewriteRequest_ForUpdateTSConstraint) XXX_Size() int { return m.Size() @@ -1095,8 +1072,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,7 +1083,7 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1116,7 +1093,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{5} } func (m *PrewriteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1126,15 +1103,15 @@ func (m *PrewriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_PrewriteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrewriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteResponse.Merge(dst, src) } func (m *PrewriteResponse) XXX_Size() int { return m.Size() @@ -1182,9 +1159,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"` @@ -1227,7 +1204,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{6} } func (m *PessimisticLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1237,15 +1214,15 @@ func (m *PessimisticLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_PessimisticLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PessimisticLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticLockRequest.Merge(dst, src) } func (m *PessimisticLockRequest) XXX_Size() int { return m.Size() @@ -1379,7 +1356,7 @@ func (m *PessimisticLockKeyResult) Reset() { *m = PessimisticLockKeyResu func (m *PessimisticLockKeyResult) String() string { return proto.CompactTextString(m) } func (*PessimisticLockKeyResult) ProtoMessage() {} func (*PessimisticLockKeyResult) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{7} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{7} } func (m *PessimisticLockKeyResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1389,15 +1366,15 @@ func (m *PessimisticLockKeyResult) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_PessimisticLockKeyResult.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PessimisticLockKeyResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticLockKeyResult.Merge(dst, src) } func (m *PessimisticLockKeyResult) XXX_Size() int { return m.Size() @@ -1444,24 +1421,24 @@ 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. // 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"` + Results []*PessimisticLockKeyResult `protobuf:"bytes,8,rep,name=results" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1471,7 +1448,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{8} } func (m *PessimisticLockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1481,15 +1458,15 @@ func (m *PessimisticLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_PessimisticLockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PessimisticLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticLockResponse.Merge(dst, src) } func (m *PessimisticLockResponse) XXX_Size() int { return m.Size() @@ -1560,10 +1537,10 @@ 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"` + 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,proto3" json:"keys,omitempty"` + Keys [][]byte `protobuf:"bytes,4,rep,name=keys" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1573,7 +1550,7 @@ func (m *PessimisticRollbackRequest) Reset() { *m = PessimisticRollbackR func (m *PessimisticRollbackRequest) String() string { return proto.CompactTextString(m) } func (*PessimisticRollbackRequest) ProtoMessage() {} func (*PessimisticRollbackRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{9} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{9} } func (m *PessimisticRollbackRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1583,15 +1560,15 @@ func (m *PessimisticRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_PessimisticRollbackRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *PessimisticRollbackRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PessimisticRollbackRequest.Merge(m, src) +func (dst *PessimisticRollbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticRollbackRequest.Merge(dst, src) } func (m *PessimisticRollbackRequest) XXX_Size() int { return m.Size() @@ -1631,10 +1608,10 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1644,7 +1621,7 @@ func (m *PessimisticRollbackResponse) Reset() { *m = PessimisticRollback func (m *PessimisticRollbackResponse) String() string { return proto.CompactTextString(m) } func (*PessimisticRollbackResponse) ProtoMessage() {} func (*PessimisticRollbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{10} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{10} } func (m *PessimisticRollbackResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1654,15 +1631,15 @@ func (m *PessimisticRollbackResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_PessimisticRollbackResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PessimisticRollbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PessimisticRollbackResponse.Merge(dst, src) } func (m *PessimisticRollbackResponse) XXX_Size() int { return m.Size() @@ -1696,7 +1673,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. @@ -1714,7 +1691,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{11} } func (m *TxnHeartBeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1724,15 +1701,15 @@ func (m *TxnHeartBeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TxnHeartBeatRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TxnHeartBeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnHeartBeatRequest.Merge(dst, src) } func (m *TxnHeartBeatRequest) XXX_Size() int { return m.Size() @@ -1779,12 +1756,12 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1794,7 +1771,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{12} } func (m *TxnHeartBeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1804,15 +1781,15 @@ func (m *TxnHeartBeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_TxnHeartBeatResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TxnHeartBeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnHeartBeatResponse.Merge(dst, src) } func (m *TxnHeartBeatResponse) XXX_Size() int { return m.Size() @@ -1857,7 +1834,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. @@ -1895,7 +1872,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{13} } func (m *CheckTxnStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1905,15 +1882,15 @@ func (m *CheckTxnStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_CheckTxnStatusRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckTxnStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckTxnStatusRequest.Merge(dst, src) } func (m *CheckTxnStatusRequest) XXX_Size() int { return m.Size() @@ -1995,20 +1972,19 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,7,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2018,7 +1994,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{14} } func (m *CheckTxnStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2028,15 +2004,15 @@ func (m *CheckTxnStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_CheckTxnStatusResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckTxnStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckTxnStatusResponse.Merge(dst, src) } func (m *CheckTxnStatusResponse) XXX_Size() int { return m.Size() @@ -2100,8 +2076,8 @@ 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:"-"` @@ -2113,7 +2089,7 @@ func (m *CheckSecondaryLocksRequest) Reset() { *m = CheckSecondaryLocksR func (m *CheckSecondaryLocksRequest) String() string { return proto.CompactTextString(m) } func (*CheckSecondaryLocksRequest) ProtoMessage() {} func (*CheckSecondaryLocksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{15} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{15} } func (m *CheckSecondaryLocksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2123,15 +2099,15 @@ func (m *CheckSecondaryLocksRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_CheckSecondaryLocksRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckSecondaryLocksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckSecondaryLocksRequest.Merge(dst, src) } func (m *CheckSecondaryLocksRequest) XXX_Size() int { return m.Size() @@ -2164,17 +2140,17 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,5,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2184,7 +2160,7 @@ func (m *CheckSecondaryLocksResponse) Reset() { *m = CheckSecondaryLocks func (m *CheckSecondaryLocksResponse) String() string { return proto.CompactTextString(m) } func (*CheckSecondaryLocksResponse) ProtoMessage() {} func (*CheckSecondaryLocksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{16} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{16} } func (m *CheckSecondaryLocksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2194,15 +2170,15 @@ func (m *CheckSecondaryLocksResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_CheckSecondaryLocksResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckSecondaryLocksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckSecondaryLocksResponse.Merge(dst, src) } func (m *CheckSecondaryLocksResponse) XXX_Size() int { return m.Size() @@ -2251,11 +2227,11 @@ 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. @@ -2269,7 +2245,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{17} } func (m *CommitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2279,15 +2255,15 @@ func (m *CommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_CommitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitRequest.Merge(dst, src) } func (m *CommitRequest) XXX_Size() int { return m.Size() @@ -2334,12 +2310,12 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2349,7 +2325,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{18} } func (m *CommitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2359,15 +2335,15 @@ func (m *CommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CommitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitResponse.Merge(dst, src) } func (m *CommitResponse) XXX_Size() int { return m.Size() @@ -2408,7 +2384,7 @@ func (m *CommitResponse) GetExecDetailsV2() *ExecDetailsV2 { // Not yet implemented. type ImportRequest struct { - Mutations []*Mutation `protobuf:"bytes,1,rep,name=mutations,proto3" json:"mutations,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -2419,7 +2395,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{19} } func (m *ImportRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2429,15 +2405,15 @@ func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_ImportRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ImportRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportRequest.Merge(dst, src) } func (m *ImportRequest) XXX_Size() int { return m.Size() @@ -2463,7 +2439,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -2474,7 +2450,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{20} } func (m *ImportResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2484,15 +2460,15 @@ func (m *ImportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ImportResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ImportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ImportResponse.Merge(dst, src) } func (m *ImportResponse) XXX_Size() int { return m.Size() @@ -2520,7 +2496,7 @@ 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 @@ -2536,7 +2512,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{21} } func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2546,15 +2522,15 @@ func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CleanupRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CleanupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupRequest.Merge(dst, src) } func (m *CleanupRequest) XXX_Size() int { return m.Size() @@ -2594,8 +2570,8 @@ 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:"-"` @@ -2607,7 +2583,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{22} } func (m *CleanupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2617,15 +2593,15 @@ func (m *CleanupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_CleanupResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CleanupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CleanupResponse.Merge(dst, src) } func (m *CleanupResponse) XXX_Size() int { return m.Size() @@ -2659,8 +2635,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -2671,7 +2647,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{23} } func (m *BatchGetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2681,15 +2657,15 @@ func (m *BatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_BatchGetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchGetRequest.Merge(dst, src) } func (m *BatchGetRequest) XXX_Size() int { return m.Size() @@ -2722,14 +2698,14 @@ 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"` + Error *KeyError `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2739,7 +2715,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{24} } func (m *BatchGetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2749,15 +2725,15 @@ func (m *BatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_BatchGetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchGetResponse.Merge(dst, src) } func (m *BatchGetResponse) XXX_Size() int { return m.Size() @@ -2799,11 +2775,11 @@ 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:"-"` @@ -2815,7 +2791,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{25} } func (m *BatchRollbackRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2825,15 +2801,15 @@ func (m *BatchRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_BatchRollbackRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchRollbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRollbackRequest.Merge(dst, src) } func (m *BatchRollbackRequest) XXX_Size() int { return m.Size() @@ -2873,10 +2849,10 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2886,7 +2862,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{26} } func (m *BatchRollbackResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2896,15 +2872,15 @@ func (m *BatchRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_BatchRollbackResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchRollbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRollbackResponse.Merge(dst, src) } func (m *BatchRollbackResponse) XXX_Size() int { return m.Size() @@ -2939,7 +2915,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. @@ -2957,7 +2933,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{27} } func (m *ScanLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2967,15 +2943,15 @@ func (m *ScanLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_ScanLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanLockRequest.Merge(dst, src) } func (m *ScanLockRequest) XXX_Size() int { return m.Size() @@ -3022,12 +2998,12 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3037,7 +3013,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{28} } func (m *ScanLockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3047,15 +3023,15 @@ func (m *ScanLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_ScanLockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanLockResponse.Merge(dst, src) } func (m *ScanLockResponse) XXX_Size() int { return m.Size() @@ -3097,14 +3073,14 @@ 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:"-"` @@ -3116,7 +3092,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{29} } func (m *ResolveLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3126,15 +3102,15 @@ func (m *ResolveLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ResolveLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResolveLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveLockRequest.Merge(dst, src) } func (m *ResolveLockRequest) XXX_Size() int { return m.Size() @@ -3188,10 +3164,10 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,3,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3201,7 +3177,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{30} } func (m *ResolveLockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3211,15 +3187,15 @@ func (m *ResolveLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ResolveLockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResolveLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveLockResponse.Merge(dst, src) } func (m *ResolveLockResponse) XXX_Size() int { return m.Size() @@ -3253,7 +3229,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3264,7 +3240,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{31} } func (m *GCRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3274,15 +3250,15 @@ func (m *GCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GCRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GCRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCRequest.Merge(dst, src) } func (m *GCRequest) XXX_Size() int { return m.Size() @@ -3308,8 +3284,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3319,7 +3295,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{32} } func (m *GCResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3329,15 +3305,15 @@ func (m *GCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GCResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GCResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCResponse.Merge(dst, src) } func (m *GCResponse) XXX_Size() int { return m.Size() @@ -3364,7 +3340,7 @@ 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 @@ -3380,7 +3356,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{33} } func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3390,15 +3366,15 @@ func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_DeleteRangeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeRequest.Merge(dst, src) } func (m *DeleteRangeRequest) XXX_Size() int { return m.Size() @@ -3438,7 +3414,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3449,7 +3425,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{34} } func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3459,15 +3435,15 @@ func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_DeleteRangeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeResponse.Merge(dst, src) } func (m *DeleteRangeResponse) XXX_Size() int { return m.Size() @@ -3496,11 +3472,11 @@ 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. + // the `watermark` 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"` @@ -3513,7 +3489,7 @@ func (m *PrepareFlashbackToVersionRequest) Reset() { *m = PrepareFlashba func (m *PrepareFlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackToVersionRequest) ProtoMessage() {} func (*PrepareFlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{35} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{35} } func (m *PrepareFlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3523,15 +3499,15 @@ func (m *PrepareFlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic b return xxx_messageInfo_PrepareFlashbackToVersionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareFlashbackToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackToVersionRequest.Merge(dst, src) } func (m *PrepareFlashbackToVersionRequest) XXX_Size() int { return m.Size() @@ -3578,7 +3554,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3589,7 +3565,7 @@ func (m *PrepareFlashbackToVersionResponse) Reset() { *m = PrepareFlashb func (m *PrepareFlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackToVersionResponse) ProtoMessage() {} func (*PrepareFlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{36} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{36} } func (m *PrepareFlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3599,15 +3575,15 @@ func (m *PrepareFlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic return xxx_messageInfo_PrepareFlashbackToVersionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareFlashbackToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackToVersionResponse.Merge(dst, src) } func (m *PrepareFlashbackToVersionResponse) XXX_Size() int { return m.Size() @@ -3636,7 +3612,7 @@ 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"` @@ -3654,7 +3630,7 @@ func (m *FlashbackToVersionRequest) Reset() { *m = FlashbackToVersionReq func (m *FlashbackToVersionRequest) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionRequest) ProtoMessage() {} func (*FlashbackToVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{37} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{37} } func (m *FlashbackToVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3664,15 +3640,15 @@ func (m *FlashbackToVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_FlashbackToVersionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlashbackToVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionRequest.Merge(dst, src) } func (m *FlashbackToVersionRequest) XXX_Size() int { return m.Size() @@ -3726,7 +3702,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3737,7 +3713,7 @@ func (m *FlashbackToVersionResponse) Reset() { *m = FlashbackToVersionRe func (m *FlashbackToVersionResponse) String() string { return proto.CompactTextString(m) } func (*FlashbackToVersionResponse) ProtoMessage() {} func (*FlashbackToVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{38} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{38} } func (m *FlashbackToVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3747,15 +3723,15 @@ func (m *FlashbackToVersionResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_FlashbackToVersionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlashbackToVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlashbackToVersionResponse.Merge(dst, src) } func (m *FlashbackToVersionResponse) XXX_Size() int { return m.Size() @@ -3781,7 +3757,7 @@ func (m *FlashbackToVersionResponse) GetError() string { } type RawGetRequest 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"` Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -3793,7 +3769,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{39} } func (m *RawGetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3803,15 +3779,15 @@ func (m *RawGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RawGetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetRequest.Merge(dst, src) } func (m *RawGetRequest) XXX_Size() int { return m.Size() @@ -3844,7 +3820,7 @@ 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"` + 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"` @@ -3857,7 +3833,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{40} } func (m *RawGetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3867,15 +3843,15 @@ func (m *RawGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RawGetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetResponse.Merge(dst, src) } func (m *RawGetResponse) XXX_Size() int { return m.Size() @@ -3915,8 +3891,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3927,7 +3903,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{41} } func (m *RawBatchGetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3937,15 +3913,15 @@ func (m *RawBatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawBatchGetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchGetRequest.Merge(dst, src) } func (m *RawBatchGetRequest) XXX_Size() int { return m.Size() @@ -3978,8 +3954,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3989,7 +3965,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{42} } func (m *RawBatchGetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3999,15 +3975,15 @@ func (m *RawBatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawBatchGetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchGetResponse.Merge(dst, src) } func (m *RawBatchGetResponse) XXX_Size() int { return m.Size() @@ -4033,7 +4009,7 @@ func (m *RawBatchGetResponse) GetPairs() []*KvPair { } type RawPutRequest 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"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` @@ -4048,7 +4024,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{43} } func (m *RawPutRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4058,15 +4034,15 @@ func (m *RawPutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RawPutRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawPutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawPutRequest.Merge(dst, src) } func (m *RawPutRequest) XXX_Size() int { return m.Size() @@ -4120,7 +4096,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -4131,7 +4107,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{44} } func (m *RawPutResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4141,15 +4117,15 @@ func (m *RawPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RawPutResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawPutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawPutResponse.Merge(dst, src) } func (m *RawPutResponse) XXX_Size() int { return m.Size() @@ -4175,15 +4151,15 @@ 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. 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"` + Ttls []uint64 `protobuf:"varint,6,rep,packed,name=ttls" json:"ttls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -4193,7 +4169,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{45} } func (m *RawBatchPutRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4203,15 +4179,15 @@ func (m *RawBatchPutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawBatchPutRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchPutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchPutRequest.Merge(dst, src) } func (m *RawBatchPutRequest) XXX_Size() int { return m.Size() @@ -4266,7 +4242,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -4277,7 +4253,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{46} } func (m *RawBatchPutResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4287,15 +4263,15 @@ func (m *RawBatchPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawBatchPutResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchPutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchPutResponse.Merge(dst, src) } func (m *RawBatchPutResponse) XXX_Size() int { return m.Size() @@ -4321,7 +4297,7 @@ func (m *RawBatchPutResponse) GetError() string { } type RawDeleteRequest 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"` 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"` @@ -4334,7 +4310,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{47} } func (m *RawDeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4344,15 +4320,15 @@ func (m *RawDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_RawDeleteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteRequest.Merge(dst, src) } func (m *RawDeleteRequest) XXX_Size() int { return m.Size() @@ -4392,7 +4368,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -4403,7 +4379,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{48} } func (m *RawDeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4413,15 +4389,15 @@ func (m *RawDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_RawDeleteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteResponse.Merge(dst, src) } func (m *RawDeleteResponse) XXX_Size() int { return m.Size() @@ -4447,8 +4423,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -4460,7 +4436,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{49} } func (m *RawBatchDeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4470,15 +4446,15 @@ func (m *RawBatchDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_RawBatchDeleteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchDeleteRequest.Merge(dst, src) } func (m *RawBatchDeleteRequest) XXX_Size() int { return m.Size() @@ -4518,7 +4494,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -4529,7 +4505,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{50} } func (m *RawBatchDeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4539,15 +4515,15 @@ func (m *RawBatchDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_RawBatchDeleteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchDeleteResponse.Merge(dst, src) } func (m *RawBatchDeleteResponse) XXX_Size() int { return m.Size() @@ -4573,7 +4549,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"` @@ -4591,7 +4567,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{51} } func (m *RawScanRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4601,15 +4577,15 @@ func (m *RawScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RawScanRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawScanRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawScanRequest.Merge(dst, src) } func (m *RawScanRequest) XXX_Size() int { return m.Size() @@ -4670,8 +4646,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -4681,7 +4657,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{52} } func (m *RawScanResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4691,15 +4667,15 @@ func (m *RawScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_RawScanResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawScanResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawScanResponse.Merge(dst, src) } func (m *RawScanResponse) XXX_Size() int { return m.Size() @@ -4725,7 +4701,7 @@ func (m *RawScanResponse) GetKvs() []*KvPair { } type RawDeleteRangeRequest 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"` Cf string `protobuf:"bytes,4,opt,name=cf,proto3" json:"cf,omitempty"` @@ -4738,7 +4714,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{53} } func (m *RawDeleteRangeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4748,15 +4724,15 @@ func (m *RawDeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_RawDeleteRangeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawDeleteRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteRangeRequest.Merge(dst, src) } func (m *RawDeleteRangeRequest) XXX_Size() int { return m.Size() @@ -4796,7 +4772,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -4807,7 +4783,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{54} } func (m *RawDeleteRangeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4817,15 +4793,15 @@ func (m *RawDeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_RawDeleteRangeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawDeleteRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawDeleteRangeResponse.Merge(dst, src) } func (m *RawDeleteRangeResponse) XXX_Size() int { return m.Size() @@ -4851,8 +4827,8 @@ 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"` + 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"` @@ -4866,7 +4842,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{55} } func (m *RawBatchScanRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4876,15 +4852,15 @@ func (m *RawBatchScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawBatchScanRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchScanRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchScanRequest.Merge(dst, src) } func (m *RawBatchScanRequest) XXX_Size() int { return m.Size() @@ -4938,8 +4914,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -4949,7 +4925,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{56} } func (m *RawBatchScanResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4959,15 +4935,15 @@ func (m *RawBatchScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_RawBatchScanResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawBatchScanResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawBatchScanResponse.Merge(dst, src) } func (m *RawBatchScanResponse) XXX_Size() int { return m.Size() @@ -4993,7 +4969,7 @@ func (m *RawBatchScanResponse) GetKvs() []*KvPair { } type UnsafeDestroyRangeRequest 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -5005,7 +4981,7 @@ func (m *UnsafeDestroyRangeRequest) Reset() { *m = UnsafeDestroyRangeReq func (m *UnsafeDestroyRangeRequest) String() string { return proto.CompactTextString(m) } func (*UnsafeDestroyRangeRequest) ProtoMessage() {} func (*UnsafeDestroyRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{57} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{57} } func (m *UnsafeDestroyRangeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5015,15 +4991,15 @@ func (m *UnsafeDestroyRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_UnsafeDestroyRangeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UnsafeDestroyRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeDestroyRangeRequest.Merge(dst, src) } func (m *UnsafeDestroyRangeRequest) XXX_Size() int { return m.Size() @@ -5056,7 +5032,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5067,7 +5043,7 @@ func (m *UnsafeDestroyRangeResponse) Reset() { *m = UnsafeDestroyRangeRe func (m *UnsafeDestroyRangeResponse) String() string { return proto.CompactTextString(m) } func (*UnsafeDestroyRangeResponse) ProtoMessage() {} func (*UnsafeDestroyRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{58} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{58} } func (m *UnsafeDestroyRangeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5077,15 +5053,15 @@ func (m *UnsafeDestroyRangeResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_UnsafeDestroyRangeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UnsafeDestroyRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnsafeDestroyRangeResponse.Merge(dst, src) } func (m *UnsafeDestroyRangeResponse) XXX_Size() int { return m.Size() @@ -5111,7 +5087,7 @@ func (m *UnsafeDestroyRangeResponse) GetError() string { } type RegisterLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5122,7 +5098,7 @@ func (m *RegisterLockObserverRequest) Reset() { *m = RegisterLockObserve func (m *RegisterLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*RegisterLockObserverRequest) ProtoMessage() {} func (*RegisterLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{59} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{59} } func (m *RegisterLockObserverRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5132,15 +5108,15 @@ func (m *RegisterLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_RegisterLockObserverRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegisterLockObserverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterLockObserverRequest.Merge(dst, src) } func (m *RegisterLockObserverRequest) XXX_Size() int { return m.Size() @@ -5176,7 +5152,7 @@ func (m *RegisterLockObserverResponse) Reset() { *m = RegisterLockObserv func (m *RegisterLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*RegisterLockObserverResponse) ProtoMessage() {} func (*RegisterLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{60} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{60} } func (m *RegisterLockObserverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5186,15 +5162,15 @@ func (m *RegisterLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_RegisterLockObserverResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegisterLockObserverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterLockObserverResponse.Merge(dst, src) } func (m *RegisterLockObserverResponse) XXX_Size() int { return m.Size() @@ -5213,7 +5189,7 @@ func (m *RegisterLockObserverResponse) GetError() string { } type CheckLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5224,7 +5200,7 @@ func (m *CheckLockObserverRequest) Reset() { *m = CheckLockObserverReque func (m *CheckLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*CheckLockObserverRequest) ProtoMessage() {} func (*CheckLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{61} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{61} } func (m *CheckLockObserverRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5234,15 +5210,15 @@ func (m *CheckLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_CheckLockObserverRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckLockObserverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLockObserverRequest.Merge(dst, src) } func (m *CheckLockObserverRequest) XXX_Size() int { return m.Size() @@ -5270,7 +5246,7 @@ 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"` + Locks []*LockInfo `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5280,7 +5256,7 @@ func (m *CheckLockObserverResponse) Reset() { *m = CheckLockObserverResp func (m *CheckLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*CheckLockObserverResponse) ProtoMessage() {} func (*CheckLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{62} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{62} } func (m *CheckLockObserverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5290,15 +5266,15 @@ func (m *CheckLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_CheckLockObserverResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckLockObserverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLockObserverResponse.Merge(dst, src) } func (m *CheckLockObserverResponse) XXX_Size() int { return m.Size() @@ -5331,7 +5307,7 @@ func (m *CheckLockObserverResponse) GetLocks() []*LockInfo { } type RemoveLockObserverRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5342,7 +5318,7 @@ func (m *RemoveLockObserverRequest) Reset() { *m = RemoveLockObserverReq func (m *RemoveLockObserverRequest) String() string { return proto.CompactTextString(m) } func (*RemoveLockObserverRequest) ProtoMessage() {} func (*RemoveLockObserverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{63} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{63} } func (m *RemoveLockObserverRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5352,15 +5328,15 @@ func (m *RemoveLockObserverRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_RemoveLockObserverRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RemoveLockObserverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveLockObserverRequest.Merge(dst, src) } func (m *RemoveLockObserverRequest) XXX_Size() int { return m.Size() @@ -5396,7 +5372,7 @@ func (m *RemoveLockObserverResponse) Reset() { *m = RemoveLockObserverRe func (m *RemoveLockObserverResponse) String() string { return proto.CompactTextString(m) } func (*RemoveLockObserverResponse) ProtoMessage() {} func (*RemoveLockObserverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{64} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{64} } func (m *RemoveLockObserverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5406,15 +5382,15 @@ func (m *RemoveLockObserverResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_RemoveLockObserverResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RemoveLockObserverResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveLockObserverResponse.Merge(dst, src) } func (m *RemoveLockObserverResponse) XXX_Size() int { return m.Size() @@ -5433,7 +5409,7 @@ func (m *RemoveLockObserverResponse) GetError() string { } type PhysicalScanLockRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + 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"` @@ -5446,7 +5422,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{65} } func (m *PhysicalScanLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5456,15 +5432,15 @@ func (m *PhysicalScanLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_PhysicalScanLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PhysicalScanLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhysicalScanLockRequest.Merge(dst, src) } func (m *PhysicalScanLockRequest) XXX_Size() int { return m.Size() @@ -5505,7 +5481,7 @@ 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"` + Locks []*LockInfo `protobuf:"bytes,2,rep,name=locks" json:"locks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5515,7 +5491,7 @@ func (m *PhysicalScanLockResponse) Reset() { *m = PhysicalScanLockRespon func (m *PhysicalScanLockResponse) String() string { return proto.CompactTextString(m) } func (*PhysicalScanLockResponse) ProtoMessage() {} func (*PhysicalScanLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{66} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{66} } func (m *PhysicalScanLockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5525,15 +5501,15 @@ func (m *PhysicalScanLockResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_PhysicalScanLockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PhysicalScanLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PhysicalScanLockResponse.Merge(dst, src) } func (m *PhysicalScanLockResponse) XXX_Size() int { return m.Size() @@ -5560,9 +5536,9 @@ 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"` + 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"` // Deprecated: Do not use. - SplitKeys [][]byte `protobuf:"bytes,3,rep,name=split_keys,json=splitKeys,proto3" json:"split_keys,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:"-"` @@ -5574,7 +5550,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{67} } func (m *SplitRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5584,15 +5560,15 @@ func (m *SplitRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_SplitRegionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionRequest.Merge(dst, src) } func (m *SplitRegionRequest) XXX_Size() int { return m.Size() @@ -5633,10 +5609,10 @@ 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"` // Deprecated: Do not use. + Right *metapb.Region `protobuf:"bytes,3,opt,name=right" json:"right,omitempty"` // Deprecated: Do not use. + Regions []*metapb.Region `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5646,7 +5622,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{68} } func (m *SplitRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5656,15 +5632,15 @@ func (m *SplitRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_SplitRegionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionResponse.Merge(dst, src) } func (m *SplitRegionResponse) XXX_Size() int { return m.Size() @@ -5707,11 +5683,11 @@ func (m *SplitRegionResponse) GetRegions() []*metapb.Region { // Sent from TiFlash to a TiKV node. type ReadIndexRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` // TiKV checks the given range if there is any unapplied lock // blocking the read request. StartTs uint64 `protobuf:"varint,2,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5721,7 +5697,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{69} } func (m *ReadIndexRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5731,15 +5707,15 @@ func (m *ReadIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_ReadIndexRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReadIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexRequest.Merge(dst, src) } func (m *ReadIndexRequest) XXX_Size() int { return m.Size() @@ -5772,11 +5748,11 @@ 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"` + Locked *LockInfo `protobuf:"bytes,3,opt,name=locked" json:"locked,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5786,7 +5762,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{70} } func (m *ReadIndexResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5796,15 +5772,15 @@ func (m *ReadIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ReadIndexResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReadIndexResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexResponse.Merge(dst, src) } func (m *ReadIndexResponse) XXX_Size() int { return m.Size() @@ -5837,7 +5813,7 @@ func (m *ReadIndexResponse) GetLocked() *LockInfo { } type MvccGetByKeyRequest 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5848,7 +5824,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{71} } func (m *MvccGetByKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5858,15 +5834,15 @@ func (m *MvccGetByKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_MvccGetByKeyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccGetByKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByKeyRequest.Merge(dst, src) } func (m *MvccGetByKeyRequest) XXX_Size() int { return m.Size() @@ -5892,9 +5868,9 @@ 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"` + 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,proto3" json:"info,omitempty"` + Info *MvccInfo `protobuf:"bytes,3,opt,name=info" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5904,7 +5880,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{72} } func (m *MvccGetByKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5914,15 +5890,15 @@ func (m *MvccGetByKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_MvccGetByKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccGetByKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByKeyResponse.Merge(dst, src) } func (m *MvccGetByKeyResponse) XXX_Size() int { return m.Size() @@ -5955,7 +5931,7 @@ func (m *MvccGetByKeyResponse) GetInfo() *MvccInfo { } type MvccGetByStartTsRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5966,7 +5942,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{73} } func (m *MvccGetByStartTsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5976,15 +5952,15 @@ func (m *MvccGetByStartTsRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_MvccGetByStartTsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccGetByStartTsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByStartTsRequest.Merge(dst, src) } func (m *MvccGetByStartTsRequest) XXX_Size() int { return m.Size() @@ -6010,10 +5986,10 @@ 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"` + 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,proto3" json:"info,omitempty"` + Info *MvccInfo `protobuf:"bytes,4,opt,name=info" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -6023,7 +5999,7 @@ func (m *MvccGetByStartTsResponse) Reset() { *m = MvccGetByStartTsRespon func (m *MvccGetByStartTsResponse) String() string { return proto.CompactTextString(m) } func (*MvccGetByStartTsResponse) ProtoMessage() {} func (*MvccGetByStartTsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{74} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{74} } func (m *MvccGetByStartTsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6033,15 +6009,15 @@ func (m *MvccGetByStartTsResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_MvccGetByStartTsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccGetByStartTsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccGetByStartTsResponse.Merge(dst, src) } func (m *MvccGetByStartTsResponse) XXX_Size() int { return m.Size() @@ -6083,8 +6059,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"` @@ -6097,7 +6073,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. @@ -6118,9 +6094,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"` @@ -6130,7 +6106,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"` @@ -6139,7 +6115,7 @@ 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:"-"` @@ -6151,7 +6127,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{75} } func (m *Context) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6161,15 +6137,15 @@ func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Context.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Context) XXX_Merge(src proto.Message) { + xxx_messageInfo_Context.Merge(dst, src) } func (m *Context) XXX_Size() int { return m.Size() @@ -6395,7 +6371,7 @@ 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"` @@ -6408,7 +6384,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{76} } func (m *ResourceControlContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6418,15 +6394,15 @@ func (m *ResourceControlContext) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_ResourceControlContext.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResourceControlContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceControlContext.Merge(dst, src) } func (m *ResourceControlContext) XXX_Size() int { return m.Size() @@ -6473,7 +6449,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{77} } func (m *SourceStmt) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6483,15 +6459,15 @@ func (m *SourceStmt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SourceStmt.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SourceStmt) XXX_Merge(src proto.Message) { + xxx_messageInfo_SourceStmt.Merge(dst, src) } func (m *SourceStmt) XXX_Size() int { return m.Size() @@ -6542,7 +6518,7 @@ 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. @@ -6558,7 +6534,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{78} } func (m *LockInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6568,15 +6544,15 @@ func (m *LockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LockInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LockInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_LockInfo.Merge(dst, src) } func (m *LockInfo) XXX_Size() int { return m.Size() @@ -6672,17 +6648,17 @@ func (m *LockInfo) GetIsTxnFile() bool { } type KeyError struct { - Locked *LockInfo `protobuf:"bytes,1,opt,name=locked,proto3" json:"locked,omitempty"` + 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,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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -6692,7 +6668,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{79} } func (m *KeyError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6702,15 +6678,15 @@ func (m *KeyError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KeyError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyError) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyError.Merge(dst, src) } func (m *KeyError) XXX_Size() int { return m.Size() @@ -6814,7 +6790,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{80} } func (m *WriteConflict) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6824,15 +6800,15 @@ func (m *WriteConflict) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_WriteConflict.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteConflict) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteConflict.Merge(dst, src) } func (m *WriteConflict) XXX_Size() int { return m.Size() @@ -6896,7 +6872,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{81} } func (m *AlreadyExist) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6906,15 +6882,15 @@ func (m *AlreadyExist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_AlreadyExist.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AlreadyExist) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlreadyExist.Merge(dst, src) } func (m *AlreadyExist) XXX_Size() int { return m.Size() @@ -6936,7 +6912,7 @@ type Deadlock struct { LockTs uint64 `protobuf:"varint,1,opt,name=lock_ts,json=lockTs,proto3" json:"lock_ts,omitempty"` LockKey []byte `protobuf:"bytes,2,opt,name=lock_key,json=lockKey,proto3" json:"lock_key,omitempty"` DeadlockKeyHash uint64 `protobuf:"varint,3,opt,name=deadlock_key_hash,json=deadlockKeyHash,proto3" json:"deadlock_key_hash,omitempty"` - WaitChain []*deadlock.WaitForEntry `protobuf:"bytes,4,rep,name=wait_chain,json=waitChain,proto3" json:"wait_chain,omitempty"` + WaitChain []*deadlock.WaitForEntry `protobuf:"bytes,4,rep,name=wait_chain,json=waitChain" json:"wait_chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -6946,7 +6922,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{82} } func (m *Deadlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6956,15 +6932,15 @@ func (m *Deadlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Deadlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Deadlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_Deadlock.Merge(dst, src) } func (m *Deadlock) XXX_Size() int { return m.Size() @@ -7017,7 +6993,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{83} } func (m *CommitTsExpired) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7027,15 +7003,15 @@ func (m *CommitTsExpired) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_CommitTsExpired.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommitTsExpired) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitTsExpired.Merge(dst, src) } func (m *CommitTsExpired) XXX_Size() int { return m.Size() @@ -7086,7 +7062,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{84} } func (m *TxnNotFound) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7096,15 +7072,15 @@ func (m *TxnNotFound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TxnNotFound.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TxnNotFound) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnNotFound.Merge(dst, src) } func (m *TxnNotFound) XXX_Size() int { return m.Size() @@ -7140,7 +7116,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{85} } func (m *CommitTsTooLarge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7150,15 +7126,15 @@ func (m *CommitTsTooLarge) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_CommitTsTooLarge.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommitTsTooLarge) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitTsTooLarge.Merge(dst, src) } func (m *CommitTsTooLarge) XXX_Size() int { return m.Size() @@ -7191,7 +7167,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{86} } func (m *AssertionFailed) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7201,15 +7177,15 @@ func (m *AssertionFailed) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_AssertionFailed.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AssertionFailed) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssertionFailed.Merge(dst, src) } func (m *AssertionFailed) XXX_Size() int { return m.Size() @@ -7256,7 +7232,7 @@ func (m *AssertionFailed) GetExistingCommitTs() uint64 { } type PrimaryMismatch struct { - LockInfo *LockInfo `protobuf:"bytes,1,opt,name=lock_info,json=lockInfo,proto3" json:"lock_info,omitempty"` + LockInfo *LockInfo `protobuf:"bytes,1,opt,name=lock_info,json=lockInfo" json:"lock_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7266,7 +7242,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{87} } func (m *PrimaryMismatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7276,15 +7252,15 @@ func (m *PrimaryMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_PrimaryMismatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrimaryMismatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrimaryMismatch.Merge(dst, src) } func (m *PrimaryMismatch) XXX_Size() int { return m.Size() @@ -7325,7 +7301,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{88} } func (m *TimeDetail) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7335,15 +7311,15 @@ func (m *TimeDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TimeDetail.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TimeDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeDetail.Merge(dst, src) } func (m *TimeDetail) XXX_Size() int { return m.Size() @@ -7411,7 +7387,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{89} } func (m *TimeDetailV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7421,15 +7397,15 @@ func (m *TimeDetailV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TimeDetailV2.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TimeDetailV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeDetailV2.Merge(dst, src) } func (m *TimeDetailV2) XXX_Size() int { return m.Size() @@ -7502,7 +7478,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{90} } func (m *ScanInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7512,15 +7488,15 @@ func (m *ScanInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ScanInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanInfo.Merge(dst, src) } func (m *ScanInfo) XXX_Size() int { return m.Size() @@ -7554,9 +7530,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7566,7 +7542,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{91} } func (m *ScanDetail) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7576,15 +7552,15 @@ func (m *ScanDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ScanDetail.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanDetail.Merge(dst, src) } func (m *ScanDetail) XXX_Size() int { return m.Size() @@ -7662,7 +7638,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{92} } func (m *ScanDetailV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7672,15 +7648,15 @@ func (m *ScanDetailV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ScanDetailV2.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanDetailV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanDetailV2.Merge(dst, src) } func (m *ScanDetailV2) XXX_Size() int { return m.Size() @@ -7784,9 +7760,9 @@ 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"` + ScanDetail *ScanDetail `protobuf:"bytes,2,opt,name=scan_detail,json=scanDetail" json:"scan_detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7796,7 +7772,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{93} } func (m *ExecDetails) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7806,15 +7782,15 @@ func (m *ExecDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ExecDetails.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ExecDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecDetails.Merge(dst, src) } func (m *ExecDetails) XXX_Size() int { return m.Size() @@ -7842,13 +7818,13 @@ 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"` + TimeDetailV2 *TimeDetailV2 `protobuf:"bytes,4,opt,name=time_detail_v2,json=timeDetailV2" json:"time_detail_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7858,7 +7834,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{94} } func (m *ExecDetailsV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7868,15 +7844,15 @@ func (m *ExecDetailsV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_ExecDetailsV2.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ExecDetailsV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecDetailsV2.Merge(dst, src) } func (m *ExecDetailsV2) XXX_Size() int { return m.Size() @@ -7959,7 +7935,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{95} } func (m *WriteDetail) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7969,15 +7945,15 @@ func (m *WriteDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_WriteDetail.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WriteDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_WriteDetail.Merge(dst, src) } func (m *WriteDetail) XXX_Size() int { return m.Size() @@ -8108,7 +8084,7 @@ func (m *WriteDetail) GetPessimisticLockWaitNanos() uint64 { } type KvPair struct { - Error *KeyError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -8120,7 +8096,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{96} } func (m *KvPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8130,15 +8106,15 @@ func (m *KvPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KvPair.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KvPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KvPair.Merge(dst, src) } func (m *KvPair) XXX_Size() int { return m.Size() @@ -8184,7 +8160,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{97} } func (m *Mutation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8194,15 +8170,15 @@ func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Mutation.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Mutation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mutation.Merge(dst, src) } func (m *Mutation) XXX_Size() int { return m.Size() @@ -8260,7 +8236,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{98} } func (m *MvccWrite) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8270,15 +8246,15 @@ func (m *MvccWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MvccWrite.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccWrite) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccWrite.Merge(dst, src) } func (m *MvccWrite) XXX_Size() int { return m.Size() @@ -8364,7 +8340,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{99} } func (m *MvccValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8374,15 +8350,15 @@ func (m *MvccValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MvccValue.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccValue.Merge(dst, src) } func (m *MvccValue) XXX_Size() int { return m.Size() @@ -8416,8 +8392,8 @@ 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:"-"` @@ -8429,7 +8405,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{100} } func (m *MvccLock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8439,15 +8415,15 @@ func (m *MvccLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MvccLock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccLock) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccLock.Merge(dst, src) } func (m *MvccLock) XXX_Size() int { return m.Size() @@ -8543,9 +8519,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -8555,7 +8531,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{101} } func (m *MvccInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8565,15 +8541,15 @@ func (m *MvccInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MvccInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MvccInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MvccInfo.Merge(dst, src) } func (m *MvccInfo) XXX_Size() int { return m.Size() @@ -8619,7 +8595,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{102} } func (m *TxnInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8629,15 +8605,15 @@ func (m *TxnInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TxnInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TxnInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxnInfo.Merge(dst, src) } func (m *TxnInfo) XXX_Size() int { return m.Size() @@ -8681,7 +8657,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{103} } func (m *KeyRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8691,15 +8667,15 @@ func (m *KeyRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KeyRange.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyRange.Merge(dst, src) } func (m *KeyRange) XXX_Size() int { return m.Size() @@ -8728,8 +8704,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -8739,7 +8715,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{104} } func (m *LeaderInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8749,15 +8725,15 @@ func (m *LeaderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LeaderInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LeaderInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_LeaderInfo.Merge(dst, src) } func (m *LeaderInfo) XXX_Size() int { return m.Size() @@ -8815,7 +8791,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{105} } func (m *ReadState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8825,15 +8801,15 @@ func (m *ReadState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ReadState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReadState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadState.Merge(dst, src) } func (m *ReadState) XXX_Size() int { return m.Size() @@ -8859,7 +8835,7 @@ func (m *ReadState) GetSafeTs() uint64 { } type CheckLeaderRequest struct { - Regions []*LeaderInfo `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []*LeaderInfo `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -8870,7 +8846,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{106} } func (m *CheckLeaderRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8880,15 +8856,15 @@ func (m *CheckLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CheckLeaderRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckLeaderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLeaderRequest.Merge(dst, src) } func (m *CheckLeaderRequest) XXX_Size() int { return m.Size() @@ -8914,7 +8890,7 @@ func (m *CheckLeaderRequest) GetTs() uint64 { } type CheckLeaderResponse struct { - Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions,proto3" json:"regions,omitempty"` + Regions []uint64 `protobuf:"varint,1,rep,packed,name=regions" json:"regions,omitempty"` Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -8925,7 +8901,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{107} } func (m *CheckLeaderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8935,15 +8911,15 @@ func (m *CheckLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CheckLeaderResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckLeaderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckLeaderResponse.Merge(dst, src) } func (m *CheckLeaderResponse) XXX_Size() int { return m.Size() @@ -8971,7 +8947,7 @@ 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"` + KeyRange *KeyRange `protobuf:"bytes,1,opt,name=key_range,json=keyRange" json:"key_range,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -8981,7 +8957,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{108} } func (m *StoreSafeTSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8991,15 +8967,15 @@ func (m *StoreSafeTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_StoreSafeTSRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreSafeTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreSafeTSRequest.Merge(dst, src) } func (m *StoreSafeTSRequest) XXX_Size() int { return m.Size() @@ -9028,7 +9004,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{109} } func (m *StoreSafeTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9038,15 +9014,15 @@ func (m *StoreSafeTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_StoreSafeTSResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreSafeTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreSafeTSResponse.Merge(dst, src) } func (m *StoreSafeTSResponse) XXX_Size() int { return m.Size() @@ -9065,7 +9041,7 @@ func (m *StoreSafeTSResponse) GetSafeTs() uint64 { } type RawGetKeyTTLRequest 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"` Cf string `protobuf:"bytes,3,opt,name=cf,proto3" json:"cf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -9077,7 +9053,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{110} } func (m *RawGetKeyTTLRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9087,15 +9063,15 @@ func (m *RawGetKeyTTLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawGetKeyTTLRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawGetKeyTTLRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetKeyTTLRequest.Merge(dst, src) } func (m *RawGetKeyTTLRequest) XXX_Size() int { return m.Size() @@ -9128,7 +9104,7 @@ 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"` + 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"` @@ -9141,7 +9117,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{111} } func (m *RawGetKeyTTLResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9151,15 +9127,15 @@ func (m *RawGetKeyTTLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_RawGetKeyTTLResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawGetKeyTTLResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawGetKeyTTLResponse.Merge(dst, src) } func (m *RawGetKeyTTLResponse) XXX_Size() int { return m.Size() @@ -9199,7 +9175,7 @@ func (m *RawGetKeyTTLResponse) GetNotFound() bool { } type RawCASRequest 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"` 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"` @@ -9215,7 +9191,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{112} } func (m *RawCASRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9225,15 +9201,15 @@ func (m *RawCASRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RawCASRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawCASRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCASRequest.Merge(dst, src) } func (m *RawCASRequest) XXX_Size() int { return m.Size() @@ -9294,7 +9270,7 @@ 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. @@ -9309,7 +9285,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{113} } func (m *RawCASResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9319,15 +9295,15 @@ func (m *RawCASResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RawCASResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawCASResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCASResponse.Merge(dst, src) } func (m *RawCASResponse) XXX_Size() int { return m.Size() @@ -9374,7 +9350,7 @@ func (m *RawCASResponse) GetPreviousValue() []byte { } type GetLockWaitInfoRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -9384,7 +9360,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{114} } func (m *GetLockWaitInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9394,15 +9370,15 @@ func (m *GetLockWaitInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_GetLockWaitInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetLockWaitInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitInfoRequest.Merge(dst, src) } func (m *GetLockWaitInfoRequest) XXX_Size() int { return m.Size() @@ -9421,9 +9397,9 @@ 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"` + 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,proto3" json:"entries,omitempty"` + Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -9433,7 +9409,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{115} } func (m *GetLockWaitInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9443,15 +9419,15 @@ func (m *GetLockWaitInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_GetLockWaitInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetLockWaitInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitInfoResponse.Merge(dst, src) } func (m *GetLockWaitInfoResponse) XXX_Size() int { return m.Size() @@ -9484,7 +9460,7 @@ func (m *GetLockWaitInfoResponse) GetEntries() []*deadlock.WaitForEntry { } type GetLockWaitHistoryRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + Context *Context `protobuf:"bytes,1,opt,name=context" json:"context,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -9494,7 +9470,7 @@ func (m *GetLockWaitHistoryRequest) Reset() { *m = GetLockWaitHistoryReq func (m *GetLockWaitHistoryRequest) String() string { return proto.CompactTextString(m) } func (*GetLockWaitHistoryRequest) ProtoMessage() {} func (*GetLockWaitHistoryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{116} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{116} } func (m *GetLockWaitHistoryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9504,15 +9480,15 @@ func (m *GetLockWaitHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_GetLockWaitHistoryRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetLockWaitHistoryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitHistoryRequest.Merge(dst, src) } func (m *GetLockWaitHistoryRequest) XXX_Size() int { return m.Size() @@ -9531,9 +9507,9 @@ 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"` + 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,proto3" json:"entries,omitempty"` + Entries []*deadlock.WaitForEntry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -9543,7 +9519,7 @@ func (m *GetLockWaitHistoryResponse) Reset() { *m = GetLockWaitHistoryRe func (m *GetLockWaitHistoryResponse) String() string { return proto.CompactTextString(m) } func (*GetLockWaitHistoryResponse) ProtoMessage() {} func (*GetLockWaitHistoryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{117} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{117} } func (m *GetLockWaitHistoryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9553,15 +9529,15 @@ func (m *GetLockWaitHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_GetLockWaitHistoryResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *GetLockWaitHistoryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLockWaitHistoryResponse.Merge(m, src) +func (dst *GetLockWaitHistoryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLockWaitHistoryResponse.Merge(dst, src) } func (m *GetLockWaitHistoryResponse) XXX_Size() int { return m.Size() @@ -9594,11 +9570,11 @@ 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"` + Ranges []*KeyRange `protobuf:"bytes,4,rep,name=ranges" json:"ranges,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -9609,7 +9585,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{118} } func (m *RawCoprocessorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9619,15 +9595,15 @@ func (m *RawCoprocessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_RawCoprocessorRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawCoprocessorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCoprocessorRequest.Merge(dst, src) } func (m *RawCoprocessorRequest) XXX_Size() int { return m.Size() @@ -9674,7 +9650,7 @@ 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"` @@ -9688,7 +9664,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{119} } func (m *RawCoprocessorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9698,15 +9674,15 @@ func (m *RawCoprocessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_RawCoprocessorResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawCoprocessorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawCoprocessorResponse.Merge(dst, src) } func (m *RawCoprocessorResponse) XXX_Size() int { return m.Size() @@ -9739,9 +9715,9 @@ func (m *RawCoprocessorResponse) GetData() []byte { } type RawChecksumRequest struct { - Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` + 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,proto3" json:"ranges,omitempty"` + Ranges []*KeyRange `protobuf:"bytes,3,rep,name=ranges" json:"ranges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -9751,7 +9727,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{120} } func (m *RawChecksumRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9761,15 +9737,15 @@ func (m *RawChecksumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawChecksumRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawChecksumRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawChecksumRequest.Merge(dst, src) } func (m *RawChecksumRequest) XXX_Size() int { return m.Size() @@ -9802,7 +9778,7 @@ 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"` + 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"` @@ -9816,7 +9792,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{121} } func (m *RawChecksumResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9826,15 +9802,15 @@ func (m *RawChecksumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RawChecksumResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawChecksumResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawChecksumResponse.Merge(dst, src) } func (m *RawChecksumResponse) XXX_Size() int { return m.Size() @@ -9882,7 +9858,6 @@ func (m *RawChecksumResponse) GetTotalBytes() uint64 { type CompactError struct { // Types that are valid to be assigned to Error: - // // *CompactError_ErrInvalidStartKey // *CompactError_ErrPhysicalTableNotExist // *CompactError_ErrCompactInProgress @@ -9897,7 +9872,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{122} } func (m *CompactError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -9907,15 +9882,15 @@ func (m *CompactError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_CompactError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactError) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactError.Merge(dst, src) } func (m *CompactError) XXX_Size() int { return m.Size() @@ -9933,16 +9908,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() {} @@ -9985,9 +9960,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), @@ -9995,6 +9970,108 @@ 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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *CompactError_ErrPhysicalTableNotExist: + s := proto.Size(x.ErrPhysicalTableNotExist) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *CompactError_ErrCompactInProgress: + s := proto.Size(x.ErrCompactInProgress) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *CompactError_ErrTooManyPendingTasks: + s := proto.Size(x.ErrTooManyPendingTasks) + n += 1 // tag and wire + 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:"-"` @@ -10005,7 +10082,7 @@ func (m *CompactErrorInvalidStartKey) Reset() { *m = CompactErrorInvalid func (m *CompactErrorInvalidStartKey) String() string { return proto.CompactTextString(m) } func (*CompactErrorInvalidStartKey) ProtoMessage() {} func (*CompactErrorInvalidStartKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{123} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{123} } func (m *CompactErrorInvalidStartKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10015,15 +10092,15 @@ func (m *CompactErrorInvalidStartKey) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_CompactErrorInvalidStartKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactErrorInvalidStartKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorInvalidStartKey.Merge(dst, src) } func (m *CompactErrorInvalidStartKey) XXX_Size() int { return m.Size() @@ -10044,7 +10121,7 @@ func (m *CompactErrorPhysicalTableNotExist) Reset() { *m = CompactErrorP func (m *CompactErrorPhysicalTableNotExist) String() string { return proto.CompactTextString(m) } func (*CompactErrorPhysicalTableNotExist) ProtoMessage() {} func (*CompactErrorPhysicalTableNotExist) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{124} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{124} } func (m *CompactErrorPhysicalTableNotExist) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10054,15 +10131,15 @@ func (m *CompactErrorPhysicalTableNotExist) XXX_Marshal(b []byte, deterministic return xxx_messageInfo_CompactErrorPhysicalTableNotExist.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactErrorPhysicalTableNotExist) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorPhysicalTableNotExist.Merge(dst, src) } func (m *CompactErrorPhysicalTableNotExist) XXX_Size() int { return m.Size() @@ -10083,7 +10160,7 @@ func (m *CompactErrorCompactInProgress) Reset() { *m = CompactErrorCompa func (m *CompactErrorCompactInProgress) String() string { return proto.CompactTextString(m) } func (*CompactErrorCompactInProgress) ProtoMessage() {} func (*CompactErrorCompactInProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{125} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{125} } func (m *CompactErrorCompactInProgress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10093,15 +10170,15 @@ func (m *CompactErrorCompactInProgress) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_CompactErrorCompactInProgress.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactErrorCompactInProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorCompactInProgress.Merge(dst, src) } func (m *CompactErrorCompactInProgress) XXX_Size() int { return m.Size() @@ -10122,7 +10199,7 @@ func (m *CompactErrorTooManyPendingTasks) Reset() { *m = CompactErrorToo func (m *CompactErrorTooManyPendingTasks) String() string { return proto.CompactTextString(m) } func (*CompactErrorTooManyPendingTasks) ProtoMessage() {} func (*CompactErrorTooManyPendingTasks) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{126} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{126} } func (m *CompactErrorTooManyPendingTasks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10132,15 +10209,15 @@ func (m *CompactErrorTooManyPendingTasks) XXX_Marshal(b []byte, deterministic bo return xxx_messageInfo_CompactErrorTooManyPendingTasks.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *CompactErrorTooManyPendingTasks) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompactErrorTooManyPendingTasks.Merge(m, src) +func (dst *CompactErrorTooManyPendingTasks) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactErrorTooManyPendingTasks.Merge(dst, src) } func (m *CompactErrorTooManyPendingTasks) XXX_Size() int { return m.Size() @@ -10182,7 +10259,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{127} } func (m *CompactRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10192,15 +10269,15 @@ func (m *CompactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_CompactRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactRequest.Merge(dst, src) } func (m *CompactRequest) XXX_Size() int { return m.Size() @@ -10247,7 +10324,7 @@ 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"` @@ -10262,7 +10339,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{128} } func (m *CompactResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10272,15 +10349,15 @@ func (m *CompactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_CompactResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactResponse.Merge(dst, src) } func (m *CompactResponse) XXX_Size() int { return m.Size() @@ -10330,7 +10407,7 @@ func (m *TiFlashSystemTableRequest) Reset() { *m = TiFlashSystemTableReq func (m *TiFlashSystemTableRequest) String() string { return proto.CompactTextString(m) } func (*TiFlashSystemTableRequest) ProtoMessage() {} func (*TiFlashSystemTableRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{129} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{129} } func (m *TiFlashSystemTableRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10340,15 +10417,15 @@ func (m *TiFlashSystemTableRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_TiFlashSystemTableRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TiFlashSystemTableRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashSystemTableRequest.Merge(dst, src) } func (m *TiFlashSystemTableRequest) XXX_Size() int { return m.Size() @@ -10377,7 +10454,7 @@ func (m *TiFlashSystemTableResponse) Reset() { *m = TiFlashSystemTableRe func (m *TiFlashSystemTableResponse) String() string { return proto.CompactTextString(m) } func (*TiFlashSystemTableResponse) ProtoMessage() {} func (*TiFlashSystemTableResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1afe832be69693c7, []int{130} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{130} } func (m *TiFlashSystemTableResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10387,15 +10464,15 @@ func (m *TiFlashSystemTableResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_TiFlashSystemTableResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TiFlashSystemTableResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TiFlashSystemTableResponse.Merge(dst, src) } func (m *TiFlashSystemTableResponse) XXX_Size() int { return m.Size() @@ -10409,8 +10486,8 @@ 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"` @@ -10427,7 +10504,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{131} } func (m *FlushRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10437,15 +10514,15 @@ func (m *FlushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_FlushRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlushRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlushRequest.Merge(dst, src) } func (m *FlushRequest) XXX_Size() int { return m.Size() @@ -10513,9 +10590,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -10525,7 +10602,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{132} } func (m *FlushResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10535,15 +10612,15 @@ func (m *FlushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_FlushResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlushResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlushResponse.Merge(dst, src) } func (m *FlushResponse) XXX_Size() int { return m.Size() @@ -10578,8 +10655,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -10590,7 +10667,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{133} } func (m *BufferBatchGetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10600,15 +10677,15 @@ func (m *BufferBatchGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_BufferBatchGetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BufferBatchGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BufferBatchGetRequest.Merge(dst, src) } func (m *BufferBatchGetRequest) XXX_Size() int { return m.Size() @@ -10641,11 +10718,11 @@ 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"` + ExecDetailsV2 *ExecDetailsV2 `protobuf:"bytes,4,opt,name=exec_details_v2,json=execDetailsV2" json:"exec_details_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -10655,7 +10732,7 @@ 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} + return fileDescriptor_kvrpcpb_abc33f417130e774, []int{134} } func (m *BufferBatchGetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -10665,15 +10742,15 @@ func (m *BufferBatchGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_BufferBatchGetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BufferBatchGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BufferBatchGetResponse.Merge(dst, src) } func (m *BufferBatchGetResponse) XXX_Size() int { return m.Size() @@ -10713,20 +10790,6 @@ func (m *BufferBatchGetResponse) GetExecDetailsV2() *ExecDetailsV2 { } 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") @@ -10863,463 +10926,25 @@ func init() { proto.RegisterType((*FlushResponse)(nil), "kvrpcpb.FlushResponse") proto.RegisterType((*BufferBatchGetRequest)(nil), "kvrpcpb.BufferBatchGetRequest") proto.RegisterType((*BufferBatchGetResponse)(nil), "kvrpcpb.BufferBatchGetResponse") + proto.RegisterEnum("kvrpcpb.PessimisticLockWakeUpMode", PessimisticLockWakeUpMode_name, PessimisticLockWakeUpMode_value) + proto.RegisterEnum("kvrpcpb.PessimisticLockKeyResultType", PessimisticLockKeyResultType_name, PessimisticLockKeyResultType_value) + proto.RegisterEnum("kvrpcpb.APIVersion", APIVersion_name, APIVersion_value) + proto.RegisterEnum("kvrpcpb.CommandPri", CommandPri_name, CommandPri_value) + proto.RegisterEnum("kvrpcpb.IsolationLevel", IsolationLevel_name, IsolationLevel_value) + proto.RegisterEnum("kvrpcpb.DiskFullOpt", DiskFullOpt_name, DiskFullOpt_value) + proto.RegisterEnum("kvrpcpb.Op", Op_name, Op_value) + proto.RegisterEnum("kvrpcpb.Assertion", Assertion_name, Assertion_value) + proto.RegisterEnum("kvrpcpb.AssertionLevel", AssertionLevel_name, AssertionLevel_value) + proto.RegisterEnum("kvrpcpb.Action", Action_name, Action_value) + proto.RegisterEnum("kvrpcpb.ExtraOp", ExtraOp_name, ExtraOp_value) + proto.RegisterEnum("kvrpcpb.ChecksumAlgorithm", ChecksumAlgorithm_name, ChecksumAlgorithm_value) + proto.RegisterEnum("kvrpcpb.PrewriteRequest_PessimisticAction", PrewriteRequest_PessimisticAction_name, PrewriteRequest_PessimisticAction_value) + proto.RegisterEnum("kvrpcpb.WriteConflict_Reason", WriteConflict_Reason_name, WriteConflict_Reason_value) } - -func init() { proto.RegisterFile("kvrpcpb.proto", fileDescriptor_1afe832be69693c7) } - -var fileDescriptor_1afe832be69693c7 = []byte{ - // 7113 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7c, 0x5b, 0x6c, 0x23, 0xc9, - 0xb5, 0xd8, 0x34, 0x49, 0x89, 0xd4, 0xa1, 0x44, 0xb5, 0x4a, 0x2f, 0x4a, 0x33, 0xb3, 0xa3, 0xe9, - 0xf5, 0xec, 0x8e, 0xb5, 0x5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0xc1, 0x92, 0x16, 0xad, 0x41, 0x95, 0x12, 0x37, 0x0c, 0x5a, 0x38, 0xf6, 0x08, 0xad, 0x4f, 0xaf, - 0x15, 0xb9, 0xfc, 0x33, 0x20, 0x74, 0x09, 0x80, 0xc5, 0x7c, 0x58, 0x10, 0x27, 0x72, 0xeb, 0x33, - 0xd2, 0x07, 0xb0, 0x78, 0xb0, 0x13, 0x90, 0x5d, 0x57, 0x70, 0x83, 0x8f, 0x32, 0xdc, 0xd4, 0x14, - 0x37, 0xf8, 0x28, 0xe1, 0xe6, 0x03, 0x98, 0xc5, 0x94, 0x92, 0x98, 0x77, 0xdf, 0xf1, 0xc9, 0x01, - 0xf1, 0xeb, 0xb3, 0x6b, 0xc6, 0xf5, 0xda, 0xe6, 0x72, 0x22, 0xc9, 0x9b, 0x1a, 0xff, 0x90, 0xa3, - 0xed, 0x1a, 0xce, 0x7d, 0x23, 0x0f, 0x56, 0x72, 0x72, 0xc9, 0x28, 0x93, 0xd6, 0x4d, 0x61, 0x67, - 0x1b, 0x4f, 0xd5, 0xca, 0xdd, 0x44, 0x78, 0x8d, 0x54, 0xcf, 0xf6, 0x52, 0x46, 0xa6, 0x29, 0x98, - 0xa2, 0xd7, 0x60, 0x96, 0x6b, 0x67, 0xdf, 0xf3, 0x89, 0xe3, 0x76, 0xfa, 0x41, 0x97, 0xd6, 0x5b, - 0x6b, 0xc5, 0xeb, 0x25, 0x7b, 0x86, 0x1d, 0x05, 0x77, 0x3d, 0x9f, 0x6c, 0x09, 0xe0, 0xea, 0x1e, - 0x2c, 0x8e, 0xad, 0x98, 0xbb, 0x1d, 0x2f, 0x68, 0x91, 0x23, 0x31, 0x5a, 0x66, 0x6c, 0xf9, 0x81, - 0xde, 0x86, 0x25, 0x72, 0x14, 0x11, 0x97, 0x91, 0x96, 0x93, 0x57, 0x71, 0x41, 0x08, 0x6c, 0x5e, - 0x63, 0xd3, 0x4a, 0xa9, 0xb5, 0x07, 0x73, 0x23, 0x26, 0x85, 0x56, 0x61, 0xa9, 0xf1, 0x60, 0x7b, - 0xd7, 0xd9, 0xbd, 0xd3, 0x68, 0x6c, 0x3f, 0xda, 0x6e, 0x34, 0xb7, 0xb7, 0x9c, 0xad, 0xfb, 0x77, - 0xb6, 0x1e, 0x98, 0x17, 0x50, 0x1d, 0x16, 0x6e, 0xef, 0x8c, 0xc1, 0x18, 0x68, 0x19, 0xe6, 0x6f, - 0xef, 0x38, 0x5b, 0x3b, 0x8f, 0x1b, 0x4d, 0xfb, 0xe6, 0xf6, 0xe3, 0xa6, 0x42, 0x14, 0xac, 0xff, - 0x6b, 0x80, 0x99, 0x4a, 0xec, 0xec, 0xae, 0xe8, 0x8b, 0x30, 0x29, 0xb0, 0xa3, 0xe3, 0x3e, 0x71, - 0x32, 0x8a, 0x60, 0xd4, 0x82, 0x8b, 0xa3, 0x16, 0xfc, 0x3a, 0x98, 0xd2, 0xe2, 0x32, 0x64, 0x72, - 0xe0, 0xcf, 0x84, 0xdc, 0xf0, 0x12, 0xc2, 0x31, 0x93, 0xd0, 0xc4, 0x33, 0x4c, 0x42, 0xd6, 0x4f, - 0x4b, 0xb0, 0x94, 0x11, 0x32, 0x77, 0x39, 0x7f, 0x56, 0x3c, 0xdf, 0x88, 0x37, 0x99, 0x1c, 0xeb, - 0x4d, 0x3c, 0xea, 0xec, 0x7b, 0x31, 0x65, 0x92, 0x8f, 0xb2, 0x18, 0xe0, 0x55, 0x8f, 0xde, 0xe5, - 0x30, 0xc1, 0xc7, 0x55, 0x98, 0x3e, 0xc4, 0x5c, 0x05, 0x5e, 0x8f, 0x84, 0x7d, 0x26, 0x9c, 0x56, - 0xd1, 0xae, 0x72, 0x58, 0x53, 0x82, 0x50, 0x1d, 0x26, 0xf6, 0xc3, 0xd8, 0x25, 0xc2, 0x61, 0x55, - 0x6e, 0x15, 0xea, 0x86, 0x2d, 0x01, 0xbc, 0x13, 0x31, 0x61, 0xfd, 0x38, 0x70, 0x44, 0x44, 0x21, - 0xdd, 0x55,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 0x39, 0x8e, 0xb2, 0x35, 0x86, 0x73, - 0x6b, 0xfd, 0xf7, 0x02, 0x2c, 0x8f, 0x8c, 0x9c, 0x97, 0xe2, 0x40, 0xae, 0xc0, 0xd4, 0x90, 0xf3, - 0x10, 0x16, 0x57, 0x71, 0xb5, 0xad, 0xd4, 0xb5, 0xd4, 0x78, 0x7f, 0xa7, 0xa5, 0x39, 0x4a, 0xc9, - 0x2d, 0xc1, 0xa4, 0xb2, 0xc3, 0x09, 0x31, 0xd5, 0xa9, 0x2f, 0x74, 0x19, 0x20, 0x09, 0x74, 0xf9, - 0x40, 0x29, 0x72, 0x91, 0xea, 0x48, 0x77, 0xac, 0x97, 0x29, 0x3f, 0x83, 0x97, 0x41, 0x5f, 0xe5, - 0x01, 0x24, 0x57, 0x2d, 0xad, 0x57, 0x44, 0xef, 0xae, 0x9e, 0x68, 0x04, 0xb6, 0x2e, 0x61, 0xfd, - 0xc8, 0x80, 0xd5, 0x0c, 0x95, 0x1d, 0xfa, 0xfe, 0x1e, 0x3e, 0x9b, 0x9b, 0x1a, 0x71, 0x29, 0x85, - 0x31, 0x2e, 0x65, 0xc4, 0x6f, 0x14, 0x47, 0xfd, 0x06, 0x82, 0x52, 0x97, 0x0c, 0xb8, 0x41, 0x71, - 0x29, 0x8a, 0xff, 0xd6, 0x4f, 0x0c, 0xb8, 0x38, 0x96, 0xcf, 0x97, 0x62, 0x14, 0x63, 0x54, 0x54, - 0x7c, 0x96, 0x89, 0xe0, 0xdf, 0x1b, 0x30, 0xdf, 0x3c, 0x0a, 0xee, 0x13, 0x1c, 0xb3, 0x5b, 0x04, - 0x9f, 0x69, 0x71, 0x37, 0xec, 0xd4, 0x0b, 0xa7, 0x70, 0xea, 0xc5, 0x31, 0x1a, 0x78, 0x0d, 0x66, - 0x71, 0xeb, 0xc0, 0xa3, 0xc4, 0x49, 0x7c, 0xbb, 0x9a, 0xfc, 0x24, 0xf8, 0xa1, 0xf2, 0xf0, 0xaf, - 0x40, 0xd5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x19, 0xea, 0xf9, 0x1a, 0x84, 0x3d, 0xc8, 0xc2, 0xd2, 0x50, 0x17, 0xb3, 0x85, 0xf9, - 0xc8, 0x90, 0x05, 0xdf, 0x85, 0xe5, 0x31, 0x05, 0xb9, 0x21, 0x29, 0x6b, 0x5d, 0x18, 0x2e, 0xc7, - 0x6d, 0xea, 0x29, 0xed, 0x05, 0x38, 0x08, 0xf5, 0x12, 0x62, 0xa4, 0xbd, 0xc7, 0x1c, 0xc9, 0x3d, - 0x74, 0x9b, 0x30, 0x87, 0x06, 0x38, 0xa2, 0x9d, 0x90, 0xa9, 0x22, 0xf2, 0xf5, 0x08, 0xb3, 0x4d, - 0x58, 0x43, 0x21, 0x24, 0x35, 0x17, 0x4c, 0xb2, 0xa9, 0xcc, 0x47, 0x60, 0x14, 0x52, 0x22, 0xc7, - 0x94, 0x2c, 0x58, 0x55, 0x82, 0xd1, 0xfb, 0xcc, 0xbb, 0x92, 0x84, 0x8f, 0xad, 0x71, 0x35, 0xf0, - 0xb0, 0xca, 0x8b, 0x7b, 0xd9, 0x1a, 0xa6, 0x87, 0x6a, 0xd8, 0x92, 0x24, 0xa3, 0x35, 0x44, 0x61, - 0xe8, 0x3b, 0xd4, 0xed, 0x90, 0x56, 0xdf, 0xcf, 0xf1, 0x30, 0x93, 0xd6, 0xb0, 0x1b, 0x86, 0x7e, - 0x43, 0x91, 0x24, 0x35, 0x58, 0x7f, 0xcd, 0x80, 0x6a, 0x26, 0xd7, 0x14, 0xbd, 0x03, 0x55, 0xe1, - 0x11, 0x64, 0x6a, 0xaa, 0x1a, 0x86, 0xe9, 0xe6, 0x41, 0xea, 0x80, 0x6d, 0x60, 0xe9, 0xdc, 0xf2, - 0x0e, 0x54, 0xc5, 0xde, 0x9d, 0x2a, 0x55, 0x18, 0xde, 0x72, 0x48, 0x86, 0x96, 0x0d, 0x34, 0xf9, - 0x2f, 0xb3, 0xe9, 0xe5, 0xce, 0x82, 0xf5, 0x7f, 0x0c, 0x98, 0xc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, 0xfe, 0x6b, 0x6f, 0x99, 0x86, 0x48, - 0xc2, 0xda, 0x92, 0x49, 0x58, 0x0d, 0xb3, 0xb0, 0xfe, 0x04, 0xaa, 0x99, 0x24, 0x74, 0xce, 0xeb, - 0xe3, 0x90, 0xdd, 0xf4, 0xfd, 0xf0, 0x90, 0xb4, 0x76, 0x02, 0x0e, 0x96, 0x22, 0x4b, 0x40, 0x37, - 0xfd, 0x5e, 0x48, 0x99, 0x40, 0x18, 0xa8, 0x0e, 0x0b, 0x19, 0x84, 0x48, 0xd9, 0x12, 0x98, 0xc2, - 0xba, 0x0b, 0x85, 0x9d, 0x88, 0x73, 0xb8, 0xdb, 0x67, 0x92, 0xd5, 0xdb, 0xc4, 0x97, 0xac, 0x0a, - 0x71, 0x17, 0xd0, 0x34, 0x54, 0xf4, 0xfe, 0xb1, 0x59, 0xe4, 0xfd, 0xda, 0x0e, 0xf8, 0xd8, 0x36, - 0x4b, 0x68, 0x1e, 0x66, 0x87, 0x14, 0x61, 0x4e, 0x20, 0x04, 0x35, 0xc1, 0xb5, 0x9e, 0xca, 0xa9, - 0x39, 0xb9, 0xbe, 0x01, 0x53, 0x89, 0x83, 0xe0, 0x35, 0x3f, 0x0e, 0x03, 0x22, 0x85, 0x28, 0x48, - 0x4c, 0x83, 0x37, 0xa2, 0x0b, 0x48, 0xe9, 0xe4, 0x1d, 0x0a, 0xe7, 0x6b, 0x67, 0x7f, 0xdf, 0xbc, - 0xc0, 0x4b, 0xdf, 0xc5, 0xa2, 0x08, 0xc0, 0x64, 0x83, 0xc5, 0x5c, 0x75, 0x85, 0xf5, 0x1f, 0x18, - 0x30, 0xa9, 0x5e, 0xad, 0x17, 0x35, 0xc9, 0xff, 0xe6, 0x05, 0xb4, 0x08, 0x73, 0xcd, 0xe6, 0x43, - 0x99, 0xd6, 0x95, 0xf4, 0x42, 0xc8, 0x43, 0x1c, 0x0d, 0xa9, 0x26, 0x13, 0x4c, 0x81, 0x17, 0x78, - 0x94, 0x78, 0xcd, 0xc6, 0x6e, 0x9f, 0x76, 0x48, 0xcb, 0x2c, 0x72, 0xeb, 0x49, 0xea, 0x19, 0xf3, - 0xf2, 0xb0, 0x59, 0x42, 0x2b, 0xb0, 0x98, 0xad, 0xf2, 0x76, 0xf8, 0x38, 0x64, 0x1d, 0x2f, 0x68, - 0x9b, 0x13, 0xeb, 0xd7, 0xa0, 0x7c, 0xe7, 0x88, 0xc5, 0x78, 0x27, 0x92, 0x9d, 0x0f, 0x23, 0xf3, - 0x02, 0x32, 0x61, 0xda, 0x26, 0xb8, 0xb5, 0xe3, 0xb7, 0xc4, 0x3a, 0xda, 0x34, 0xd6, 0x2d, 0x98, - 0x1b, 0x89, 0xf4, 0xb9, 0x19, 0x6c, 0xc5, 0xee, 0x7b, 0xef, 0x38, 0x7f, 0x3e, 0x8c, 0xcd, 0x0b, - 0xb7, 0x5e, 0xfb, 0x4f, 0xff, 0xb0, 0x62, 0x7c, 0xf6, 0xf9, 0x2b, 0xc6, 0x2f, 0x3f, 0x7f, 0xc5, - 0xf8, 0xaf, 0x9f, 0xbf, 0x62, 0xfc, 0xbd, 0xff, 0xf6, 0xca, 0x05, 0x30, 0xc3, 0xb8, 0xbd, 0xc1, - 0xbc, 0xee, 0xc1, 0x86, 0x9a, 0xdd, 0xf6, 0x26, 0xc5, 0xcf, 0xdb, 0xff, 0x3f, 0x00, 0x00, 0xff, - 0xff, 0x34, 0x2b, 0x0f, 0xca, 0xd2, 0x66, 0x00, 0x00, -} - func (m *GetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -11327,50 +10952,41 @@ func (m *GetRequest) Marshal() (dAtA []byte, err error) { } func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x18 + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n1, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Version != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11378,79 +10994,66 @@ 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 + 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)) + 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] = 0x12 + i += n4 } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11458,87 +11061,77 @@ 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 + i++ } - if m.Limit != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 + if len(m.EndKey) > 0 { + dAtA[i] = 0x3a + 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.SampleStep != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.SampleStep)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11546,64 +11139,52 @@ 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.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 += n6 } - 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] = 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 + 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 } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11611,187 +11192,171 @@ 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 - } - if m.MinCommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) - i-- - dAtA[i] = 0x50 - } - if m.ForUpdateTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ForUpdateTs)) - i-- - dAtA[i] = 0x48 - } - if m.TxnSize != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TxnSize)) - i-- - dAtA[i] = 0x40 + i++ } - if len(m.PessimisticActions) > 0 { - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -11799,36 +11364,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11836,74 +11395,62 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11911,139 +11458,128 @@ 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 + i++ } - 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 - } + if m.WakeUpMode != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WakeUpMode)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12051,63 +11587,56 @@ 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 + 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] = 0x12 - } - if m.Type != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12115,112 +11644,96 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12228,57 +11741,48 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12286,64 +11790,52 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12351,67 +11843,58 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12419,67 +11902,55 @@ 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)) + 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] = 0x12 + i += n24 } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12487,112 +11958,103 @@ 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 + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12600,89 +12062,75 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12690,52 +12138,43 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12743,81 +12182,67 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12825,69 +12250,60 @@ 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12895,67 +12311,55 @@ 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)) + 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] = 0x12 + i += n37 } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12963,45 +12367,37 @@ 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 len(m.Mutations) > 0 { + for _, msg := range m.Mutations { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.CommitVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitVersion)) } - if len(m.Mutations) > 0 { - for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 } @@ -13009,45 +12405,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13055,55 +12442,46 @@ func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { } func (m *CleanupRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CleanupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n39, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 } - if m.CurrentTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) - i-- - dAtA[i] = 0x20 + if len(m.Key) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 + if m.CurrentTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CurrentTs)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13111,55 +12489,45 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13167,52 +12535,43 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13220,76 +12579,62 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13297,64 +12642,55 @@ 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.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 += n46 + } + if m.StartVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) + } + if len(m.Keys) > 0 { + for _, b := range m.Keys { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } if m.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 len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.StartVersion != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartVersion)) - i-- - dAtA[i] = 0x10 + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13362,62 +12698,50 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13425,62 +12749,52 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13488,76 +12802,62 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13565,83 +12865,72 @@ 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13649,62 +12938,50 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13712,43 +12989,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13756,50 +13025,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13807,62 +13066,52 @@ 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 + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13870,45 +13119,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13916,62 +13156,52 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13979,45 +13209,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14025,67 +13246,57 @@ 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.StartTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) } - if m.Version != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x10 + if m.CommitTs != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) } - if m.Context != nil { - { - size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14093,45 +13304,36 @@ func (m *FlashbackToVersionResponse) Marshal() (dAtA []byte, err error) { } func (m *FlashbackToVersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlashbackToVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n66, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 } 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14139,52 +13341,42 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14192,62 +13384,52 @@ 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 + i++ } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14255,54 +13437,44 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14310,52 +13482,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -14363,74 +13525,63 @@ 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14438,45 +13589,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14484,92 +13626,80 @@ 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 + i++ } - 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)) + 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-- - dAtA[i] = 0x12 + dAtA75[j74] = uint8(num) + j74++ } + dAtA[i] = 0x32 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(j74)) + i += copy(dAtA[i:], dAtA75[:j74]) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14577,45 +13707,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14623,62 +13744,52 @@ 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 + 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] = 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14686,45 +13797,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14732,64 +13834,54 @@ 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.Context != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Context.Size())) + n79, err := m.Context.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n79 } - if m.ForCas { - i-- - if m.ForCas { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Keys) > 0 { + for _, b := range m.Keys { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } - 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++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x12 + if m.ForCas { + dAtA[i] = 0x20 + i++ + if m.ForCas { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14797,45 +13889,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14843,84 +13926,73 @@ 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 + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14928,52 +14000,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -14981,59 +14043,48 @@ 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 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)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15041,45 +14092,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15087,84 +14129,73 @@ 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.Cf) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.Cf))) + i += copy(dAtA[i:], m.Cf) } - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if m.Reverse { + dAtA[i] = 0x30 + i++ + if m.Reverse { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15172,52 +14203,42 @@ func (m *RawBatchScanResponse) Marshal() (dAtA []byte, err error) { } func (m *RawBatchScanResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawBatchScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + n86, err := m.RegionError.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n86 } 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -15225,52 +14246,42 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15278,45 +14289,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15324,43 +14326,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15368,33 +14362,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -15402,101 +14389,84 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } return dAtA[:n], nil } -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) +func (m *CheckLockObserverResponse) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -15504,43 +14474,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15548,33 +14510,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15582,55 +14537,46 @@ 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.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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15638,47 +14584,38 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15686,64 +14623,54 @@ 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.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 += 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 _, b := range m.SplitKeys { + dAtA[i] = 0x1a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } if m.IsRawKv { - i-- + dAtA[i] = 0x20 + i++ if m.IsRawKv { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 - } - if len(m.SplitKeys) > 0 { - for iNdEx := len(m.SplitKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SplitKeys[iNdEx]) - copy(dAtA[i:], m.SplitKeys[iNdEx]) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.SplitKey) > 0 { - i -= len(m.SplitKey) - copy(dAtA[i:], m.SplitKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SplitKey))) - i-- - dAtA[i] = 0x12 + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15751,76 +14678,62 @@ func (m *SplitRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *SplitRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionError != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.RegionError.Size())) + 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 - } - if m.Left != nil { - { - size, err := m.Left.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Right.Size())) + n96, err := m.Right.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n96 } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Regions) > 0 { + for _, msg := range m.Regions { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -15828,57 +14741,47 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -15886,55 +14789,45 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15942,45 +14835,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15988,57 +14872,46 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16046,43 +14919,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16090,64 +14955,52 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16155,308 +15008,288 @@ 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 - } - if m.KeyspaceId != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x80 + i += n106 } - 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 - } - if len(m.ResourceGroupTag) > 0 { - i -= len(m.ResourceGroupTag) - copy(dAtA[i:], m.ResourceGroupTag) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ResourceGroupTag))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 + i++ } - if m.StaleRead { - i-- - if m.StaleRead { + if m.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 - } - if m.AppliedIndex != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x78 + i++ } - 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16464,50 +15297,41 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16515,48 +15339,41 @@ 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 len(m.SessionAlias) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.SessionAlias))) + i += copy(dAtA[i:], m.SessionAlias) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16564,106 +15381,97 @@ 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 - } - 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 + i++ } - if len(m.PrimaryLock) > 0 { - i -= len(m.PrimaryLock) - copy(dAtA[i:], m.PrimaryLock) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PrimaryLock))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16671,148 +15479,122 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16820,60 +15602,52 @@ 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.ConflictCommitTs != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictCommitTs)) } - if m.ConflictTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.ConflictTs)) - i-- - dAtA[i] = 0x10 + if m.Reason != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Reason)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16881,33 +15655,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -16915,57 +15682,48 @@ func (m *Deadlock) Marshal() (dAtA []byte, err error) { } func (m *Deadlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deadlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.LockTs != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTs)) } - if len(m.WaitChain) > 0 { - for iNdEx := len(m.WaitChain) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WaitChain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + if len(m.LockKey) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.LockKey))) + i += copy(dAtA[i:], m.LockKey) } if m.DeadlockKeyHash != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DeadlockKeyHash)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.DeadlockKeyHash)) } - if len(m.LockKey) > 0 { - i -= len(m.LockKey) - copy(dAtA[i:], m.LockKey) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.LockKey))) - i-- - dAtA[i] = 0x12 + if 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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16973,48 +15731,41 @@ 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.MinCommitTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.MinCommitTs)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17022,38 +15773,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17061,31 +15805,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17093,53 +15831,46 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -17147,38 +15878,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17186,46 +15909,40 @@ 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.TotalRpcWallTimeNs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.TotalRpcWallTimeNs)) } - if m.WaitWallTimeMs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.WaitWallTimeMs)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17233,61 +15950,55 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -17295,41 +16006,35 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17337,62 +16042,50 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17400,91 +16093,85 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17492,50 +16179,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17543,74 +16220,60 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17618,115 +16281,109 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17734,52 +16391,42 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17787,50 +16434,42 @@ 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.Assertion != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Assertion)) } - if m.Op != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Op)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17838,83 +16477,76 @@ 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 + i++ } - if len(m.ShortValue) > 0 { - i -= len(m.ShortValue) - copy(dAtA[i:], m.ShortValue) - i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.ShortValue))) - i-- - dAtA[i] = 0x22 + if m.GcFence != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.GcFence)) } - if m.CommitTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.CommitTs)) - i-- - dAtA[i] = 0x18 + if m.LastChangeTs != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 + if m.VersionsToLastChange != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) } - if m.Type != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17922,38 +16554,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17961,28 +16586,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 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 m.LastChangeTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) - i-- - dAtA[i] = 0x58 + 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) @@ -17996,77 +16657,31 @@ 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.LastChangeTs != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LastChangeTs)) } - if m.StartTs != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x10 + if m.VersionsToLastChange != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.VersionsToLastChange)) } - if m.Type != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18074,66 +16689,54 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -18141,48 +16744,42 @@ 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 + i++ } - if m.Txn != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Txn)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18190,40 +16787,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18231,65 +16820,55 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18297,36 +16876,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18334,45 +16907,37 @@ 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 len(m.Regions) > 0 { + for _, msg := range m.Regions { + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.Ts != 0 { - i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Ts)) } - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 } @@ -18380,24 +16945,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 @@ -18410,19 +16961,26 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18430,38 +16988,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18469,31 +17019,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -18501,52 +17045,42 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18554,60 +17088,51 @@ 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 + i++ } - if m.RegionError != nil { - { - size, err := m.RegionError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18615,81 +17140,69 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18697,72 +17210,62 @@ 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 len(m.PreviousValue) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.PreviousValue))) + i += copy(dAtA[i:], m.PreviousValue) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18770,38 +17273,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -18809,59 +17304,48 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -18869,38 +17353,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -18908,59 +17384,48 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -18968,73 +17433,60 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -19042,52 +17494,42 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -19095,57 +17537,47 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -19153,60 +17585,51 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -19214,119 +17637,83 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -19334,26 +17721,20 @@ 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) + i += 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 } @@ -19361,26 +17742,20 @@ 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) + i += 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 } @@ -19388,26 +17763,20 @@ 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) + i += 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 } @@ -19415,26 +17784,20 @@ 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) + i += 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 } @@ -19442,53 +17805,46 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -19496,62 +17852,52 @@ 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) } - return len(dAtA) - i, nil + if len(m.CompactedEndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(len(m.CompactedEndKey))) + i += copy(dAtA[i:], m.CompactedEndKey) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -19559,33 +17905,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -19593,36 +17932,28 @@ 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) + dAtA[i] = 0xa + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Data.Size())) + n162, err := m.Data.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - { - 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 += n162 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil + 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 } @@ -19630,84 +17961,73 @@ 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 m.Generation != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.Generation)) } - 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.LockTtl != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.LockTtl)) } - if len(m.Mutations) > 0 { - for iNdEx := len(m.Mutations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Mutations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintKvrpcpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if m.AssertionLevel != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintKvrpcpb(dAtA, i, uint64(m.AssertionLevel)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -19715,64 +18035,52 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -19780,52 +18088,43 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -19833,87 +18132,68 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -19934,9 +18214,6 @@ func (m *GetRequest) Size() (n int) { } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -19965,9 +18242,6 @@ func (m *GetResponse) Size() (n int) { } func (m *ScanRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20004,9 +18278,6 @@ func (m *ScanRequest) Size() (n int) { } func (m *ScanResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20030,9 +18301,6 @@ func (m *ScanResponse) Size() (n int) { } func (m *PrewriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20112,9 +18380,6 @@ func (m *PrewriteRequest) Size() (n int) { } func (m *PrewriteRequest_ForUpdateTSConstraint) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Index != 0 { @@ -20130,9 +18395,6 @@ func (m *PrewriteRequest_ForUpdateTSConstraint) Size() (n int) { } func (m *PrewriteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20162,9 +18424,6 @@ func (m *PrewriteResponse) Size() (n int) { } func (m *PessimisticLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20221,9 +18480,6 @@ func (m *PessimisticLockRequest) Size() (n int) { } func (m *PessimisticLockKeyResult) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -20249,9 +18505,6 @@ func (m *PessimisticLockKeyResult) Size() (n int) { } func (m *PessimisticLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20297,9 +18550,6 @@ func (m *PessimisticLockResponse) Size() (n int) { } func (m *PessimisticRollbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20325,9 +18575,6 @@ func (m *PessimisticRollbackRequest) Size() (n int) { } func (m *PessimisticRollbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20351,9 +18598,6 @@ func (m *PessimisticRollbackResponse) Size() (n int) { } func (m *TxnHeartBeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20380,9 +18624,6 @@ func (m *TxnHeartBeatRequest) Size() (n int) { } func (m *TxnHeartBeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20407,9 +18648,6 @@ func (m *TxnHeartBeatResponse) Size() (n int) { } func (m *CheckTxnStatusRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20451,9 +18689,6 @@ func (m *CheckTxnStatusRequest) Size() (n int) { } func (m *CheckTxnStatusResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20488,9 +18723,6 @@ func (m *CheckTxnStatusResponse) Size() (n int) { } func (m *CheckSecondaryLocksRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20513,9 +18745,6 @@ func (m *CheckSecondaryLocksRequest) Size() (n int) { } func (m *CheckSecondaryLocksResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20546,9 +18775,6 @@ func (m *CheckSecondaryLocksResponse) Size() (n int) { } func (m *CommitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20577,9 +18803,6 @@ func (m *CommitRequest) Size() (n int) { } func (m *CommitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20604,9 +18827,6 @@ func (m *CommitResponse) Size() (n int) { } func (m *ImportRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Mutations) > 0 { @@ -20625,9 +18845,6 @@ func (m *ImportRequest) Size() (n int) { } func (m *ImportResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20645,9 +18862,6 @@ func (m *ImportResponse) Size() (n int) { } func (m *CleanupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20671,9 +18885,6 @@ func (m *CleanupRequest) Size() (n int) { } func (m *CleanupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20694,9 +18905,6 @@ func (m *CleanupResponse) Size() (n int) { } func (m *BatchGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20719,9 +18927,6 @@ func (m *BatchGetRequest) Size() (n int) { } func (m *BatchGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20749,9 +18954,6 @@ func (m *BatchGetResponse) Size() (n int) { } func (m *BatchRollbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20777,9 +18979,6 @@ func (m *BatchRollbackRequest) Size() (n int) { } func (m *BatchRollbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20801,9 +19000,6 @@ func (m *BatchRollbackResponse) Size() (n int) { } func (m *ScanLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20831,9 +19027,6 @@ func (m *ScanLockRequest) Size() (n int) { } func (m *ScanLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20861,9 +19054,6 @@ func (m *ScanLockResponse) Size() (n int) { } func (m *ResolveLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20898,9 +19088,6 @@ func (m *ResolveLockRequest) Size() (n int) { } func (m *ResolveLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20922,9 +19109,6 @@ func (m *ResolveLockResponse) Size() (n int) { } func (m *GCRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20941,9 +19125,6 @@ func (m *GCRequest) Size() (n int) { } func (m *GCResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -20961,9 +19142,6 @@ func (m *GCResponse) Size() (n int) { } func (m *DeleteRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -20988,9 +19166,6 @@ func (m *DeleteRangeRequest) Size() (n int) { } func (m *DeleteRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21008,9 +19183,6 @@ func (m *DeleteRangeResponse) Size() (n int) { } func (m *PrepareFlashbackToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21038,9 +19210,6 @@ func (m *PrepareFlashbackToVersionRequest) Size() (n int) { } func (m *PrepareFlashbackToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21058,9 +19227,6 @@ func (m *PrepareFlashbackToVersionResponse) Size() (n int) { } func (m *FlashbackToVersionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21091,9 +19257,6 @@ func (m *FlashbackToVersionRequest) Size() (n int) { } func (m *FlashbackToVersionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21111,9 +19274,6 @@ func (m *FlashbackToVersionResponse) Size() (n int) { } func (m *RawGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21135,9 +19295,6 @@ func (m *RawGetRequest) Size() (n int) { } func (m *RawGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21162,9 +19319,6 @@ func (m *RawGetResponse) Size() (n int) { } func (m *RawBatchGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21188,9 +19342,6 @@ func (m *RawBatchGetRequest) Size() (n int) { } func (m *RawBatchGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21210,9 +19361,6 @@ func (m *RawBatchGetResponse) Size() (n int) { } func (m *RawPutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21244,9 +19392,6 @@ func (m *RawPutRequest) Size() (n int) { } func (m *RawPutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21264,9 +19409,6 @@ func (m *RawPutResponse) Size() (n int) { } func (m *RawBatchPutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21303,9 +19445,6 @@ func (m *RawBatchPutRequest) Size() (n int) { } func (m *RawBatchPutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21323,9 +19462,6 @@ func (m *RawBatchPutResponse) Size() (n int) { } func (m *RawDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21350,9 +19486,6 @@ func (m *RawDeleteRequest) Size() (n int) { } func (m *RawDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21370,9 +19503,6 @@ func (m *RawDeleteResponse) Size() (n int) { } func (m *RawBatchDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21399,9 +19529,6 @@ func (m *RawBatchDeleteRequest) Size() (n int) { } func (m *RawBatchDeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21419,9 +19546,6 @@ func (m *RawBatchDeleteResponse) Size() (n int) { } func (m *RawScanRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21456,9 +19580,6 @@ func (m *RawScanRequest) Size() (n int) { } func (m *RawScanResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21478,9 +19599,6 @@ func (m *RawScanResponse) Size() (n int) { } func (m *RawDeleteRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21506,9 +19624,6 @@ func (m *RawDeleteRangeRequest) Size() (n int) { } func (m *RawDeleteRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21526,9 +19641,6 @@ func (m *RawDeleteRangeResponse) Size() (n int) { } func (m *RawBatchScanRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21561,9 +19673,6 @@ func (m *RawBatchScanRequest) Size() (n int) { } func (m *RawBatchScanResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21583,9 +19692,6 @@ func (m *RawBatchScanResponse) Size() (n int) { } func (m *UnsafeDestroyRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21607,9 +19713,6 @@ func (m *UnsafeDestroyRangeRequest) Size() (n int) { } func (m *UnsafeDestroyRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21627,9 +19730,6 @@ func (m *UnsafeDestroyRangeResponse) Size() (n int) { } func (m *RegisterLockObserverRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21646,9 +19746,6 @@ func (m *RegisterLockObserverRequest) Size() (n int) { } func (m *RegisterLockObserverResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) @@ -21662,9 +19759,6 @@ func (m *RegisterLockObserverResponse) Size() (n int) { } func (m *CheckLockObserverRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21681,9 +19775,6 @@ func (m *CheckLockObserverRequest) Size() (n int) { } func (m *CheckLockObserverResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) @@ -21706,9 +19797,6 @@ func (m *CheckLockObserverResponse) Size() (n int) { } func (m *RemoveLockObserverRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21725,9 +19813,6 @@ func (m *RemoveLockObserverRequest) Size() (n int) { } func (m *RemoveLockObserverResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) @@ -21741,9 +19826,6 @@ func (m *RemoveLockObserverResponse) Size() (n int) { } func (m *PhysicalScanLockRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21767,9 +19849,6 @@ func (m *PhysicalScanLockRequest) Size() (n int) { } func (m *PhysicalScanLockResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Error) @@ -21789,9 +19868,6 @@ func (m *PhysicalScanLockResponse) Size() (n int) { } func (m *SplitRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21818,9 +19894,6 @@ func (m *SplitRegionRequest) Size() (n int) { } func (m *SplitRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21848,9 +19921,6 @@ func (m *SplitRegionResponse) Size() (n int) { } func (m *ReadIndexRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21873,9 +19943,6 @@ func (m *ReadIndexRequest) Size() (n int) { } func (m *ReadIndexResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21896,9 +19963,6 @@ func (m *ReadIndexResponse) Size() (n int) { } func (m *MvccGetByKeyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21916,9 +19980,6 @@ func (m *MvccGetByKeyRequest) Size() (n int) { } func (m *MvccGetByKeyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21940,9 +20001,6 @@ func (m *MvccGetByKeyResponse) Size() (n int) { } func (m *MvccGetByStartTsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -21959,9 +20017,6 @@ func (m *MvccGetByStartTsRequest) Size() (n int) { } func (m *MvccGetByStartTsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -21987,9 +20042,6 @@ func (m *MvccGetByStartTsResponse) Size() (n int) { } func (m *Context) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -22104,9 +20156,6 @@ func (m *Context) Size() (n int) { } func (m *ResourceControlContext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -22127,9 +20176,6 @@ func (m *ResourceControlContext) Size() (n int) { } func (m *SourceStmt) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -22152,9 +20198,6 @@ func (m *SourceStmt) Size() (n int) { } func (m *LockInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.PrimaryLock) @@ -22205,9 +20248,6 @@ func (m *LockInfo) Size() (n int) { } func (m *KeyError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Locked != nil { @@ -22261,9 +20301,6 @@ func (m *KeyError) Size() (n int) { } func (m *WriteConflict) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -22293,9 +20330,6 @@ func (m *WriteConflict) Size() (n int) { } func (m *AlreadyExist) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -22309,9 +20343,6 @@ func (m *AlreadyExist) Size() (n int) { } func (m *Deadlock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LockTs != 0 { @@ -22337,9 +20368,6 @@ func (m *Deadlock) Size() (n int) { } func (m *CommitTsExpired) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -22362,9 +20390,6 @@ func (m *CommitTsExpired) Size() (n int) { } func (m *TxnNotFound) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -22381,9 +20406,6 @@ func (m *TxnNotFound) Size() (n int) { } func (m *CommitTsTooLarge) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CommitTs != 0 { @@ -22396,9 +20418,6 @@ func (m *CommitTsTooLarge) Size() (n int) { } func (m *AssertionFailed) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -22424,9 +20443,6 @@ func (m *AssertionFailed) Size() (n int) { } func (m *PrimaryMismatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LockInfo != nil { @@ -22440,9 +20456,6 @@ func (m *PrimaryMismatch) Size() (n int) { } func (m *TimeDetail) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.WaitWallTimeMs != 0 { @@ -22464,9 +20477,6 @@ func (m *TimeDetail) Size() (n int) { } func (m *TimeDetailV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.WaitWallTimeNs != 0 { @@ -22497,9 +20507,6 @@ func (m *TimeDetailV2) Size() (n int) { } func (m *ScanInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Total != 0 { @@ -22518,9 +20525,6 @@ func (m *ScanInfo) Size() (n int) { } func (m *ScanDetail) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Write != nil { @@ -22542,9 +20546,6 @@ func (m *ScanDetail) Size() (n int) { } func (m *ScanDetailV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ProcessedVersions != 0 { @@ -22593,9 +20594,6 @@ func (m *ScanDetailV2) Size() (n int) { } func (m *ExecDetails) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TimeDetail != nil { @@ -22613,9 +20611,6 @@ func (m *ExecDetails) Size() (n int) { } func (m *ExecDetailsV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TimeDetail != nil { @@ -22641,9 +20636,6 @@ func (m *ExecDetailsV2) Size() (n int) { } func (m *WriteDetail) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreBatchWaitNanos != 0 { @@ -22704,9 +20696,6 @@ func (m *WriteDetail) Size() (n int) { } func (m *KvPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -22728,9 +20717,6 @@ func (m *KvPair) Size() (n int) { } func (m *Mutation) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Op != 0 { @@ -22754,9 +20740,6 @@ func (m *Mutation) Size() (n int) { } func (m *MvccWrite) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -22794,9 +20777,6 @@ func (m *MvccWrite) Size() (n int) { } func (m *MvccValue) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -22813,9 +20793,6 @@ func (m *MvccValue) Size() (n int) { } func (m *MvccLock) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -22870,9 +20847,6 @@ func (m *MvccLock) Size() (n int) { } func (m *MvccInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Lock != nil { @@ -22898,9 +20872,6 @@ func (m *MvccInfo) Size() (n int) { } func (m *TxnInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Txn != 0 { @@ -22919,9 +20890,6 @@ func (m *TxnInfo) Size() (n int) { } func (m *KeyRange) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -22939,9 +20907,6 @@ func (m *KeyRange) Size() (n int) { } func (m *LeaderInfo) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -22968,9 +20933,6 @@ func (m *LeaderInfo) Size() (n int) { } func (m *ReadState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AppliedIndex != 0 { @@ -22986,9 +20948,6 @@ func (m *ReadState) Size() (n int) { } func (m *CheckLeaderRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -23007,9 +20966,6 @@ func (m *CheckLeaderRequest) Size() (n int) { } func (m *CheckLeaderResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -23029,9 +20985,6 @@ func (m *CheckLeaderResponse) Size() (n int) { } func (m *StoreSafeTSRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyRange != nil { @@ -23045,9 +20998,6 @@ func (m *StoreSafeTSRequest) Size() (n int) { } func (m *StoreSafeTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SafeTs != 0 { @@ -23060,9 +21010,6 @@ func (m *StoreSafeTSResponse) Size() (n int) { } func (m *RawGetKeyTTLRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23084,9 +21031,6 @@ func (m *RawGetKeyTTLRequest) Size() (n int) { } func (m *RawGetKeyTTLResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23110,9 +21054,6 @@ func (m *RawGetKeyTTLResponse) Size() (n int) { } func (m *RawCASRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23148,9 +21089,6 @@ func (m *RawCASRequest) Size() (n int) { } func (m *RawCASResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23178,9 +21116,6 @@ func (m *RawCASResponse) Size() (n int) { } func (m *GetLockWaitInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23194,9 +21129,6 @@ func (m *GetLockWaitInfoRequest) Size() (n int) { } func (m *GetLockWaitInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23220,9 +21152,6 @@ func (m *GetLockWaitInfoResponse) Size() (n int) { } func (m *GetLockWaitHistoryRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23236,9 +21165,6 @@ func (m *GetLockWaitHistoryRequest) Size() (n int) { } func (m *GetLockWaitHistoryResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23262,9 +21188,6 @@ func (m *GetLockWaitHistoryResponse) Size() (n int) { } func (m *RawCoprocessorRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23296,9 +21219,6 @@ func (m *RawCoprocessorRequest) Size() (n int) { } func (m *RawCoprocessorResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23320,9 +21240,6 @@ func (m *RawCoprocessorResponse) Size() (n int) { } func (m *RawChecksumRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23345,9 +21262,6 @@ func (m *RawChecksumRequest) Size() (n int) { } func (m *RawChecksumResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23374,9 +21288,6 @@ func (m *RawChecksumResponse) Size() (n int) { } func (m *CompactError) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -23389,9 +21300,6 @@ func (m *CompactError) Size() (n int) { } func (m *CompactError_ErrInvalidStartKey) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ErrInvalidStartKey != nil { @@ -23401,9 +21309,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 { @@ -23413,9 +21318,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 { @@ -23425,9 +21327,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 { @@ -23437,9 +21336,6 @@ 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 { @@ -23449,9 +21345,6 @@ func (m *CompactErrorInvalidStartKey) Size() (n int) { } func (m *CompactErrorPhysicalTableNotExist) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -23461,9 +21354,6 @@ func (m *CompactErrorPhysicalTableNotExist) Size() (n int) { } func (m *CompactErrorCompactInProgress) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -23473,9 +21363,6 @@ func (m *CompactErrorCompactInProgress) Size() (n int) { } func (m *CompactErrorTooManyPendingTasks) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -23485,9 +21372,6 @@ func (m *CompactErrorTooManyPendingTasks) Size() (n int) { } func (m *CompactRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -23513,9 +21397,6 @@ func (m *CompactRequest) Size() (n int) { } func (m *CompactResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -23540,9 +21421,6 @@ func (m *CompactResponse) Size() (n int) { } func (m *TiFlashSystemTableRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Sql) @@ -23556,9 +21434,6 @@ func (m *TiFlashSystemTableRequest) Size() (n int) { } func (m *TiFlashSystemTableResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = m.Data.Size() @@ -23570,9 +21445,6 @@ func (m *TiFlashSystemTableResponse) Size() (n int) { } func (m *FlushRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23611,9 +21483,6 @@ func (m *FlushRequest) Size() (n int) { } func (m *FlushResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23637,9 +21506,6 @@ func (m *FlushResponse) Size() (n int) { } func (m *BufferBatchGetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Context != nil { @@ -23662,9 +21528,6 @@ func (m *BufferBatchGetRequest) Size() (n int) { } func (m *BufferBatchGetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionError != nil { @@ -23692,7 +21555,14 @@ func (m *BufferBatchGetResponse) Size() (n int) { } 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)))) @@ -23712,7 +21582,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 } @@ -23740,7 +21610,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 } @@ -23749,9 +21619,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23776,7 +21643,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 } @@ -23785,9 +21652,6 @@ func (m *GetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23810,7 +21674,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 } @@ -23821,7 +21685,7 @@ 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 { @@ -23852,7 +21716,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 } @@ -23880,7 +21744,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 } @@ -23889,9 +21753,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23916,7 +21777,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 } @@ -23925,9 +21786,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23952,7 +21810,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 } @@ -23961,9 +21819,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23986,7 +21841,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 } @@ -24006,7 +21861,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 } @@ -24015,9 +21870,6 @@ func (m *GetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24034,7 +21886,7 @@ 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 { @@ -24065,7 +21917,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 } @@ -24093,7 +21945,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 } @@ -24102,9 +21954,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24129,7 +21978,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 } @@ -24138,9 +21987,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24163,7 +22009,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 } @@ -24182,7 +22028,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 } @@ -24201,7 +22047,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 } @@ -24221,7 +22067,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 } @@ -24241,7 +22087,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 } @@ -24250,9 +22096,6 @@ func (m *ScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24275,7 +22118,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 } @@ -24286,7 +22129,7 @@ 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 { @@ -24317,7 +22160,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 } @@ -24345,7 +22188,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 } @@ -24354,9 +22197,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24381,7 +22221,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 } @@ -24390,9 +22230,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24415,7 +22252,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 } @@ -24424,9 +22261,6 @@ func (m *ScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24443,7 +22277,7 @@ 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 { @@ -24474,7 +22308,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 } @@ -24502,7 +22336,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 } @@ -24511,9 +22345,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24538,7 +22369,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 } @@ -24547,9 +22378,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24572,7 +22400,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 } @@ -24581,9 +22409,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24606,7 +22431,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 } @@ -24625,7 +22450,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 } @@ -24644,7 +22469,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 } @@ -24662,7 +22487,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 } @@ -24679,7 +22504,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 } @@ -24688,16 +22513,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 { @@ -24709,7 +22527,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 } @@ -24733,7 +22551,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 } @@ -24752,7 +22570,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 } @@ -24771,7 +22589,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 } @@ -24790,7 +22608,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 } @@ -24810,7 +22628,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 } @@ -24819,9 +22637,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24842,7 +22657,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 } @@ -24862,7 +22677,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 } @@ -24881,7 +22696,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 } @@ -24900,7 +22715,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 } @@ -24909,9 +22724,6 @@ func (m *PrewriteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24932,7 +22744,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 } @@ -24949,7 +22761,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 } @@ -24958,23 +22770,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 { @@ -24986,7 +22784,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 } @@ -25002,7 +22800,7 @@ 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 { @@ -25033,7 +22831,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 } @@ -25061,7 +22859,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 } @@ -25080,7 +22878,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 } @@ -25091,7 +22889,7 @@ 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 { @@ -25122,7 +22920,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 } @@ -25150,7 +22948,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 } @@ -25159,9 +22957,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25186,7 +22981,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 } @@ -25195,9 +22990,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25220,7 +23012,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 } @@ -25239,7 +23031,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 } @@ -25258,7 +23050,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 } @@ -25267,9 +23059,6 @@ func (m *PrewriteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25286,7 +23075,7 @@ 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 { @@ -25317,7 +23106,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 } @@ -25345,7 +23134,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 } @@ -25354,9 +23143,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25381,7 +23167,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 } @@ -25390,9 +23176,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25415,7 +23198,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 } @@ -25424,9 +23207,6 @@ func (m *PessimisticLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25449,7 +23229,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 } @@ -25468,7 +23248,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 } @@ -25487,7 +23267,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 } @@ -25506,7 +23286,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 } @@ -25526,7 +23306,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 } @@ -25545,7 +23325,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 } @@ -25565,7 +23345,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 } @@ -25585,7 +23365,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 } @@ -25604,7 +23384,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 } @@ -25624,7 +23404,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 } @@ -25644,7 +23424,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 } @@ -25655,7 +23435,7 @@ 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 { @@ -25686,7 +23466,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 } @@ -25714,7 +23494,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 } @@ -25733,7 +23513,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 } @@ -25742,9 +23522,6 @@ func (m *PessimisticLockKeyResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25767,7 +23544,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 } @@ -25787,7 +23564,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 } @@ -25806,7 +23583,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 } @@ -25818,7 +23595,7 @@ 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 { @@ -25849,7 +23626,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 } @@ -25877,7 +23654,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 } @@ -25886,9 +23663,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25913,7 +23687,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 } @@ -25922,9 +23696,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25947,7 +23718,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 } @@ -25966,7 +23737,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 } @@ -25975,9 +23746,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26000,7 +23768,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 } @@ -26009,9 +23777,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26030,7 +23795,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 } @@ -26047,7 +23812,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 } @@ -26056,17 +23821,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 { @@ -26078,7 +23835,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 } @@ -26102,7 +23859,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 } @@ -26111,9 +23868,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26138,7 +23892,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 } @@ -26147,9 +23901,6 @@ func (m *PessimisticLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26164,7 +23915,7 @@ 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 { @@ -26195,7 +23946,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 } @@ -26223,7 +23974,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 } @@ -26232,9 +23983,6 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26259,7 +24007,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 } @@ -26278,7 +24026,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 } @@ -26297,7 +24045,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 } @@ -26306,9 +24054,6 @@ func (m *PessimisticRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26321,7 +24066,7 @@ 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 { @@ -26352,7 +24097,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 } @@ -26380,7 +24125,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 } @@ -26389,9 +24134,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26416,7 +24158,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 } @@ -26425,9 +24167,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26450,7 +24189,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 } @@ -26459,9 +24198,6 @@ func (m *PessimisticRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26478,7 +24214,7 @@ 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 { @@ -26509,7 +24245,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 } @@ -26537,7 +24273,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 } @@ -26546,9 +24282,6 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26573,7 +24306,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 } @@ -26582,9 +24315,6 @@ func (m *TxnHeartBeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26607,7 +24337,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 } @@ -26626,7 +24356,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 } @@ -26645,7 +24375,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 } @@ -26657,7 +24387,7 @@ 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 { @@ -26688,7 +24418,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 } @@ -26716,7 +24446,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 } @@ -26725,9 +24455,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26752,7 +24479,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 } @@ -26761,9 +24488,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26788,7 +24512,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 } @@ -26807,7 +24531,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 } @@ -26816,9 +24540,6 @@ func (m *TxnHeartBeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26835,7 +24556,7 @@ 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 { @@ -26866,7 +24587,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 } @@ -26894,7 +24615,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 } @@ -26903,9 +24624,6 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26930,7 +24648,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 } @@ -26939,9 +24657,6 @@ func (m *CheckTxnStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26964,7 +24679,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 } @@ -26983,7 +24698,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 } @@ -27002,7 +24717,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 } @@ -27021,7 +24736,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 } @@ -27041,7 +24756,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 } @@ -27061,7 +24776,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 } @@ -27081,7 +24796,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 } @@ -27101,7 +24816,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 } @@ -27113,7 +24828,7 @@ 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 { @@ -27144,7 +24859,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 } @@ -27172,7 +24887,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 } @@ -27181,9 +24896,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27208,7 +24920,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 } @@ -27217,9 +24929,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27244,7 +24953,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 } @@ -27263,7 +24972,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 } @@ -27282,7 +24991,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 } @@ -27301,7 +25010,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 } @@ -27310,9 +25019,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27337,7 +25043,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 } @@ -27346,9 +25052,6 @@ func (m *CheckTxnStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27365,7 +25068,7 @@ 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 { @@ -27396,7 +25099,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 } @@ -27424,7 +25127,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 } @@ -27433,9 +25136,6 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27460,7 +25160,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 } @@ -27469,9 +25169,6 @@ func (m *CheckSecondaryLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27492,7 +25189,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 } @@ -27503,7 +25200,7 @@ 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 { @@ -27534,7 +25231,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 } @@ -27562,7 +25259,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 } @@ -27571,9 +25268,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27598,7 +25292,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 } @@ -27607,9 +25301,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27634,7 +25325,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 } @@ -27643,9 +25334,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27668,7 +25356,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 } @@ -27687,7 +25375,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 } @@ -27696,9 +25384,6 @@ func (m *CheckSecondaryLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27715,7 +25400,7 @@ 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 { @@ -27746,7 +25431,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 } @@ -27774,7 +25459,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 } @@ -27783,9 +25468,6 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27810,7 +25492,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 } @@ -27829,7 +25511,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 } @@ -27838,9 +25520,6 @@ func (m *CommitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27861,7 +25540,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 } @@ -27880,7 +25559,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 } @@ -27892,7 +25571,7 @@ 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 { @@ -27923,7 +25602,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 } @@ -27951,7 +25630,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 } @@ -27960,9 +25639,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27987,7 +25663,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 } @@ -27996,9 +25672,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28023,7 +25696,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 } @@ -28042,7 +25715,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 } @@ -28051,9 +25724,6 @@ func (m *CommitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28070,7 +25740,7 @@ 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 { @@ -28101,7 +25771,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 } @@ -28129,7 +25799,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 } @@ -28138,9 +25808,6 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28163,7 +25830,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 } @@ -28174,7 +25841,7 @@ 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 { @@ -28205,7 +25872,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 } @@ -28233,7 +25900,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 } @@ -28242,9 +25909,6 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28269,7 +25933,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 } @@ -28279,9 +25943,6 @@ func (m *ImportResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28293,7 +25954,7 @@ 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 { @@ -28324,7 +25985,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 } @@ -28352,7 +26013,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 } @@ -28361,9 +26022,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28388,7 +26046,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 } @@ -28397,9 +26055,6 @@ func (m *CleanupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28422,7 +26077,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 } @@ -28441,7 +26096,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 } @@ -28452,7 +26107,7 @@ 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 { @@ -28483,7 +26138,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 } @@ -28511,7 +26166,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 } @@ -28520,9 +26175,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28547,7 +26199,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 } @@ -28556,9 +26208,6 @@ func (m *CleanupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28583,7 +26232,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 } @@ -28594,7 +26243,7 @@ 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 { @@ -28625,7 +26274,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 } @@ -28653,7 +26302,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 } @@ -28662,9 +26311,6 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28689,7 +26335,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 } @@ -28698,9 +26344,6 @@ func (m *BatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28721,7 +26364,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 } @@ -28732,7 +26375,7 @@ 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 { @@ -28763,7 +26406,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 } @@ -28791,7 +26434,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 } @@ -28800,9 +26443,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28827,7 +26467,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 } @@ -28836,9 +26476,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28861,7 +26498,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 } @@ -28870,9 +26507,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28897,7 +26531,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 } @@ -28906,9 +26540,6 @@ func (m *BatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28925,7 +26556,7 @@ 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 { @@ -28956,7 +26587,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 } @@ -28984,7 +26615,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 } @@ -28993,9 +26624,6 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29020,7 +26648,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 } @@ -29039,7 +26667,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 } @@ -29048,9 +26676,6 @@ func (m *BatchRollbackRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29071,7 +26696,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 } @@ -29083,7 +26708,7 @@ 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 { @@ -29114,7 +26739,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 } @@ -29142,7 +26767,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 } @@ -29151,9 +26776,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29178,7 +26800,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 } @@ -29187,9 +26809,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29214,7 +26833,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 } @@ -29223,9 +26842,6 @@ func (m *BatchRollbackResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29242,7 +26858,7 @@ 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 { @@ -29273,7 +26889,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 } @@ -29301,7 +26917,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 } @@ -29310,9 +26926,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29337,7 +26950,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 } @@ -29356,7 +26969,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 } @@ -29365,9 +26978,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29390,7 +27000,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 } @@ -29409,7 +27019,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 } @@ -29418,9 +27028,6 @@ func (m *ScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29435,7 +27042,7 @@ 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 { @@ -29466,7 +27073,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 } @@ -29494,7 +27101,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 } @@ -29503,9 +27110,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29530,7 +27134,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 } @@ -29539,9 +27143,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29566,7 +27167,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 } @@ -29575,9 +27176,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29600,7 +27198,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 } @@ -29609,9 +27207,6 @@ func (m *ScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29628,7 +27223,7 @@ 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 { @@ -29659,7 +27254,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 } @@ -29687,7 +27282,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 } @@ -29696,9 +27291,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29723,7 +27315,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 } @@ -29742,7 +27334,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 } @@ -29761,7 +27353,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 } @@ -29770,9 +27362,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29795,7 +27384,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 } @@ -29804,9 +27393,6 @@ func (m *ResolveLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29827,7 +27413,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 } @@ -29839,7 +27425,7 @@ 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 { @@ -29870,7 +27456,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 } @@ -29898,7 +27484,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 } @@ -29907,9 +27493,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29934,7 +27517,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 } @@ -29943,9 +27526,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29970,7 +27550,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 } @@ -29979,9 +27559,6 @@ func (m *ResolveLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29998,7 +27575,7 @@ 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 { @@ -30029,7 +27606,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 } @@ -30057,7 +27634,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 } @@ -30066,9 +27643,6 @@ func (m *GCRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30093,7 +27667,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 } @@ -30104,7 +27678,7 @@ 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 { @@ -30135,7 +27709,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 } @@ -30163,7 +27737,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 } @@ -30172,9 +27746,6 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30199,7 +27770,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 } @@ -30208,9 +27779,6 @@ func (m *GCResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30227,7 +27795,7 @@ 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 { @@ -30258,7 +27826,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 } @@ -30286,7 +27854,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 } @@ -30295,9 +27863,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30322,7 +27887,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 } @@ -30331,9 +27896,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30356,7 +27918,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 } @@ -30365,9 +27927,6 @@ func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30390,7 +27949,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 } @@ -30402,7 +27961,7 @@ 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 { @@ -30433,7 +27992,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 } @@ -30461,7 +28020,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 } @@ -30470,9 +28029,6 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30497,7 +28053,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 } @@ -30507,9 +28063,6 @@ func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30521,7 +28074,7 @@ 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 { @@ -30552,7 +28105,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 } @@ -30580,7 +28133,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 } @@ -30589,9 +28142,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30616,7 +28166,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 } @@ -30625,9 +28175,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30650,7 +28197,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 } @@ -30659,9 +28206,6 @@ func (m *PrepareFlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30684,7 +28228,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 } @@ -30703,7 +28247,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 } @@ -30714,7 +28258,7 @@ 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 { @@ -30745,7 +28289,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 } @@ -30773,7 +28317,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 } @@ -30782,9 +28326,6 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30809,7 +28350,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 } @@ -30819,9 +28360,6 @@ func (m *PrepareFlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30833,7 +28371,7 @@ 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 { @@ -30864,7 +28402,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 } @@ -30892,7 +28430,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 } @@ -30901,9 +28439,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30928,7 +28463,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 } @@ -30947,7 +28482,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 } @@ -30956,9 +28491,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30981,7 +28513,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 } @@ -30990,9 +28522,6 @@ func (m *FlashbackToVersionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31015,7 +28544,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 } @@ -31034,7 +28563,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 } @@ -31045,7 +28574,7 @@ 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 { @@ -31076,7 +28605,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 } @@ -31104,7 +28633,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 } @@ -31113,9 +28642,6 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31140,7 +28666,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 } @@ -31150,9 +28676,6 @@ func (m *FlashbackToVersionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31164,7 +28687,7 @@ 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 { @@ -31195,7 +28718,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 } @@ -31223,7 +28746,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 } @@ -31232,9 +28755,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31259,7 +28779,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 } @@ -31268,9 +28788,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31293,7 +28810,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 } @@ -31303,9 +28820,6 @@ func (m *RawGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31317,7 +28831,7 @@ 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 { @@ -31348,7 +28862,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 } @@ -31376,7 +28890,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 } @@ -31385,9 +28899,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31412,7 +28923,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 } @@ -31422,9 +28933,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31444,7 +28952,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 } @@ -31453,9 +28961,6 @@ func (m *RawGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31478,7 +28983,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 } @@ -31490,7 +28995,7 @@ 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 { @@ -31521,7 +29026,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 } @@ -31549,7 +29054,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 } @@ -31558,9 +29063,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31585,7 +29087,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 } @@ -31594,9 +29096,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31617,7 +29116,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 } @@ -31627,9 +29126,6 @@ func (m *RawBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31641,7 +29137,7 @@ 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 { @@ -31672,7 +29168,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 } @@ -31700,7 +29196,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 } @@ -31709,9 +29205,6 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31736,7 +29229,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 } @@ -31745,9 +29238,6 @@ func (m *RawBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31762,7 +29252,7 @@ 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 { @@ -31793,7 +29283,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 } @@ -31821,7 +29311,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 } @@ -31830,9 +29320,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31857,7 +29344,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 } @@ -31866,9 +29353,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31891,7 +29375,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 } @@ -31900,9 +29384,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31925,7 +29406,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 } @@ -31935,9 +29416,6 @@ func (m *RawPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31957,7 +29435,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 } @@ -31976,7 +29454,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 } @@ -31988,7 +29466,7 @@ 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 { @@ -32019,7 +29497,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 } @@ -32047,7 +29525,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 } @@ -32056,9 +29534,6 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32083,7 +29558,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 } @@ -32093,9 +29568,6 @@ func (m *RawPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32107,7 +29579,7 @@ 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 { @@ -32138,7 +29610,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 } @@ -32166,7 +29638,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 } @@ -32175,9 +29647,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32202,7 +29671,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 } @@ -32211,9 +29680,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32236,7 +29702,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 } @@ -32246,9 +29712,6 @@ func (m *RawBatchPutRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32268,7 +29731,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 } @@ -32287,7 +29750,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 } @@ -32305,7 +29768,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 } @@ -32322,7 +29785,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 } @@ -32331,23 +29794,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 { @@ -32359,7 +29808,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 } @@ -32375,7 +29824,7 @@ 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 { @@ -32406,7 +29855,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 } @@ -32434,7 +29883,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 } @@ -32443,9 +29892,6 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32470,7 +29916,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 } @@ -32480,9 +29926,6 @@ func (m *RawBatchPutResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32494,7 +29937,7 @@ 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 { @@ -32525,7 +29968,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 } @@ -32553,7 +29996,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 } @@ -32562,9 +30005,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32589,7 +30029,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 } @@ -32598,9 +30038,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32623,7 +30060,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 } @@ -32633,9 +30070,6 @@ func (m *RawDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32655,7 +30089,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 } @@ -32667,7 +30101,7 @@ 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 { @@ -32698,7 +30132,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 } @@ -32726,7 +30160,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 } @@ -32735,9 +30169,6 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32762,7 +30193,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 } @@ -32772,9 +30203,6 @@ func (m *RawDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32786,7 +30214,7 @@ 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 { @@ -32817,7 +30245,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 } @@ -32845,7 +30273,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 } @@ -32854,9 +30282,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32881,7 +30306,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 } @@ -32890,9 +30315,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32913,7 +30335,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 } @@ -32923,9 +30345,6 @@ func (m *RawBatchDeleteRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32945,7 +30364,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 } @@ -32957,7 +30376,7 @@ 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 { @@ -32988,7 +30407,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 } @@ -33016,7 +30435,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 } @@ -33025,9 +30444,6 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33052,7 +30468,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 } @@ -33062,9 +30478,6 @@ func (m *RawBatchDeleteResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33076,7 +30489,7 @@ 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 { @@ -33107,7 +30520,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 } @@ -33135,7 +30548,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 } @@ -33144,9 +30557,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33171,7 +30581,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 } @@ -33180,9 +30590,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33205,7 +30612,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 } @@ -33224,7 +30631,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 } @@ -33244,7 +30651,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 } @@ -33254,9 +30661,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33276,7 +30680,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 } @@ -33296,7 +30700,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 } @@ -33305,9 +30709,6 @@ func (m *RawScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33322,7 +30723,7 @@ 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 { @@ -33353,7 +30754,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 } @@ -33381,7 +30782,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 } @@ -33390,9 +30791,6 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33417,7 +30815,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 } @@ -33426,9 +30824,6 @@ func (m *RawScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33443,7 +30838,7 @@ 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 { @@ -33474,7 +30869,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 } @@ -33502,7 +30897,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 } @@ -33511,9 +30906,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33538,7 +30930,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 } @@ -33547,9 +30939,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33572,7 +30961,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 } @@ -33581,9 +30970,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33606,7 +30992,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 } @@ -33616,9 +31002,6 @@ func (m *RawDeleteRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33630,7 +31013,7 @@ 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 { @@ -33661,7 +31044,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 } @@ -33689,7 +31072,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 } @@ -33698,9 +31081,6 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33725,7 +31105,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 } @@ -33735,9 +31115,6 @@ func (m *RawDeleteRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33749,7 +31126,7 @@ 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 { @@ -33780,7 +31157,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 } @@ -33808,7 +31185,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 } @@ -33817,9 +31194,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33844,7 +31218,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 } @@ -33853,9 +31227,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33878,7 +31249,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 } @@ -33897,7 +31268,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 } @@ -33917,7 +31288,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 } @@ -33927,9 +31298,6 @@ func (m *RawBatchScanRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33949,7 +31317,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 } @@ -33961,7 +31329,7 @@ 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 { @@ -33992,7 +31360,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 } @@ -34020,7 +31388,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 } @@ -34029,9 +31397,6 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34056,7 +31421,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 } @@ -34065,9 +31430,6 @@ func (m *RawBatchScanResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34082,7 +31444,7 @@ 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 { @@ -34113,7 +31475,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 } @@ -34141,7 +31503,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 } @@ -34150,9 +31512,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34177,7 +31536,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 } @@ -34186,9 +31545,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34211,7 +31567,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 } @@ -34220,9 +31576,6 @@ func (m *UnsafeDestroyRangeRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34237,7 +31590,7 @@ 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 { @@ -34268,7 +31621,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 } @@ -34296,7 +31649,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 } @@ -34305,9 +31658,6 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34332,7 +31682,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 } @@ -34342,9 +31692,6 @@ func (m *UnsafeDestroyRangeResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34356,7 +31703,7 @@ 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 { @@ -34387,7 +31734,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 } @@ -34415,7 +31762,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 } @@ -34424,9 +31771,6 @@ func (m *RegisterLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34451,7 +31795,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 } @@ -34462,7 +31806,7 @@ 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 { @@ -34493,7 +31837,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 } @@ -34521,7 +31865,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 } @@ -34531,9 +31875,6 @@ func (m *RegisterLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34545,7 +31886,7 @@ 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 { @@ -34576,7 +31917,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 } @@ -34604,7 +31945,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 } @@ -34613,9 +31954,6 @@ func (m *CheckLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34640,7 +31978,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 } @@ -34651,7 +31989,7 @@ 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 { @@ -34682,7 +32020,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 } @@ -34710,7 +32048,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 } @@ -34720,9 +32058,6 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34742,7 +32077,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 } @@ -34762,7 +32097,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 } @@ -34771,9 +32106,6 @@ func (m *CheckLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34788,7 +32120,7 @@ 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 { @@ -34819,7 +32151,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 } @@ -34847,7 +32179,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 } @@ -34856,9 +32188,6 @@ func (m *RemoveLockObserverRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34883,7 +32212,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 } @@ -34894,7 +32223,7 @@ 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 { @@ -34925,7 +32254,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 } @@ -34953,7 +32282,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 } @@ -34963,9 +32292,6 @@ func (m *RemoveLockObserverResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34977,7 +32303,7 @@ 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 { @@ -35008,7 +32334,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 } @@ -35036,7 +32362,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 } @@ -35045,9 +32371,6 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35072,7 +32395,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 } @@ -35091,7 +32414,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 } @@ -35100,9 +32423,6 @@ func (m *PhysicalScanLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35125,7 +32445,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 } @@ -35136,7 +32456,7 @@ 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 { @@ -35167,7 +32487,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 } @@ -35195,7 +32515,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 } @@ -35205,9 +32525,6 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35227,7 +32544,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 } @@ -35236,9 +32553,6 @@ func (m *PhysicalScanLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35253,7 +32567,7 @@ 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 { @@ -35284,7 +32598,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 } @@ -35312,7 +32626,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 } @@ -35321,9 +32635,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35348,7 +32659,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 } @@ -35357,9 +32668,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35382,7 +32690,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 } @@ -35391,9 +32699,6 @@ func (m *SplitRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35414,7 +32719,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 } @@ -35426,7 +32731,7 @@ 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 { @@ -35457,7 +32762,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 } @@ -35485,7 +32790,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 } @@ -35494,9 +32799,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35521,7 +32823,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 } @@ -35530,9 +32832,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35557,7 +32856,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 } @@ -35566,9 +32865,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35593,7 +32889,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 } @@ -35602,9 +32898,6 @@ func (m *SplitRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35619,7 +32912,7 @@ 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 { @@ -35650,7 +32943,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 } @@ -35678,7 +32971,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 } @@ -35687,9 +32980,6 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35714,7 +33004,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 } @@ -35733,7 +33023,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 } @@ -35742,9 +33032,6 @@ func (m *ReadIndexRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35759,7 +33046,7 @@ 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 { @@ -35790,7 +33077,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 } @@ -35818,7 +33105,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 } @@ -35827,9 +33114,6 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35854,7 +33138,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 } @@ -35873,7 +33157,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 } @@ -35882,9 +33166,6 @@ func (m *ReadIndexResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35901,7 +33182,7 @@ 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 { @@ -35932,7 +33213,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 } @@ -35960,7 +33241,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 } @@ -35969,9 +33250,6 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35996,7 +33274,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 } @@ -36005,9 +33283,6 @@ func (m *MvccGetByKeyRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36022,7 +33297,7 @@ 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 { @@ -36053,7 +33328,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 } @@ -36081,7 +33356,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 } @@ -36090,9 +33365,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36117,7 +33389,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 } @@ -36127,9 +33399,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36149,7 +33418,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 } @@ -36158,9 +33427,6 @@ func (m *MvccGetByKeyResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36177,7 +33443,7 @@ 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 { @@ -36208,7 +33474,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 } @@ -36236,7 +33502,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 } @@ -36245,9 +33511,6 @@ func (m *MvccGetByStartTsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36272,7 +33535,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 } @@ -36283,7 +33546,7 @@ 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 { @@ -36314,7 +33577,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 } @@ -36342,7 +33605,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 } @@ -36351,9 +33614,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36378,7 +33638,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 } @@ -36388,9 +33648,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36410,7 +33667,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 } @@ -36419,9 +33676,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36444,7 +33698,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 } @@ -36453,9 +33707,6 @@ func (m *MvccGetByStartTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36472,7 +33723,7 @@ 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 { @@ -36503,7 +33754,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 } @@ -36531,7 +33782,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 } @@ -36550,7 +33801,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 } @@ -36559,9 +33810,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36586,7 +33834,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 } @@ -36595,9 +33843,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36622,7 +33867,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 } @@ -36641,7 +33886,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 } @@ -36660,7 +33905,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 } @@ -36679,7 +33924,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 } @@ -36699,7 +33944,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 } @@ -36719,7 +33964,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 } @@ -36739,7 +33984,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 } @@ -36759,7 +34004,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 } @@ -36777,7 +34022,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 } @@ -36794,7 +34039,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 } @@ -36803,23 +34048,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 { @@ -36831,7 +34062,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 } @@ -36855,7 +34086,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 } @@ -36874,7 +34105,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 } @@ -36893,7 +34124,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 } @@ -36912,7 +34143,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 } @@ -36932,7 +34163,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 } @@ -36941,9 +34172,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36966,7 +34194,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 } @@ -36985,7 +34213,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 } @@ -37005,7 +34233,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 } @@ -37022,7 +34250,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 } @@ -37039,7 +34267,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 } @@ -37048,23 +34276,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 { @@ -37076,7 +34290,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 } @@ -37100,7 +34314,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 } @@ -37109,9 +34323,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37136,7 +34347,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 } @@ -37146,9 +34357,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37168,7 +34376,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 } @@ -37187,7 +34395,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 } @@ -37206,7 +34414,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 } @@ -37215,9 +34423,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37242,7 +34447,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 } @@ -37261,7 +34466,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 } @@ -37280,7 +34485,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 } @@ -37289,9 +34494,6 @@ func (m *Context) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37316,7 +34518,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 } @@ -37327,7 +34529,7 @@ 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 { @@ -37358,7 +34560,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 } @@ -37386,7 +34588,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 } @@ -37396,9 +34598,6 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37418,7 +34617,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 } @@ -37427,9 +34626,6 @@ func (m *ResourceControlContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37454,7 +34650,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 } @@ -37465,7 +34661,7 @@ 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 { @@ -37496,7 +34692,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 } @@ -37524,7 +34720,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 } @@ -37543,7 +34739,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 } @@ -37562,7 +34758,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 } @@ -37581,7 +34777,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 } @@ -37591,9 +34787,6 @@ func (m *SourceStmt) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37605,7 +34798,7 @@ 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 { @@ -37636,7 +34829,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 } @@ -37664,7 +34857,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 } @@ -37673,9 +34866,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37698,7 +34888,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 } @@ -37717,7 +34907,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 } @@ -37726,9 +34916,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37751,7 +34938,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 } @@ -37770,7 +34957,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 } @@ -37789,7 +34976,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 } @@ -37808,7 +34995,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 } @@ -37827,7 +35014,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 } @@ -37847,7 +35034,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 } @@ -37866,7 +35053,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 } @@ -37875,9 +35062,6 @@ func (m *LockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37898,7 +35082,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 } @@ -37917,7 +35101,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 } @@ -37929,7 +35113,7 @@ 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 { @@ -37960,7 +35144,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 } @@ -37988,7 +35172,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 } @@ -37997,9 +35181,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38024,7 +35205,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 } @@ -38034,9 +35215,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38056,7 +35234,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 } @@ -38066,9 +35244,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38088,7 +35263,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 } @@ -38097,9 +35272,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38124,7 +35296,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 } @@ -38133,9 +35305,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38160,7 +35329,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 } @@ -38169,9 +35338,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38196,7 +35362,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 } @@ -38205,9 +35371,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38232,7 +35395,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 } @@ -38241,9 +35404,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38268,7 +35428,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 } @@ -38277,9 +35437,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38304,7 +35461,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 } @@ -38313,9 +35470,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38340,7 +35494,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 } @@ -38349,9 +35503,6 @@ func (m *KeyError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38368,7 +35519,7 @@ 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 { @@ -38399,7 +35550,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 } @@ -38427,7 +35578,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 } @@ -38446,7 +35597,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 } @@ -38465,7 +35616,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 } @@ -38474,9 +35625,6 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38499,7 +35647,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 } @@ -38508,9 +35656,6 @@ func (m *WriteConflict) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38533,7 +35678,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 } @@ -38552,7 +35697,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 } @@ -38563,7 +35708,7 @@ 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 { @@ -38594,7 +35739,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 } @@ -38622,7 +35767,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 } @@ -38631,9 +35776,6 @@ func (m *AlreadyExist) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38648,7 +35790,7 @@ 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 { @@ -38679,7 +35821,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 } @@ -38707,7 +35849,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 } @@ -38726,7 +35868,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 } @@ -38735,9 +35877,6 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38760,7 +35899,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 } @@ -38779,7 +35918,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 } @@ -38788,9 +35927,6 @@ func (m *Deadlock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38805,7 +35941,7 @@ 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 { @@ -38836,7 +35972,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 } @@ -38864,7 +36000,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 } @@ -38883,7 +36019,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 } @@ -38902,7 +36038,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 } @@ -38911,9 +36047,6 @@ func (m *CommitTsExpired) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38936,7 +36069,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 } @@ -38947,7 +36080,7 @@ 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 { @@ -38978,7 +36111,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 } @@ -39006,7 +36139,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 } @@ -39025,7 +36158,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 } @@ -39034,9 +36167,6 @@ func (m *TxnNotFound) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39051,7 +36181,7 @@ 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 { @@ -39082,7 +36212,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 } @@ -39110,7 +36240,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 } @@ -39121,7 +36251,7 @@ 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 { @@ -39152,7 +36282,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 } @@ -39180,7 +36310,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 } @@ -39199,7 +36329,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 } @@ -39208,9 +36338,6 @@ func (m *AssertionFailed) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39233,7 +36360,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 } @@ -39252,7 +36379,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 } @@ -39271,7 +36398,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 } @@ -39282,7 +36409,7 @@ 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 { @@ -39313,7 +36440,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 } @@ -39341,7 +36468,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 } @@ -39350,9 +36477,6 @@ func (m *PrimaryMismatch) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39369,7 +36493,7 @@ 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 { @@ -39400,7 +36524,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 } @@ -39428,7 +36552,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 } @@ -39447,7 +36571,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 } @@ -39466,7 +36590,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 } @@ -39485,7 +36609,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 } @@ -39496,7 +36620,7 @@ 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 { @@ -39527,7 +36651,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 } @@ -39555,7 +36679,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 } @@ -39574,7 +36698,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 } @@ -39593,7 +36717,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 } @@ -39612,7 +36736,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 } @@ -39631,7 +36755,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 } @@ -39650,7 +36774,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 } @@ -39669,7 +36793,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 } @@ -39680,7 +36804,7 @@ 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 { @@ -39711,7 +36835,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 } @@ -39739,7 +36863,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 } @@ -39758,7 +36882,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 } @@ -39777,7 +36901,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 } @@ -39788,7 +36912,7 @@ 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 { @@ -39819,7 +36943,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 } @@ -39847,7 +36971,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 } @@ -39856,9 +36980,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39883,7 +37004,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 } @@ -39892,9 +37013,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39919,7 +37037,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 } @@ -39928,9 +37046,6 @@ func (m *ScanDetail) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -39947,7 +37062,7 @@ 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 { @@ -39978,7 +37093,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 } @@ -40006,7 +37121,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 } @@ -40025,7 +37140,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 } @@ -40044,7 +37159,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 } @@ -40063,7 +37178,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 } @@ -40082,7 +37197,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 } @@ -40101,7 +37216,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 } @@ -40120,7 +37235,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 } @@ -40139,7 +37254,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 } @@ -40158,7 +37273,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 } @@ -40177,7 +37292,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 } @@ -40196,7 +37311,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 } @@ -40215,7 +37330,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 } @@ -40234,7 +37349,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 } @@ -40245,7 +37360,7 @@ 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 { @@ -40276,7 +37391,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 } @@ -40304,7 +37419,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 } @@ -40313,9 +37428,6 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40340,7 +37452,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 } @@ -40349,9 +37461,6 @@ func (m *ExecDetails) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40368,7 +37477,7 @@ 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 { @@ -40399,7 +37508,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 } @@ -40427,7 +37536,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 } @@ -40436,9 +37545,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40463,7 +37569,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 } @@ -40472,9 +37578,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40499,7 +37602,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 } @@ -40508,9 +37611,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40535,7 +37635,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 } @@ -40544,9 +37644,6 @@ func (m *ExecDetailsV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -40563,7 +37660,7 @@ 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 { @@ -40594,7 +37691,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 } @@ -40622,7 +37719,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 } @@ -40641,7 +37738,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 } @@ -40660,7 +37757,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 } @@ -40679,7 +37776,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 } @@ -40698,7 +37795,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 } @@ -40717,7 +37814,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 } @@ -40736,7 +37833,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 } @@ -40755,7 +37852,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 } @@ -40774,7 +37871,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 } @@ -40793,7 +37890,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 } @@ -40812,7 +37909,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 } @@ -40831,7 +37928,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 } @@ -40850,7 +37947,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 } @@ -40869,7 +37966,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 } @@ -40888,7 +37985,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 } @@ -40907,7 +38004,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 } @@ -40926,7 +38023,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 } @@ -40937,7 +38034,7 @@ 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 { @@ -40968,7 +38065,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 } @@ -40996,7 +38093,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 } @@ -41005,9 +38102,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41032,7 +38126,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 } @@ -41041,9 +38135,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41066,7 +38157,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 } @@ -41075,9 +38166,6 @@ func (m *KvPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41092,7 +38180,7 @@ 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 { @@ -41123,7 +38211,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 } @@ -41151,7 +38239,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 } @@ -41170,7 +38258,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 } @@ -41179,9 +38267,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41204,7 +38289,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 } @@ -41213,9 +38298,6 @@ func (m *Mutation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41238,7 +38320,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 } @@ -41249,7 +38331,7 @@ 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 { @@ -41280,7 +38362,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 } @@ -41308,7 +38390,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 } @@ -41327,7 +38409,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 } @@ -41346,7 +38428,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 } @@ -41365,7 +38447,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 } @@ -41374,9 +38456,6 @@ func (m *MvccWrite) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41399,7 +38478,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 } @@ -41419,7 +38498,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 } @@ -41439,7 +38518,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 } @@ -41458,7 +38537,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 } @@ -41477,7 +38556,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 } @@ -41488,7 +38567,7 @@ 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 { @@ -41519,7 +38598,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 } @@ -41547,7 +38626,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 } @@ -41566,7 +38645,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 } @@ -41575,9 +38654,6 @@ func (m *MvccValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41592,7 +38668,7 @@ 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 { @@ -41623,7 +38699,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 } @@ -41651,7 +38727,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 } @@ -41670,7 +38746,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 } @@ -41689,7 +38765,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 } @@ -41698,9 +38774,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41723,7 +38796,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 } @@ -41732,9 +38805,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41757,7 +38827,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 } @@ -41776,7 +38846,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 } @@ -41795,7 +38865,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 } @@ -41814,7 +38884,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 } @@ -41834,7 +38904,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 } @@ -41843,9 +38913,6 @@ func (m *MvccLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -41864,7 +38931,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 } @@ -41881,7 +38948,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 } @@ -41890,23 +38957,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 { @@ -41918,7 +38971,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 } @@ -41942,7 +38995,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 } @@ -41961,7 +39014,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 } @@ -41972,7 +39025,7 @@ 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 { @@ -42003,7 +39056,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 } @@ -42031,7 +39084,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 } @@ -42040,9 +39093,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42067,7 +39117,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 } @@ -42076,9 +39126,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42101,7 +39148,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 } @@ -42110,9 +39157,6 @@ func (m *MvccInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42127,7 +39171,7 @@ 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 { @@ -42158,7 +39202,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 } @@ -42186,7 +39230,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 } @@ -42205,7 +39249,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 } @@ -42224,7 +39268,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 } @@ -42236,7 +39280,7 @@ 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 { @@ -42267,7 +39311,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 } @@ -42295,7 +39339,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 } @@ -42304,9 +39348,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42329,7 +39370,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 } @@ -42338,9 +39379,6 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42355,7 +39393,7 @@ 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 { @@ -42386,7 +39424,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 } @@ -42414,7 +39452,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 } @@ -42433,7 +39471,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 } @@ -42452,7 +39490,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 } @@ -42471,7 +39509,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 } @@ -42480,9 +39518,6 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42507,7 +39542,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 } @@ -42516,9 +39551,6 @@ func (m *LeaderInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42535,7 +39567,7 @@ 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 { @@ -42566,7 +39598,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 } @@ -42594,7 +39626,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 } @@ -42613,7 +39645,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 } @@ -42624,7 +39656,7 @@ 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 { @@ -42655,7 +39687,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 } @@ -42683,7 +39715,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 } @@ -42692,9 +39724,6 @@ func (m *CheckLeaderRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42717,7 +39746,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 } @@ -42728,7 +39757,7 @@ 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 { @@ -42759,7 +39788,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 } @@ -42785,7 +39814,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 } @@ -42802,7 +39831,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 } @@ -42811,23 +39840,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 { @@ -42839,7 +39854,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 } @@ -42863,7 +39878,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 } @@ -42874,7 +39889,7 @@ 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 { @@ -42905,7 +39920,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 } @@ -42933,7 +39948,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 } @@ -42942,9 +39957,6 @@ func (m *StoreSafeTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -42961,7 +39973,7 @@ 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 { @@ -42992,7 +40004,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 } @@ -43020,7 +40032,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 } @@ -43031,7 +40043,7 @@ 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 { @@ -43062,7 +40074,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 } @@ -43090,7 +40102,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 } @@ -43099,9 +40111,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43126,7 +40135,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 } @@ -43135,9 +40144,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43160,7 +40166,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 } @@ -43170,9 +40176,6 @@ func (m *RawGetKeyTTLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43184,7 +40187,7 @@ 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 { @@ -43215,7 +40218,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 } @@ -43243,7 +40246,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 } @@ -43252,9 +40255,6 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43279,7 +40279,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 } @@ -43289,9 +40289,6 @@ func (m *RawGetKeyTTLResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43311,7 +40308,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 } @@ -43330,7 +40327,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 } @@ -43342,7 +40339,7 @@ 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 { @@ -43373,7 +40370,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 } @@ -43401,7 +40398,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 } @@ -43410,9 +40407,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43437,7 +40431,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 } @@ -43446,9 +40440,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43471,7 +40462,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 } @@ -43480,9 +40471,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43505,7 +40493,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 } @@ -43525,7 +40513,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 } @@ -43534,9 +40522,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43559,7 +40544,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 } @@ -43569,9 +40554,6 @@ func (m *RawCASRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43591,7 +40573,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 } @@ -43602,7 +40584,7 @@ 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 { @@ -43633,7 +40615,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 } @@ -43661,7 +40643,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 } @@ -43670,9 +40652,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43697,7 +40676,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 } @@ -43707,9 +40686,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43729,7 +40705,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 } @@ -43749,7 +40725,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 } @@ -43769,7 +40745,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 } @@ -43778,9 +40754,6 @@ func (m *RawCASResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43795,7 +40768,7 @@ 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 { @@ -43826,7 +40799,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 } @@ -43854,7 +40827,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 } @@ -43863,9 +40836,6 @@ func (m *GetLockWaitInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43882,7 +40852,7 @@ 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 { @@ -43913,7 +40883,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 } @@ -43941,7 +40911,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 } @@ -43950,9 +40920,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -43977,7 +40944,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 } @@ -43987,9 +40954,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44009,7 +40973,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 } @@ -44018,9 +40982,6 @@ func (m *GetLockWaitInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44035,7 +40996,7 @@ 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 { @@ -44066,7 +41027,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 } @@ -44094,7 +41055,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 } @@ -44103,9 +41064,6 @@ func (m *GetLockWaitHistoryRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44122,7 +41080,7 @@ 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 { @@ -44153,7 +41111,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 } @@ -44181,7 +41139,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 } @@ -44190,9 +41148,6 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44217,7 +41172,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 } @@ -44227,9 +41182,6 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44249,7 +41201,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 } @@ -44258,9 +41210,6 @@ func (m *GetLockWaitHistoryResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44275,7 +41224,7 @@ 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 { @@ -44306,7 +41255,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 } @@ -44334,7 +41283,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 } @@ -44343,9 +41292,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44370,7 +41316,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 } @@ -44380,9 +41326,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44402,7 +41345,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 } @@ -44412,9 +41355,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44434,7 +41374,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 } @@ -44443,9 +41383,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44468,7 +41405,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 } @@ -44477,9 +41414,6 @@ func (m *RawCoprocessorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44494,7 +41428,7 @@ 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 { @@ -44525,7 +41459,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 } @@ -44553,7 +41487,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 } @@ -44562,9 +41496,6 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44589,7 +41520,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 } @@ -44599,9 +41530,6 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44621,7 +41549,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 } @@ -44630,9 +41558,6 @@ func (m *RawCoprocessorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44647,7 +41572,7 @@ 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 { @@ -44678,7 +41603,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 } @@ -44706,7 +41631,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 } @@ -44715,9 +41640,6 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44742,7 +41664,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 } @@ -44761,7 +41683,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 } @@ -44770,9 +41692,6 @@ func (m *RawChecksumRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44787,7 +41706,7 @@ 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 { @@ -44818,7 +41737,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 } @@ -44846,7 +41765,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 } @@ -44855,9 +41774,6 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44882,7 +41798,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 } @@ -44892,9 +41808,6 @@ func (m *RawChecksumResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -44914,7 +41827,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 } @@ -44933,7 +41846,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 } @@ -44952,7 +41865,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 } @@ -44963,7 +41876,7 @@ 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 { @@ -44994,7 +41907,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 } @@ -45022,7 +41935,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 } @@ -45031,9 +41944,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45057,7 +41967,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 } @@ -45066,9 +41976,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45092,7 +41999,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 } @@ -45101,9 +42008,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45127,7 +42031,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 } @@ -45136,9 +42040,6 @@ func (m *CompactError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45154,7 +42055,7 @@ 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 { @@ -45185,7 +42086,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 } @@ -45205,7 +42106,7 @@ 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 { @@ -45236,7 +42137,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 } @@ -45256,7 +42157,7 @@ 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 { @@ -45287,7 +42188,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 } @@ -45307,7 +42208,7 @@ 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 { @@ -45338,7 +42239,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 } @@ -45358,7 +42259,7 @@ 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 { @@ -45389,7 +42290,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 } @@ -45417,7 +42318,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 } @@ -45426,9 +42327,6 @@ func (m *CompactRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45451,7 +42349,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 } @@ -45470,7 +42368,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 } @@ -45489,7 +42387,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 } @@ -45508,7 +42406,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 } @@ -45519,7 +42417,7 @@ 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 { @@ -45550,7 +42448,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 } @@ -45578,7 +42476,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 } @@ -45587,9 +42485,6 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45614,7 +42509,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 } @@ -45634,7 +42529,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 } @@ -45643,9 +42538,6 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45668,7 +42560,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 } @@ -45677,9 +42569,6 @@ func (m *CompactResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45694,7 +42583,7 @@ 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 { @@ -45725,7 +42614,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 } @@ -45753,7 +42642,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 } @@ -45763,9 +42652,6 @@ func (m *TiFlashSystemTableRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45777,7 +42663,7 @@ 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 { @@ -45808,7 +42694,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 } @@ -45836,7 +42722,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 } @@ -45845,9 +42731,6 @@ func (m *TiFlashSystemTableResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45861,7 +42744,7 @@ 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 { @@ -45892,7 +42775,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 } @@ -45920,7 +42803,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 } @@ -45929,9 +42812,6 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45956,7 +42836,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 } @@ -45965,9 +42845,6 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -45990,7 +42867,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 } @@ -45999,9 +42876,6 @@ func (m *FlushRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46024,7 +42898,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 } @@ -46043,7 +42917,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 } @@ -46062,7 +42936,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 } @@ -46081,7 +42955,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 } @@ -46100,7 +42974,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 } @@ -46111,7 +42985,7 @@ 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 { @@ -46142,7 +43016,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 } @@ -46170,7 +43044,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 } @@ -46179,9 +43053,6 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46206,7 +43077,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 } @@ -46215,9 +43086,6 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46240,7 +43108,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 } @@ -46249,9 +43117,6 @@ func (m *FlushResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46268,7 +43133,7 @@ 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 { @@ -46299,7 +43164,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 } @@ -46327,7 +43192,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 } @@ -46336,9 +43201,6 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46363,7 +43225,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 } @@ -46372,9 +43234,6 @@ func (m *BufferBatchGetRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46395,7 +43254,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 } @@ -46406,7 +43265,7 @@ 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 { @@ -46437,7 +43296,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 } @@ -46465,7 +43324,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 } @@ -46474,9 +43333,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46501,7 +43357,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 } @@ -46510,9 +43366,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46537,7 +43390,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 } @@ -46546,9 +43399,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46571,7 +43421,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 } @@ -46580,9 +43430,6 @@ func (m *BufferBatchGetResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthKvrpcpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthKvrpcpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -46599,7 +43446,7 @@ 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 { @@ -46618,7 +43465,6 @@ func (m *BufferBatchGetResponse) 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 { @@ -46650,8 +43496,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 { @@ -46668,34 +43516,504 @@ 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", fileDescriptor_kvrpcpb_abc33f417130e774) } + +var fileDescriptor_kvrpcpb_abc33f417130e774 = []byte{ + // 7113 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x7c, 0x5b, 0x6c, 0x23, 0xc9, + 0xb5, 0xd8, 0x34, 0x49, 0x89, 0xd4, 0xa1, 0x44, 0xb5, 0x4a, 0x2f, 0x4a, 0x33, 0xb3, 0xa3, 0xe9, + 0xf5, 0xec, 0x8e, 0xb5, 0x5e, 0xcd, 0x5d, 0xed, 0xc3, 0xd7, 0xd7, 0x37, 0xeb, 0x9d, 0xd1, 0xbc, + 0xb4, 0xf3, 0x90, 0xd0, 0xe4, 0xce, 0x66, 0x91, 0xd8, 0xed, 0x52, 0xb3, 0x44, 0x36, 0xd8, 0xec, + 0xee, 0xed, 0x2a, 0x4a, 0xa2, 0x81, 0x00, 0x31, 0xf2, 0x00, 0x1c, 0x04, 0x79, 0x18, 0x06, 0x1c, + 0xc0, 0x46, 0x80, 0x7c, 0x18, 0x48, 0x02, 0x38, 0x48, 0x90, 0x9f, 0x24, 0xfe, 0x08, 0x02, 0xf8, + 0x63, 0x1d, 0xc4, 0xb0, 0x83, 0x20, 0x70, 0xe0, 0x04, 0x46, 0xb0, 0x01, 0xf2, 0x1b, 0x7f, 0x24, + 0x48, 0x7e, 0x82, 0x04, 0xf5, 0xea, 0x07, 0xc9, 0x91, 0x34, 0x1a, 0xcd, 0xd8, 0xbe, 0x5f, 0x64, + 0x9f, 0x73, 0xaa, 0xea, 0xd4, 0x39, 0xa7, 0x4e, 0x9d, 0xaa, 0x3a, 0x55, 0x30, 0xd3, 0x3d, 0x88, + 0x23, 0x37, 0xda, 0xdb, 0x88, 0xe2, 0x90, 0x85, 0xa8, 0xac, 0x3e, 0x57, 0xa7, 0x7b, 0x84, 0x61, + 0x0d, 0x5e, 0x9d, 0x21, 0x71, 0x1c, 0xc6, 0xc9, 0xe7, 0x42, 0x3b, 0x6c, 0x87, 0xe2, 0xef, 0x0d, + 0xfe, 0x4f, 0x41, 0x67, 0xe3, 0x3e, 0x65, 0xe2, 0xaf, 0x02, 0xd4, 0x5a, 0x04, 0xb7, 0xfc, 0xd0, + 0xed, 0xea, 0x5a, 0x58, 0x8c, 0x5d, 0x92, 0xd4, 0xb2, 0x14, 0x13, 0x1a, 0xf6, 0x63, 0x97, 0x38, + 0x3d, 0x1c, 0xe0, 0x36, 0x89, 0x25, 0xdc, 0x6a, 0x01, 0xdc, 0x23, 0xcc, 0x26, 0x9f, 0xf6, 0x09, + 0x65, 0x68, 0x1d, 0xca, 0x6e, 0x18, 0x30, 0x72, 0xc4, 0xea,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x4f, 0xaf, + 0x15, 0xb9, 0xfc, 0x33, 0x20, 0x74, 0x09, 0x80, 0xc5, 0x7c, 0x58, 0x10, 0x27, 0x72, 0xeb, 0x33, + 0xd2, 0x07, 0xb0, 0x78, 0xb0, 0x13, 0x90, 0x5d, 0x57, 0x70, 0x83, 0x8f, 0x32, 0xdc, 0xd4, 0x14, + 0x37, 0xf8, 0x28, 0xe1, 0xe6, 0x03, 0x98, 0xc5, 0x94, 0x92, 0x98, 0x77, 0xdf, 0xf1, 0xc9, 0x01, + 0xf1, 0xeb, 0xb3, 0x6b, 0xc6, 0xf5, 0xda, 0xe6, 0x72, 0x22, 0xc9, 0x9b, 0x1a, 0xff, 0x90, 0xa3, + 0xed, 0x1a, 0xce, 0x7d, 0x23, 0x0f, 0x56, 0x72, 0x72, 0xc9, 0x28, 0x93, 0xd6, 0x4d, 0x61, 0x67, + 0x1b, 0x4f, 0xd5, 0xca, 0xdd, 0x44, 0x78, 0x8d, 0x54, 0xcf, 0xf6, 0x52, 0x46, 0xa6, 0x29, 0x98, + 0xa2, 0xd7, 0x60, 0x96, 0x6b, 0x67, 0xdf, 0xf3, 0x89, 0xe3, 0x76, 0xfa, 0x41, 0x97, 0xd6, 0x5b, + 0x6b, 0xc5, 0xeb, 0x25, 0x7b, 0x86, 0x1d, 0x05, 0x77, 0x3d, 0x9f, 0x6c, 0x09, 0xe0, 0xea, 0x1e, + 0x2c, 0x8e, 0xad, 0x98, 0xbb, 0x1d, 0x2f, 0x68, 0x91, 0x23, 0x31, 0x5a, 0x66, 0x6c, 0xf9, 0x81, + 0xde, 0x86, 0x25, 0x72, 0x14, 0x11, 0x97, 0x91, 0x96, 0x93, 0x57, 0x71, 0x41, 0x08, 0x6c, 0x5e, + 0x63, 0xd3, 0x4a, 0xa9, 0xb5, 0x07, 0x73, 0x23, 0x26, 0x85, 0x56, 0x61, 0xa9, 0xf1, 0x60, 0x7b, + 0xd7, 0xd9, 0xbd, 0xd3, 0x68, 0x6c, 0x3f, 0xda, 0x6e, 0x34, 0xb7, 0xb7, 0x9c, 0xad, 0xfb, 0x77, + 0xb6, 0x1e, 0x98, 0x17, 0x50, 0x1d, 0x16, 0x6e, 0xef, 0x8c, 0xc1, 0x18, 0x68, 0x19, 0xe6, 0x6f, + 0xef, 0x38, 0x5b, 0x3b, 0x8f, 0x1b, 0x4d, 0xfb, 0xe6, 0xf6, 0xe3, 0xa6, 0x42, 0x14, 0xac, 0xff, + 0x6b, 0x80, 0x99, 0x4a, 0xec, 0xec, 0xae, 0xe8, 0x8b, 0x30, 0x29, 0xb0, 0xa3, 0xe3, 0x3e, 0x71, + 0x32, 0x8a, 0x60, 0xd4, 0x82, 0x8b, 0xa3, 0x16, 0xfc, 0x3a, 0x98, 0xd2, 0xe2, 0x32, 0x64, 0x72, + 0xe0, 0xcf, 0x84, 0xdc, 0xf0, 0x12, 0xc2, 0x31, 0x93, 0xd0, 0xc4, 0x33, 0x4c, 0x42, 0xd6, 0x4f, + 0x4b, 0xb0, 0x94, 0x11, 0x32, 0x77, 0x39, 0x7f, 0x56, 0x3c, 0xdf, 0x88, 0x37, 0x99, 0x1c, 0xeb, + 0x4d, 0x3c, 0xea, 0xec, 0x7b, 0x31, 0x65, 0x92, 0x8f, 0xb2, 0x18, 0xe0, 0x55, 0x8f, 0xde, 0xe5, + 0x30, 0xc1, 0xc7, 0x55, 0x98, 0x3e, 0xc4, 0x5c, 0x05, 0x5e, 0x8f, 0x84, 0x7d, 0x26, 0x9c, 0x56, + 0xd1, 0xae, 0x72, 0x58, 0x53, 0x82, 0x50, 0x1d, 0x26, 0xf6, 0xc3, 0xd8, 0x25, 0xc2, 0x61, 0x55, + 0x6e, 0x15, 0xea, 0x86, 0x2d, 0x01, 0xbc, 0x13, 0x31, 0x61, 0xfd, 0x38, 0x70, 0x44, 0x44, 0x21, + 0xdd, 0x55, 0xc5, 0x9e, 0x96, 0xc0, 0x27, 0x02, 0x36, 0x6a, 0x11, 0xd5, 0x71, 0x16, 0x31, 0x2b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 0x8f, 0xc6, 0x5d, 0x1c, 0x28, 0x23, 0x7d, 0x1d, + 0x26, 0xc4, 0x45, 0xeb, 0x11, 0xfb, 0xd6, 0x3c, 0xd8, 0x12, 0x8f, 0xae, 0x41, 0x29, 0xb9, 0x40, + 0x36, 0x96, 0x4e, 0xa0, 0x39, 0x59, 0x0b, 0x33, 0x3c, 0xb2, 0xf1, 0x95, 0x92, 0x71, 0xb4, 0xf5, + 0xbf, 0x27, 0xe4, 0x53, 0x13, 0x89, 0x6d, 0xbd, 0x09, 0x28, 0xe9, 0x82, 0x0e, 0xb6, 0xb5, 0x71, + 0xcd, 0x25, 0x18, 0x15, 0x72, 0x8b, 0x54, 0x78, 0xa9, 0xbe, 0x84, 0x54, 0xa5, 0xc2, 0x0b, 0x68, + 0x42, 0xf6, 0x35, 0xb8, 0x14, 0xf3, 0x55, 0x6f, 0x6b, 0xcf, 0x69, 0x89, 0xb3, 0x43, 0x87, 0x76, + 0xbd, 0x28, 0x12, 0x0e, 0xb9, 0x1f, 0x30, 0x65, 0x55, 0x2b, 0x8a, 0x46, 0x1e, 0x2f, 0x36, 0x24, + 0xc5, 0x16, 0x27, 0x40, 0x5f, 0x01, 0x8d, 0x14, 0xb3, 0x4a, 0xbe, 0xb4, 0xb4, 0xad, 0x25, 0x45, + 0xf0, 0x80, 0x0c, 0x72, 0x45, 0x3f, 0x80, 0xcb, 0xba, 0xe8, 0x9e, 0x70, 0x23, 0x62, 0x57, 0xc7, + 0xe9, 0xf0, 0x89, 0x47, 0x14, 0x9f, 0xc8, 0x35, 0x7e, 0x8b, 0xd3, 0x88, 0x4d, 0x9e, 0xfb, 0x1e, + 0x93, 0x35, 0x7c, 0x19, 0xea, 0xf9, 0x1a, 0x84, 0x5e, 0x65, 0x61, 0x69, 0x70, 0x8b, 0xd9, 0xc2, + 0xdc, 0xc2, 0x65, 0xc1, 0x77, 0x61, 0x79, 0x4c, 0x41, 0x6e, 0x10, 0xca, 0xea, 0x16, 0x86, 0xcb, + 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8, 0xad, 0x27, 0xa9, 0x67, 0xcc, 0xcb, + 0xc3, 0x66, 0x09, 0xad, 0xc0, 0x62, 0xb6, 0xca, 0xdb, 0xe1, 0xe3, 0x90, 0x75, 0xbc, 0xa0, 0x6d, + 0x4e, 0xac, 0x5f, 0x83, 0xf2, 0x9d, 0x23, 0x16, 0xe3, 0x9d, 0x48, 0x76, 0x3e, 0x8c, 0xcc, 0x0b, + 0xc8, 0x84, 0x69, 0x9b, 0xe0, 0xd6, 0x8e, 0xdf, 0x12, 0xeb, 0x68, 0xd3, 0x58, 0xb7, 0x60, 0x6e, + 0x24, 0xd2, 0xe7, 0x66, 0xb0, 0x15, 0xbb, 0xef, 0xbd, 0xe3, 0xfc, 0xf9, 0x30, 0x36, 0x2f, 0xdc, + 0x7a, 0xed, 0x3f, 0xfd, 0xc3, 0x8a, 0xf1, 0xd9, 0xe7, 0xaf, 0x18, 0xbf, 0xfc, 0xfc, 0x15, 0xe3, + 0xbf, 0x7e, 0xfe, 0x8a, 0xf1, 0xf7, 0xfe, 0xdb, 0x2b, 0x17, 0xc0, 0x0c, 0xe3, 0xf6, 0x06, 0xf3, + 0xba, 0x07, 0x1b, 0x6a, 0x76, 0xdb, 0x9b, 0x14, 0x3f, 0x6f, 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x05, 0x2b, 0x8c, 0xd1, 0xd2, 0x66, 0x00, 0x00, +} diff --git a/pkg/logbackuppb/logbackuppb.pb.go b/pkg/logbackuppb/logbackuppb.pb.go index 2a7bd3212c..4dfd7db1f8 100644 --- a/pkg/logbackuppb/logbackuppb.pb.go +++ b/pkg/logbackuppb/logbackuppb.pb.go @@ -4,18 +4,18 @@ 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,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // The minimal information for identify a region. type RegionIdentity struct { @@ -42,7 +42,7 @@ 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} + return fileDescriptor_logbackuppb_8bb05ffce894b2b1, []int{0} } func (m *RegionIdentity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -52,15 +52,15 @@ func (m *RegionIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RegionIdentity.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionIdentity) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionIdentity.Merge(dst, src) } func (m *RegionIdentity) XXX_Size() int { return m.Size() @@ -87,8 +87,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -99,7 +99,7 @@ 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} + return fileDescriptor_logbackuppb_8bb05ffce894b2b1, []int{1} } func (m *RegionCheckpoint) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -109,15 +109,15 @@ func (m *RegionCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_RegionCheckpoint.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionCheckpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionCheckpoint.Merge(dst, src) } func (m *RegionCheckpoint) XXX_Size() int { return m.Size() @@ -150,7 +150,7 @@ func (m *RegionCheckpoint) GetCheckpoint() uint64 { } type GetLastFlushTSOfRegionRequest struct { - Regions []*RegionIdentity `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []*RegionIdentity `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -160,7 +160,7 @@ func (m *GetLastFlushTSOfRegionRequest) Reset() { *m = GetLastFlushTSOfR func (m *GetLastFlushTSOfRegionRequest) String() string { return proto.CompactTextString(m) } func (*GetLastFlushTSOfRegionRequest) ProtoMessage() {} func (*GetLastFlushTSOfRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{2} + return fileDescriptor_logbackuppb_8bb05ffce894b2b1, []int{2} } func (m *GetLastFlushTSOfRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -170,15 +170,15 @@ func (m *GetLastFlushTSOfRegionRequest) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_GetLastFlushTSOfRegionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetLastFlushTSOfRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLastFlushTSOfRegionRequest.Merge(dst, src) } func (m *GetLastFlushTSOfRegionRequest) XXX_Size() int { return m.Size() @@ -197,7 +197,7 @@ func (m *GetLastFlushTSOfRegionRequest) GetRegions() []*RegionIdentity { } type GetLastFlushTSOfRegionResponse struct { - Checkpoints []*RegionCheckpoint `protobuf:"bytes,1,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"` + Checkpoints []*RegionCheckpoint `protobuf:"bytes,1,rep,name=checkpoints" json:"checkpoints,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -207,7 +207,7 @@ func (m *GetLastFlushTSOfRegionResponse) Reset() { *m = GetLastFlushTSOf func (m *GetLastFlushTSOfRegionResponse) String() string { return proto.CompactTextString(m) } func (*GetLastFlushTSOfRegionResponse) ProtoMessage() {} func (*GetLastFlushTSOfRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{3} + return fileDescriptor_logbackuppb_8bb05ffce894b2b1, []int{3} } func (m *GetLastFlushTSOfRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -217,15 +217,15 @@ func (m *GetLastFlushTSOfRegionResponse) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_GetLastFlushTSOfRegionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetLastFlushTSOfRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLastFlushTSOfRegionResponse.Merge(dst, src) } func (m *GetLastFlushTSOfRegionResponse) XXX_Size() int { return m.Size() @@ -254,7 +254,7 @@ func (m *SubscribeFlushEventRequest) Reset() { *m = SubscribeFlushEventR func (m *SubscribeFlushEventRequest) String() string { return proto.CompactTextString(m) } func (*SubscribeFlushEventRequest) ProtoMessage() {} func (*SubscribeFlushEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{4} + return fileDescriptor_logbackuppb_8bb05ffce894b2b1, []int{4} } func (m *SubscribeFlushEventRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -264,15 +264,15 @@ func (m *SubscribeFlushEventRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_SubscribeFlushEventRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SubscribeFlushEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeFlushEventRequest.Merge(dst, src) } func (m *SubscribeFlushEventRequest) XXX_Size() int { return m.Size() @@ -291,7 +291,7 @@ func (m *SubscribeFlushEventRequest) GetClientId() string { } type SubscribeFlushEventResponse struct { - Events []*FlushEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + Events []*FlushEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -301,7 +301,7 @@ func (m *SubscribeFlushEventResponse) Reset() { *m = SubscribeFlushEvent func (m *SubscribeFlushEventResponse) String() string { return proto.CompactTextString(m) } func (*SubscribeFlushEventResponse) ProtoMessage() {} func (*SubscribeFlushEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9a556fe18b032662, []int{5} + return fileDescriptor_logbackuppb_8bb05ffce894b2b1, []int{5} } func (m *SubscribeFlushEventResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -311,15 +311,15 @@ func (m *SubscribeFlushEventResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_SubscribeFlushEventResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SubscribeFlushEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeFlushEventResponse.Merge(dst, src) } func (m *SubscribeFlushEventResponse) XXX_Size() int { return m.Size() @@ -350,7 +350,7 @@ 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} + return fileDescriptor_logbackuppb_8bb05ffce894b2b1, []int{6} } func (m *FlushEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -360,15 +360,15 @@ func (m *FlushEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FlushEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlushEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlushEvent.Merge(dst, src) } func (m *FlushEvent) XXX_Size() int { return m.Size() @@ -410,42 +410,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, 0x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 0xeb, - 0xaa, 0xf3, 0x00, 0x3a, 0xc1, 0x82, 0x21, 0xd7, 0xd3, 0x72, 0x35, 0x1d, 0xaf, 0x5d, 0x00, 0xe7, - 0xa1, 0x33, 0x81, 0xc1, 0xd6, 0xa7, 0x65, 0xb1, 0xa7, 0xd0, 0xc2, 0x1c, 0xa8, 0x3a, 0xdd, 0xad, - 0x75, 0xaa, 0xc9, 0x4b, 0x91, 0xe3, 0x03, 0x6c, 0xd0, 0x3c, 0x58, 0xe9, 0x99, 0xd4, 0xd3, 0x18, - 0x97, 0x26, 0xf8, 0xc0, 0x6b, 0x1b, 0xe0, 0x1d, 0x2e, 0xe9, 0x7d, 0xd8, 0x47, 0x1e, 0x1a, 0xaa, - 0x61, 0xa8, 0x16, 0xf2, 0x30, 0x27, 0x76, 0xec, 0x68, 0xf4, 0x9b, 0x40, 0x67, 0x22, 0xa2, 0x33, - 0x53, 0x82, 0x0a, 0xb8, 0xb7, 0x7d, 0xb6, 0xf4, 0xa4, 0x56, 0xf5, 0xda, 0xa5, 0x5a, 0x4f, 0xfe, - 0x43, 0x59, 0xcc, 0xc3, 0xd9, 0xa3, 0x73, 0xb8, 0xbd, 0x65, 0x60, 0xf4, 0x71, 0xcd, 0xe3, 0xea, - 0x5d, 0x58, 0xc7, 0xbb, 0x64, 0x55, 0xce, 0x73, 0x72, 0x76, 0xfc, 0xe3, 0x6b, 0x9b, 0x7c, 0x5b, - 0xd9, 0xe4, 0xfb, 0xca, 0x26, 0x3f, 0x57, 0x36, 0xf9, 0xf2, 0xcb, 0xde, 0x83, 0x23, 0x21, 0x23, - 0x57, 0xb3, 0x38, 0x73, 0xe3, 0xcc, 0xfc, 0x85, 0x7e, 0xcb, 0x1c, 0xa7, 0x7f, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xb9, 0x40, 0x0f, 0x40, 0xe2, 0x03, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -454,9 +418,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) @@ -511,23 +474,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 +546,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 +554,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +585,45 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +631,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +664,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +697,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +724,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +757,43 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -916,9 +809,6 @@ func (m *RegionIdentity) Size() (n int) { } func (m *RegionCheckpoint) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Err != nil { @@ -939,9 +829,6 @@ func (m *RegionCheckpoint) Size() (n int) { } func (m *GetLastFlushTSOfRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -957,9 +844,6 @@ func (m *GetLastFlushTSOfRegionRequest) Size() (n int) { } func (m *GetLastFlushTSOfRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Checkpoints) > 0 { @@ -975,9 +859,6 @@ func (m *GetLastFlushTSOfRegionResponse) Size() (n int) { } func (m *SubscribeFlushEventRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ClientId) @@ -991,9 +872,6 @@ func (m *SubscribeFlushEventRequest) Size() (n int) { } func (m *SubscribeFlushEventResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Events) > 0 { @@ -1009,9 +887,6 @@ func (m *SubscribeFlushEventResponse) Size() (n int) { } func (m *FlushEvent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.StartKey) @@ -1032,7 +907,14 @@ func (m *FlushEvent) Size() (n int) { } 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 +934,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 +962,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 +981,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,7 +992,7 @@ 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 { @@ -1141,7 +1023,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 +1051,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 +1060,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 +1084,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 +1093,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 +1117,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,7 +1128,7 @@ 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 { @@ -1283,7 +1159,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 +1187,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 +1196,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,7 +1210,7 @@ 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 { @@ -1368,7 +1241,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 +1269,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 +1278,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,7 +1292,7 @@ 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 { @@ -1453,7 +1323,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 +1351,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 +1361,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,7 +1372,7 @@ 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 { @@ -1536,7 +1403,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 +1431,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 +1440,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,7 +1454,7 @@ 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 { @@ -1621,7 +1485,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 +1513,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 +1522,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 +1544,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 +1553,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 +1575,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,7 +1586,7 @@ 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 { @@ -1747,7 +1605,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 +1636,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 +1656,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", fileDescriptor_logbackuppb_8bb05ffce894b2b1) } + +var fileDescriptor_logbackuppb_8bb05ffce894b2b1 = []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, 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7, 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 b4c31cc8eb..cb6ef95d3d 100644 --- a/pkg/meta_storagepb/meta_storagepb.pb.go +++ b/pkg/meta_storagepb/meta_storagepb.pb.go @@ -4,17 +4,16 @@ 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 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ErrorType int32 @@ -42,7 +41,6 @@ var ErrorType_name = map[int32]string{ 1: "UNKNOWN", 2: "DATA_COMPACTED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -52,9 +50,8 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{0} } type Event_EventType int32 @@ -68,7 +65,6 @@ var Event_EventType_name = map[int32]string{ 0: "PUT", 1: "DELETE", } - var Event_EventType_value = map[string]int32{ "PUT": 0, "DELETE": 1, @@ -77,9 +73,8 @@ 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 fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{12, 0} } type Error struct { @@ -94,7 +89,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{0} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -104,15 +99,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -151,7 +146,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{1} } func (m *RequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -161,15 +156,15 @@ func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(dst, src) } func (m *RequestHeader) XXX_Size() int { return m.Size() @@ -197,7 +192,7 @@ 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"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -208,7 +203,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{2} } func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -218,15 +213,15 @@ func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(dst, src) } func (m *ResponseHeader) XXX_Size() int { return m.Size() @@ -260,7 +255,7 @@ 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"` + 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"` @@ -274,7 +269,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{3} } func (m *WatchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -284,15 +279,15 @@ func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchRequest.Merge(dst, src) } func (m *WatchRequest) XXX_Size() int { return m.Size() @@ -340,9 +335,9 @@ 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"` + 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,proto3" json:"events,omitempty"` + Events []*Event `protobuf:"bytes,3,rep,name=events" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -352,7 +347,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{4} } func (m *WatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -362,15 +357,15 @@ func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_WatchResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchResponse.Merge(dst, src) } func (m *WatchResponse) XXX_Size() int { return m.Size() @@ -404,7 +399,7 @@ 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"` + 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"` @@ -418,7 +413,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{5} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -428,15 +423,15 @@ func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(dst, src) } func (m *GetRequest) XXX_Size() int { return m.Size() @@ -484,8 +479,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -497,7 +492,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{6} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -507,15 +502,15 @@ func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(dst, src) } func (m *GetResponse) XXX_Size() int { return m.Size() @@ -556,7 +551,7 @@ 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"` + 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"` @@ -570,7 +565,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{7} } func (m *PutRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -580,15 +575,15 @@ func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest.Merge(dst, src) } func (m *PutRequest) XXX_Size() int { return m.Size() @@ -636,8 +631,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -647,7 +642,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{8} } func (m *PutResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -657,15 +652,15 @@ func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResponse.Merge(dst, src) } func (m *PutResponse) XXX_Size() int { return m.Size() @@ -692,7 +687,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. @@ -712,7 +707,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{9} } func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -722,15 +717,15 @@ func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRequest.Merge(dst, src) } func (m *DeleteRequest) XXX_Size() int { return m.Size() @@ -770,10 +765,10 @@ 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"` + PrevKvs []*KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs" json:"prev_kvs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -783,7 +778,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{10} } func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -793,15 +788,15 @@ func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResponse.Merge(dst, src) } func (m *DeleteResponse) XXX_Size() int { return m.Size() @@ -860,7 +855,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{11} } func (m *KeyValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -870,15 +865,15 @@ func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValue.Merge(dst, src) } func (m *KeyValue) XXX_Size() int { return m.Size() @@ -942,9 +937,9 @@ 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"` + PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -954,7 +949,7 @@ 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} + return fileDescriptor_meta_storagepb_84182b99e04b40aa, []int{12} } func (m *Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -964,15 +959,15 @@ func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Event.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Event) XXX_Merge(src proto.Message) { + xxx_messageInfo_Event.Merge(dst, src) } func (m *Event) XXX_Size() int { return m.Size() @@ -1005,8 +1000,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 +1013,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, 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, 0x78, 0x01, 0x8e, 0x1c, 0x39, 0xa2, 0xe1, 0x45, 0x90, 0xdb, 0x3f, - 0x71, 0x3c, 0x89, 0x34, 0xd2, 0xa0, 0xb9, 0x24, 0x5d, 0xd5, 0x95, 0xaf,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xe6, 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 +1025,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 @@ -1170,7 +1105,8 @@ func (c *metaStorageClient) Delete(ctx context.Context, in *DeleteRequest, opts 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 +1118,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 +1227,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 +1235,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1267,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1299,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1340,57 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1398,47 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1446,52 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1499,57 @@ func (m *GetResponse) Marshal() (dAtA []byte, err error) { } func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Header.Size())) + n5, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - if m.Count != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x20 + if len(m.Kvs) > 0 { + for _, msg := range m.Kvs { + dAtA[i] = 0x12 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.More { - i-- + dAtA[i] = 0x18 + i++ if m.More { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if len(m.Kvs) > 0 { - for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if m.Count != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintMetaStoragepb(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 = encodeVarintMetaStoragepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1557,57 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1615,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1656,52 @@ 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.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())) + n9, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - 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 + i += n9 } 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 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) } - 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 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 { + dAtA[i] = 0x20 + i++ + if m.PrevKv { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0xa + i++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1709,47 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1757,52 @@ 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 len(m.Value) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) } - if m.CreateRevision != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.CreateRevision)) - i-- - dAtA[i] = 0x10 + if m.Lease != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Lease)) } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintMetaStoragepb(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1810,51 @@ 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.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) } - 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)) + if m.Kv != nil { + 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-- - dAtA[i] = 0x1a + i += n11 } - 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)) + 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-- - dAtA[i] = 0x12 + i += n12 } - if m.Type != 0 { - i = encodeVarintMetaStoragepb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -2077,9 +1871,6 @@ func (m *Error) Size() (n int) { } func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -2096,9 +1887,6 @@ func (m *RequestHeader) Size() (n int) { } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -2118,9 +1906,6 @@ func (m *ResponseHeader) Size() (n int) { } func (m *WatchRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2148,9 +1933,6 @@ func (m *WatchRequest) Size() (n int) { } func (m *WatchResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2173,9 +1955,6 @@ func (m *WatchResponse) Size() (n int) { } func (m *GetRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2203,9 +1982,6 @@ func (m *GetRequest) Size() (n int) { } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2231,9 +2007,6 @@ func (m *GetResponse) Size() (n int) { } func (m *PutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2261,9 +2034,6 @@ func (m *PutRequest) Size() (n int) { } func (m *PutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2281,9 +2051,6 @@ func (m *PutResponse) Size() (n int) { } func (m *DeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2308,9 +2075,6 @@ func (m *DeleteRequest) Size() (n int) { } func (m *DeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2333,9 +2097,6 @@ func (m *DeleteResponse) Size() (n int) { } func (m *KeyValue) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -2365,9 +2126,6 @@ func (m *KeyValue) Size() (n int) { } func (m *Event) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -2388,7 +2146,14 @@ func (m *Event) Size() (n int) { } 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 +2173,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 +2201,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 +2220,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 +2230,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,7 +2241,7 @@ 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 { @@ -2510,7 +2272,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 +2300,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 +2319,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 +2329,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,7 +2340,7 @@ 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 { @@ -2612,7 +2371,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 +2399,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 +2418,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 +2427,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 +2451,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,7 +2462,7 @@ 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 { @@ -2737,7 +2493,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 +2521,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 +2530,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 +2554,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 +2563,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 +2585,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 +2594,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 +2616,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 +2635,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,7 +2647,7 @@ 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 { @@ -2931,7 +2678,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 +2706,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 +2715,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 +2739,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 +2758,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 +2767,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,7 +2781,7 @@ 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 { @@ -3071,7 +2812,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 +2840,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 +2849,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 +2873,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 +2882,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 +2904,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 +2913,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 +2935,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 +2954,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,7 +2965,7 @@ 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 { @@ -3264,7 +2996,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 +3024,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 +3033,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 +3057,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 +3066,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 +3088,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 +3108,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,7 +3119,7 @@ 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 { @@ -3424,7 +3150,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 +3178,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 +3187,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 +3211,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 +3220,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 +3242,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 +3251,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 +3273,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 +3292,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,7 +3304,7 @@ 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 { @@ -3618,7 +3335,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 +3363,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 +3372,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 +3396,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 +3405,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,7 +3421,7 @@ 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 { @@ -3741,7 +3452,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 +3480,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 +3489,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 +3513,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 +3522,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 +3544,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 +3553,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 +3575,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,7 +3587,7 @@ 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 { @@ -3916,7 +3618,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 +3646,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 +3655,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 +3679,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 +3698,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 +3707,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,7 +3721,7 @@ 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 { @@ -4056,7 +3752,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 +3780,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 +3789,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 +3811,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 +3830,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 +3849,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 +3868,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 +3877,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 +3899,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,7 +3910,7 @@ 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 { @@ -4251,7 +3941,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 +3969,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 +3988,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 +3997,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 +4021,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 +4030,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,7 +4046,7 @@ 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 { @@ -4381,7 +4065,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 +4096,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 +4116,114 @@ 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", fileDescriptor_meta_storagepb_84182b99e04b40aa) +} + +var fileDescriptor_meta_storagepb_84182b99e04b40aa = []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, 0x78, 0x01, 0x8e, 0x1c, 0x39, 0xa2, 0xe1, 0x45, 0x90, 0xdb, 0x3f, + 0x71, 0x3c, 0x89, 0x34, 0xd2, 0xa0, 0xb9, 0x24, 0x5d, 0xd5, 0x95, 0xaf, 0xbe, 0xfa, 0x54, 0x55, + 0x1d, 0xa8, 0x2f, 0x91, 0x5b, 0x63, 0x97, 0x3b, 0xcc, 0x9a, 0xe2, 0xfa, 0xa2, 0xb3, 0x66, 0x0e, + 0x77, 0x68, 0x6d, 0xd7, 0xdb, 0xa8, 0x4f, 0x9d, 0xa9, 0x23, 0xae, 0x3e, 0x08, 0x4e, 0x61, 0x54, + 0xe3, 0x88, 0x79, 0x2e, 0x17, 0xc7, 0xd0, 0x61, 0x0c, 0x41, 0xe9, 0x33, 0xe6, 0x30, 0xfa, 0x08, + 0xf2, 0x7c, 0xb3,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a8, 0xf5, 0x4e, 0x47, 0xa7, 0xe3, 0xc7, 0xe7, 0xcf, 0x87, + 0xa7, 0x8f, 0x47, 0xfd, 0x9e, 0x26, 0x75, 0x7f, 0x91, 0xa0, 0xfc, 0x1c, 0xb9, 0xf5, 0x55, 0x98, + 0x9a, 0x3e, 0x05, 0x45, 0xac, 0x77, 0xfa, 0x46, 0x96, 0x52, 0xfa, 0xb1, 0x6a, 0x1c, 0x1f, 0xb8, + 0x0d, 0xfb, 0xca, 0xc8, 0x7d, 0x48, 0xe8, 0x67, 0x20, 0x3f, 0x41, 0x4e, 0x1b, 0xd9, 0xc8, 0xed, + 0x66, 0x6e, 0x3c, 0xd8, 0x7b, 0x17, 0x63, 0x04, 0x08, 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, +} diff --git a/pkg/metapb/metapb.pb.go b/pkg/metapb/metapb.pb.go index 7a962f0e89..37a5b6d6b4 100644 --- a/pkg/metapb/metapb.pb.go +++ b/pkg/metapb/metapb.pb.go @@ -7,10 +7,10 @@ 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" ) @@ -23,7 +23,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type StoreState int32 @@ -38,7 +38,6 @@ var StoreState_name = map[int32]string{ 1: "Offline", 2: "Tombstone", } - var StoreState_value = map[string]int32{ "Up": 0, "Offline": 1, @@ -48,9 +47,8 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{0} } // NodeState is going to replace StoreState to make the state concept more clear. @@ -72,7 +70,6 @@ var NodeState_name = map[int32]string{ 2: "Removing", 3: "Removed", } - var NodeState_value = map[string]int32{ "Preparing": 0, "Serving": 1, @@ -83,9 +80,8 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{1} } type PeerRole int32 @@ -107,7 +103,6 @@ var PeerRole_name = map[int32]string{ 2: "IncomingVoter", 3: "DemotingVoter", } - var PeerRole_value = map[string]int32{ "Voter": 0, "Learner": 1, @@ -118,9 +113,8 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{2} } type Cluster struct { @@ -137,7 +131,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{0} } func (m *Cluster) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,15 +141,15 @@ func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Cluster.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Cluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cluster.Merge(dst, src) } func (m *Cluster) XXX_Size() int { return m.Size() @@ -193,7 +187,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{1} } func (m *StoreLabel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -203,15 +197,15 @@ func (m *StoreLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StoreLabel.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreLabel) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreLabel.Merge(dst, src) } func (m *StoreLabel) XXX_Size() int { return m.Size() @@ -241,7 +235,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. @@ -267,7 +261,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{2} } func (m *Store) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -277,15 +271,15 @@ func (m *Store) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Store.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Store) XXX_Merge(src proto.Message) { + xxx_messageInfo_Store.Merge(dst, src) } func (m *Store) XXX_Size() int { return m.Size() @@ -401,7 +395,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{3} } func (m *RegionEpoch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -411,15 +405,15 @@ func (m *RegionEpoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_RegionEpoch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionEpoch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionEpoch.Merge(dst, src) } func (m *RegionEpoch) XXX_Size() int { return m.Size() @@ -446,17 +440,17 @@ 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"` + WriteKeys []uint64 `protobuf:"varint,6,rep,packed,name=write_keys,json=writeKeys" json:"write_keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -466,7 +460,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{4} } func (m *BucketStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -476,15 +470,15 @@ func (m *BucketStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_BucketStats.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BucketStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_BucketStats.Merge(dst, src) } func (m *BucketStats) XXX_Size() int { return m.Size() @@ -542,9 +536,9 @@ 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:"-"` @@ -556,7 +550,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{5} } func (m *Buckets) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -566,15 +560,15 @@ func (m *Buckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Buckets.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Buckets) XXX_Merge(src proto.Message) { + xxx_messageInfo_Buckets.Merge(dst, src) } func (m *Buckets) XXX_Size() int { return m.Size() @@ -625,13 +619,13 @@ 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"` @@ -646,7 +640,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{6} } func (m *Region) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -656,15 +650,15 @@ func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Region.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Region) XXX_Merge(src proto.Message) { + xxx_messageInfo_Region.Merge(dst, src) } func (m *Region) XXX_Size() int { return m.Size() @@ -745,7 +739,7 @@ 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} + return fileDescriptor_metapb_120106aa41b6d999, []int{7} } func (m *Peer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -755,15 +749,15 @@ func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Peer.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Peer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Peer.Merge(dst, src) } func (m *Peer) XXX_Size() int { return m.Size() @@ -803,9 +797,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 +805,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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, 0x69, 0xb0, 0xd2, 0x4e, 0x6a, 0x7e, 0x70, 0xc0, - 0xc1, 0xa3, 0x72, 0x04, 0x73, 0xef, 0x89, 0x16, 0xd4, 0xbe, 0x2f, 0x06, 0x77, 0x44, 0x00, 0xed, - 0x6f, 0x2f, 0x2f, 0xb3, 0x34, 0xc7, 0x81, 0x27, 0x7a, 0xd0, 0x79, 0xa1, 0x96, 0x13, 0x63, 0x55, - 0x8e, 0x83, 0xda, 0xc1, 0x31, 0x74, 0xb6, 0x7d, 0x4b, 0xdc, 0xb9, 0xc6, 0x42, 0xea, 0x34, 0x9f, - 0xb9, 0xba, 0x0b, 0xd4, 0x6b, 0x0a, 0x3c, 0xd1, 0x05, 0x3f, 0xc2, 0xa5, 0xe2, 0xa8, 0x46, 0x14, - 0x47, 0x98, 0x0c, 0xea, 0x07, 0xa7, 0xe0, 0x57, 0x32, 0x45, 0x07, 0x9a, 0x2f, 0x95, 0x45, 0xed, - 0xca, 0x9f, 0xa1, 0xd4, 0x39, 0xea, 0x81, 0x27, 0xee, 0x42, 0xef, 0x2c, 0x9f, 0xaa, 0x65, 0x9a, - 0xcf, 0x1c, 0x5f, 0x23, 0xe8, 0x09, 0x2e, 0x95, 0xdd, 0x42, 0xf5, 0xe3, 0x87, 0x7f, 0xfe, 0xe2, - 0x7b, 0xbf, 0x5f, 0xed, 0x7b, 0x7f, 0x5c, 0xed, 0x7b, 0x7f, 0x5f, 0xed, 0x7b, 0x3f, 0xfd, 0xb3, - 0x7f, 0x07, 0x06, 0x4a, 0xcf, 0x0e, 0x6d, 0xba, 0x58, 0x1f, 0x2e, 0xd6, 0xfc, 0x5f, 0x35, 0x69, - 0xf1, 0xcf, 0x67, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x27, 0xfc, 0x6d, 0x8c, 0x05, 0x07, 0x00, - 0x00, -} - func (m *Cluster) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -895,36 +820,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +851,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +884,103 @@ 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.NodeState != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.NodeState)) } - if m.Id != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +988,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1019,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 +1035,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 +1052,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 +1069,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 +1086,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 +1103,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 +1120,21 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1142,53 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1196,84 @@ 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.Id != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintMetapb(dAtA, i, uint64(m.Id)) } - if m.FlashbackStartTs != 0 { - i = encodeVarintMetapb(dAtA, i, uint64(m.FlashbackStartTs)) - i-- - dAtA[i] = 0x40 + 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.IsInFlashback { - i-- - if m.IsInFlashback { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 + 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.EncryptionMeta != nil { - { - size, err := m.EncryptionMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetapb(dAtA, i, uint64(size)) + 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1281,51 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -1496,9 +1341,6 @@ func (m *Cluster) Size() (n int) { } func (m *StoreLabel) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1516,9 +1358,6 @@ func (m *StoreLabel) Size() (n int) { } func (m *Store) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1576,9 +1415,6 @@ func (m *Store) Size() (n int) { } func (m *RegionEpoch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ConfVer != 0 { @@ -1594,9 +1430,6 @@ func (m *RegionEpoch) Size() (n int) { } func (m *BucketStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.ReadBytes) > 0 { @@ -1648,9 +1481,6 @@ func (m *BucketStats) Size() (n int) { } func (m *Buckets) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1679,9 +1509,6 @@ func (m *Buckets) Size() (n int) { } func (m *Region) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1722,9 +1549,6 @@ func (m *Region) Size() (n int) { } func (m *Peer) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -1746,7 +1570,14 @@ func (m *Peer) Size() (n int) { } 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 +1597,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 +1625,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 +1644,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,7 +1655,7 @@ 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 { @@ -1855,7 +1686,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 +1714,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 +1724,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 +1743,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 +1753,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,7 +1764,7 @@ 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 { @@ -1970,7 +1795,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 +1823,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 +1842,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 +1852,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 +1871,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 +1890,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 +1899,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 +1921,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 +1931,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 +1950,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 +1960,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 +1979,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 +1989,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 +2008,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 +2018,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 +2037,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 +2056,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 +2066,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 +2085,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 +2104,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 +2124,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,7 +2135,7 @@ 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 { @@ -2362,7 +2166,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 +2194,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 +2213,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,7 +2224,7 @@ 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 { @@ -2451,7 +2255,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 +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 } @@ -2494,7 +2298,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 +2307,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 +2321,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 +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 } @@ -2570,7 +2360,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 +2369,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 +2383,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 +2405,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 +2422,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 +2431,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 +2445,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 +2467,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 +2484,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 +2493,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 +2507,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 +2529,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 +2546,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 +2555,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 +2569,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 +2591,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 +2608,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 +2617,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 +2631,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,7 +2647,7 @@ 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 { @@ -2958,7 +2678,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 +2706,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 +2725,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 +2744,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 +2753,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 +2773,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 +2782,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 +2806,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,7 +2817,7 @@ 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 { @@ -3134,7 +2848,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 +2876,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 +2895,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 +2904,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 +2926,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 +2935,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 +2957,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 +2966,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 +2990,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 +2999,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 +3021,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 +3030,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 +3054,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 +3074,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,7 +3085,7 @@ 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 { @@ -3417,7 +3116,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 +3144,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 +3163,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 +3182,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 +3201,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,7 +3213,7 @@ 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 { @@ -3533,7 +3232,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 +3263,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 +3283,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", fileDescriptor_metapb_120106aa41b6d999) } + +var fileDescriptor_metapb_120106aa41b6d999 = []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, 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c, 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 0176f08fd1..79e1f03450 100644 --- a/pkg/mpp/mpp.pb.go +++ b/pkg/mpp/mpp.pb.go @@ -7,12 +7,14 @@ 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" ) @@ -25,7 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.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 { @@ -54,7 +56,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{0} } func (m *TaskMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -64,15 +66,15 @@ func (m *TaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TaskMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskMeta.Merge(dst, src) } func (m *TaskMeta) XXX_Size() int { return m.Size() @@ -205,7 +207,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{1} } func (m *IsAliveRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -215,15 +217,15 @@ func (m *IsAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_IsAliveRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IsAliveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsAliveRequest.Merge(dst, src) } func (m *IsAliveRequest) XXX_Size() int { return m.Size() @@ -246,7 +248,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{2} } func (m *IsAliveResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -256,15 +258,15 @@ func (m *IsAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_IsAliveResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IsAliveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsAliveResponse.Merge(dst, src) } func (m *IsAliveResponse) XXX_Size() int { return m.Size() @@ -291,14 +293,14 @@ 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"` + TableRegions []*coprocessor.TableRegions `protobuf:"bytes,6,rep,name=table_regions,json=tableRegions" json:"table_regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -308,7 +310,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{3} } func (m *DispatchTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -318,15 +320,15 @@ func (m *DispatchTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_DispatchTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DispatchTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DispatchTaskRequest.Merge(dst, src) } func (m *DispatchTaskRequest) XXX_Size() int { return m.Size() @@ -381,8 +383,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -392,7 +394,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{4} } func (m *DispatchTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -402,15 +404,15 @@ func (m *DispatchTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_DispatchTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DispatchTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DispatchTaskResponse.Merge(dst, src) } func (m *DispatchTaskResponse) XXX_Size() int { return m.Size() @@ -437,8 +439,8 @@ 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"` + Meta *TaskMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -448,7 +450,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{5} } func (m *CancelTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -458,15 +460,15 @@ func (m *CancelTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_CancelTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CancelTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelTaskRequest.Merge(dst, src) } func (m *CancelTaskRequest) XXX_Size() int { return m.Size() @@ -492,7 +494,7 @@ func (m *CancelTaskRequest) GetError() *Error { } type CancelTaskResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -502,7 +504,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{6} } func (m *CancelTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -512,15 +514,15 @@ func (m *CancelTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CancelTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CancelTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelTaskResponse.Merge(dst, src) } func (m *CancelTaskResponse) XXX_Size() int { return m.Size() @@ -541,9 +543,9 @@ 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"` + 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,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -553,7 +555,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{7} } func (m *ReportTaskStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -563,15 +565,15 @@ func (m *ReportTaskStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_ReportTaskStatusRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportTaskStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportTaskStatusRequest.Merge(dst, src) } func (m *ReportTaskStatusRequest) XXX_Size() int { return m.Size() @@ -604,7 +606,7 @@ func (m *ReportTaskStatusRequest) GetError() *Error { } type ReportTaskStatusResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -614,7 +616,7 @@ func (m *ReportTaskStatusResponse) Reset() { *m = ReportTaskStatusRespon func (m *ReportTaskStatusResponse) String() string { return proto.CompactTextString(m) } func (*ReportTaskStatusResponse) ProtoMessage() {} func (*ReportTaskStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{8} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{8} } func (m *ReportTaskStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -624,15 +626,15 @@ func (m *ReportTaskStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_ReportTaskStatusResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportTaskStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportTaskStatusResponse.Merge(dst, src) } func (m *ReportTaskStatusResponse) XXX_Size() int { return m.Size() @@ -652,8 +654,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -663,7 +665,7 @@ func (m *EstablishMPPConnectionRequest) Reset() { *m = EstablishMPPConne func (m *EstablishMPPConnectionRequest) String() string { return proto.CompactTextString(m) } func (*EstablishMPPConnectionRequest) ProtoMessage() {} func (*EstablishMPPConnectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_819623c7fa76fc55, []int{9} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{9} } func (m *EstablishMPPConnectionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -673,15 +675,15 @@ func (m *EstablishMPPConnectionRequest) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_EstablishMPPConnectionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *EstablishMPPConnectionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstablishMPPConnectionRequest.Merge(dst, src) } func (m *EstablishMPPConnectionRequest) XXX_Size() int { return m.Size() @@ -710,9 +712,9 @@ func (m *EstablishMPPConnectionRequest) GetReceiverMeta() *TaskMeta { // 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -723,7 +725,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{10} } func (m *MPPDataPacket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -733,15 +735,15 @@ func (m *MPPDataPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_MPPDataPacket.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MPPDataPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPPDataPacket.Merge(dst, src) } func (m *MPPDataPacket) XXX_Size() int { return m.Size() @@ -800,7 +802,7 @@ 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} + return fileDescriptor_mpp_d48fcd19a62238e0, []int{11} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -810,15 +812,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -864,74 +866,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, 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, 0x5f, 0x04, 0xcd, 0xcc, 0x8e, 0xe3, 0x86, 0x46, - 0x6a, 0x4f, 0x3b, 0xef, 0xf7, 0xde, 0xbc, 0xf7, 0x7b, 0xff, 0x66, 0xa1, 0x57, 0x0a, 0x31, 0x13, - 0x92, 0x6b, 0x4e, 0xc2, 0x52, 0x88, 0x47, 0xf7, 0x17, 0x7c, 0xc1, 0xad, 0xfc, 0xd4, 0x9c, 0x9c, - 0xea, 0xd1, 0x61, 0x66, 0xb0, 0x0c, 0x95, 0xe2, 0xb2, 0x81, 0x06, 0x25, 0x6a, 0x26, 0x2e, 0x1b, - 0x69, 0xb8, 0xda, 0x48, 0x91, 0x79, 0x31, 0xfe, 0xbb, 0x0d, 0xdd, 0x0b, 0xa6, 0x56, 0xe7, 0xa8, - 0x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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 +877,117 @@ 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.KeyspaceId != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.KeyspaceId)) } - if m.LocalQueryId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.LocalQueryId)) - i-- - dAtA[i] = 0x38 + 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.QueryTs != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.QueryTs)) - i-- - dAtA[i] = 0x30 + if m.ReportExecutionSummary { + dAtA[i] = 0x60 + i++ + if m.ReportExecutionSummary { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if m.GatherId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.GatherId)) - i-- - dAtA[i] = 0x28 + if m.ApiVersion != 0 { + dAtA[i] = 0x80 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.ApiVersion)) } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintMpp(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x22 + if len(m.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.PartitionId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.PartitionId)) - i-- - dAtA[i] = 0x18 + if m.ConnectionId != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.ConnectionId)) } - if m.TaskId != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.TaskId)) - i-- - dAtA[i] = 0x10 + 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) } - if m.StartTs != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.StartTs)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +995,20 @@ 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) + i += 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 +1016,35 @@ func (m *IsAliveResponse) Marshal() (dAtA []byte, err error) { } func (m *IsAliveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MppVersion != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) - i-- - dAtA[i] = 0x10 - } if m.Available { - i-- + dAtA[i] = 0x8 + i++ if m.Available { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x8 + i++ + } + if m.MppVersion != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.MppVersion)) } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1052,70 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1123,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1166,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1207,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1238,46 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1285,30 @@ 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-- 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1316,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1357,66 @@ 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 len(m.Data) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } - if m.Version != 0 { - i = encodeVarintMpp(dAtA, i, uint64(m.Version)) - i-- - dAtA[i] = 0x28 + if m.Error != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Error.Size())) + n11, err := m.Error.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if len(m.Chunks) > 0 { + for _, b := range m.Chunks { + dAtA[i] = 0x1a + i++ + i = encodeVarintMpp(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } if len(m.StreamIds) > 0 { - dAtA12 := make([]byte, len(m.StreamIds)*10) - var j11 int + dAtA13 := make([]byte, len(m.StreamIds)*10) + var j12 int for _, num := range m.StreamIds { for num >= 1<<7 { - dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) + dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j11++ + j12++ } - dAtA12[j11] = uint8(num) - j11++ + dAtA13[j12] = uint8(num) + j12++ } - i -= j11 - copy(dAtA[i:], dAtA12[:j11]) - i = encodeVarintMpp(dAtA, i, uint64(j11)) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintMpp(dAtA, i, uint64(j12)) + i += copy(dAtA[i:], dAtA13[:j12]) } - if len(m.Chunks) > 0 { - for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Chunks[iNdEx]) - copy(dAtA[i:], m.Chunks[iNdEx]) - i = encodeVarintMpp(dAtA, i, uint64(len(m.Chunks[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMpp(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if m.Version != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintMpp(dAtA, i, uint64(m.Version)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1424,42 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -1698,9 +1521,6 @@ func (m *TaskMeta) Size() (n int) { } func (m *IsAliveRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -1710,9 +1530,6 @@ func (m *IsAliveRequest) Size() (n int) { } func (m *IsAliveResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Available { @@ -1728,9 +1545,6 @@ func (m *IsAliveResponse) Size() (n int) { } func (m *DispatchTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -1766,9 +1580,6 @@ func (m *DispatchTaskRequest) Size() (n int) { } func (m *DispatchTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1788,9 +1599,6 @@ func (m *DispatchTaskResponse) Size() (n int) { } func (m *CancelTaskRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -1808,9 +1616,6 @@ func (m *CancelTaskRequest) Size() (n int) { } func (m *CancelTaskResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1824,9 +1629,6 @@ func (m *CancelTaskResponse) Size() (n int) { } func (m *ReportTaskStatusRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Meta != nil { @@ -1848,9 +1650,6 @@ func (m *ReportTaskStatusRequest) Size() (n int) { } func (m *ReportTaskStatusResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1864,9 +1663,6 @@ func (m *ReportTaskStatusResponse) Size() (n int) { } func (m *EstablishMPPConnectionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SenderMeta != nil { @@ -1884,9 +1680,6 @@ func (m *EstablishMPPConnectionRequest) Size() (n int) { } func (m *MPPDataPacket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Data) @@ -1920,9 +1713,6 @@ func (m *MPPDataPacket) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Code != 0 { @@ -1942,7 +1732,14 @@ func (m *Error) Size() (n int) { } 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 +1759,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 +1787,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 +1806,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 +1825,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 +1844,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 +1854,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 +1873,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 +1892,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 +1911,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 +1930,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 +1949,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 +1968,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 +1987,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 +1997,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 +2016,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 +2036,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 +2055,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 +2065,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 +2084,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 +2103,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 +2113,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,7 +2124,7 @@ 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 { @@ -2370,7 +2155,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,7 +2175,7 @@ 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 { @@ -2421,7 +2206,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 +2234,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 +2254,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,7 +2265,7 @@ 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 { @@ -2511,7 +2296,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 +2324,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 +2333,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 +2357,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 +2366,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 +2388,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 +2407,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 +2416,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 +2438,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 +2457,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 +2466,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,7 +2480,7 @@ 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 { @@ -2738,7 +2511,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 +2539,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 +2548,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 +2572,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 +2581,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,7 +2595,7 @@ 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 { @@ -2859,7 +2626,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 +2654,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 +2663,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 +2687,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 +2696,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,7 +2712,7 @@ 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 { @@ -2982,7 +2743,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 +2771,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 +2780,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,7 +2796,7 @@ 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 { @@ -3069,7 +2827,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 +2855,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 +2864,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 +2888,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 +2897,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 +2919,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 +2928,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,7 +2944,7 @@ 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 { @@ -3226,7 +2975,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 +3003,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 +3012,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,7 +3028,7 @@ 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 { @@ -3313,7 +3059,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 +3087,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 +3096,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 +3120,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 +3129,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,7 +3145,7 @@ 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 { @@ -3436,7 +3176,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 +3204,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 +3213,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 +3235,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 +3244,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 +3268,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 +3277,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 +3295,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 +3312,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 +3321,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 +3335,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 +3359,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,7 +3370,7 @@ 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 { @@ -3684,7 +3401,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 +3429,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 +3448,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 +3458,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 +3477,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,7 +3488,7 @@ 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 { @@ -3793,7 +3507,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 +3538,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 +3558,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", fileDescriptor_mpp_d48fcd19a62238e0) } + +var fileDescriptor_mpp_d48fcd19a62238e0 = []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,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 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, +} diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index 4f20e6d51e..8bdba58f6d 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -4,22 +4,26 @@ 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" + raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" + replication_modepb "github.com/pingcap/kvproto/pkg/replication_modepb" + + 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 +35,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 +48,6 @@ var EventType_name = map[int32]string{ 0: "PUT", 1: "DELETE", } - var EventType_value = map[string]int32{ "PUT": 0, "DELETE": 1, @@ -53,9 +56,8 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{0} } type ErrorType int32 @@ -90,7 +92,6 @@ var ErrorType_name = map[int32]string{ 10: "INVALID_VALUE", 11: "DATA_COMPACTED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -109,9 +110,8 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{1} } type ServiceMode int32 @@ -127,7 +127,6 @@ var ServiceMode_name = map[int32]string{ 1: "PD_SVC_MODE", 2: "API_SVC_MODE", } - var ServiceMode_value = map[string]int32{ "UNKNOWN_SVC_MODE": 0, "PD_SVC_MODE": 1, @@ -137,9 +136,8 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{2} } type CheckPolicy int32 @@ -155,7 +153,6 @@ var CheckPolicy_name = map[int32]string{ 1: "APPROXIMATE", 2: "USEKEY", } - var CheckPolicy_value = map[string]int32{ "SCAN": 0, "APPROXIMATE": 1, @@ -165,9 +162,8 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{3} } type ControlGrpcEvent int32 @@ -183,7 +179,6 @@ var ControlGrpcEvent_name = map[int32]string{ 0: "PAUSE", 1: "RESUME", } - var ControlGrpcEvent_value = map[string]int32{ "PAUSE": 0, "RESUME": 1, @@ -192,9 +187,8 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{4} } type OperatorStatus int32 @@ -214,7 +208,6 @@ var OperatorStatus_name = map[int32]string{ 3: "REPLACE", 4: "RUNNING", } - var OperatorStatus_value = map[string]int32{ "SUCCESS": 0, "TIMEOUT": 1, @@ -226,9 +219,8 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{5} } type QueryKind int32 @@ -262,7 +254,6 @@ var QueryKind_name = map[int32]string{ 10: "Commit", 11: "Rollback", } - var QueryKind_value = map[string]int32{ "Others": 0, "GC": 1, @@ -281,9 +272,8 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{6} } type WatchGlobalConfigRequest struct { @@ -298,7 +288,7 @@ func (m *WatchGlobalConfigRequest) Reset() { *m = WatchGlobalConfigReque func (m *WatchGlobalConfigRequest) String() string { return proto.CompactTextString(m) } func (*WatchGlobalConfigRequest) ProtoMessage() {} func (*WatchGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{0} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{0} } func (m *WatchGlobalConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -308,15 +298,15 @@ func (m *WatchGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_WatchGlobalConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchGlobalConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGlobalConfigRequest.Merge(dst, src) } func (m *WatchGlobalConfigRequest) XXX_Size() int { return m.Size() @@ -342,9 +332,9 @@ func (m *WatchGlobalConfigRequest) GetRevision() int64 { } type WatchGlobalConfigResponse struct { - Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + 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,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -354,7 +344,7 @@ func (m *WatchGlobalConfigResponse) Reset() { *m = WatchGlobalConfigResp func (m *WatchGlobalConfigResponse) String() string { return proto.CompactTextString(m) } func (*WatchGlobalConfigResponse) ProtoMessage() {} func (*WatchGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{1} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{1} } func (m *WatchGlobalConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -364,15 +354,15 @@ func (m *WatchGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_WatchGlobalConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchGlobalConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGlobalConfigResponse.Merge(dst, src) } func (m *WatchGlobalConfigResponse) XXX_Size() int { return m.Size() @@ -405,7 +395,7 @@ func (m *WatchGlobalConfigResponse) GetHeader() *ResponseHeader { } type StoreGlobalConfigRequest struct { - Changes []*GlobalConfigItem `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -416,7 +406,7 @@ func (m *StoreGlobalConfigRequest) Reset() { *m = StoreGlobalConfigReque func (m *StoreGlobalConfigRequest) String() string { return proto.CompactTextString(m) } func (*StoreGlobalConfigRequest) ProtoMessage() {} func (*StoreGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{2} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{2} } func (m *StoreGlobalConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -426,15 +416,15 @@ func (m *StoreGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_StoreGlobalConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreGlobalConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreGlobalConfigRequest.Merge(dst, src) } func (m *StoreGlobalConfigRequest) XXX_Size() int { return m.Size() @@ -460,7 +450,7 @@ func (m *StoreGlobalConfigRequest) GetConfigPath() string { } type StoreGlobalConfigResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -470,7 +460,7 @@ func (m *StoreGlobalConfigResponse) Reset() { *m = StoreGlobalConfigResp func (m *StoreGlobalConfigResponse) String() string { return proto.CompactTextString(m) } func (*StoreGlobalConfigResponse) ProtoMessage() {} func (*StoreGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{3} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{3} } func (m *StoreGlobalConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -480,15 +470,15 @@ func (m *StoreGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_StoreGlobalConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreGlobalConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreGlobalConfigResponse.Merge(dst, src) } func (m *StoreGlobalConfigResponse) XXX_Size() int { return m.Size() @@ -507,7 +497,7 @@ func (m *StoreGlobalConfigResponse) GetError() *Error { } type LoadGlobalConfigRequest struct { - Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -518,7 +508,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{4} } func (m *LoadGlobalConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -528,15 +518,15 @@ func (m *LoadGlobalConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_LoadGlobalConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LoadGlobalConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadGlobalConfigRequest.Merge(dst, src) } func (m *LoadGlobalConfigRequest) XXX_Size() int { return m.Size() @@ -562,7 +552,7 @@ func (m *LoadGlobalConfigRequest) GetConfigPath() string { } type LoadGlobalConfigResponse struct { - Items []*GlobalConfigItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + Items []*GlobalConfigItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -573,7 +563,7 @@ func (m *LoadGlobalConfigResponse) Reset() { *m = LoadGlobalConfigRespon func (m *LoadGlobalConfigResponse) String() string { return proto.CompactTextString(m) } func (*LoadGlobalConfigResponse) ProtoMessage() {} func (*LoadGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{5} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{5} } func (m *LoadGlobalConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -583,15 +573,15 @@ func (m *LoadGlobalConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_LoadGlobalConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *LoadGlobalConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadGlobalConfigResponse.Merge(dst, src) } func (m *LoadGlobalConfigResponse) XXX_Size() int { return m.Size() @@ -620,7 +610,7 @@ 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. @@ -634,7 +624,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{6} } func (m *GlobalConfigItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -644,15 +634,15 @@ func (m *GlobalConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_GlobalConfigItem.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GlobalConfigItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_GlobalConfigItem.Merge(dst, src) } func (m *GlobalConfigItem) XXX_Size() int { return m.Size() @@ -712,7 +702,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{7} } func (m *RequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -722,15 +712,15 @@ func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(dst, src) } func (m *RequestHeader) XXX_Size() int { return m.Size() @@ -758,7 +748,7 @@ 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"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -768,7 +758,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{8} } func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -778,15 +768,15 @@ func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(dst, src) } func (m *ResponseHeader) XXX_Size() int { return m.Size() @@ -823,7 +813,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{9} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -833,15 +823,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -867,7 +857,7 @@ func (m *Error) GetMessage() string { } type TsoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -879,7 +869,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{10} } func (m *TsoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -889,15 +879,15 @@ func (m *TsoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TsoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TsoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoRequest.Merge(dst, src) } func (m *TsoRequest) XXX_Size() int { return m.Size() @@ -944,7 +934,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{11} } func (m *Timestamp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -954,15 +944,15 @@ func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Timestamp) XXX_Merge(src proto.Message) { + xxx_messageInfo_Timestamp.Merge(dst, src) } func (m *Timestamp) XXX_Size() int { return m.Size() @@ -995,9 +985,9 @@ func (m *Timestamp) GetSuffixBits() uint32 { } type TsoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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,proto3" json:"timestamp,omitempty"` + Timestamp *Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1007,7 +997,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{12} } func (m *TsoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1017,15 +1007,15 @@ func (m *TsoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TsoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TsoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoResponse.Merge(dst, src) } func (m *TsoResponse) XXX_Size() int { return m.Size() @@ -1058,9 +1048,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1070,7 +1060,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{13} } func (m *BootstrapRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1080,15 +1070,15 @@ func (m *BootstrapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_BootstrapRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BootstrapRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BootstrapRequest.Merge(dst, src) } func (m *BootstrapRequest) XXX_Size() int { return m.Size() @@ -1121,8 +1111,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1132,7 +1122,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{14} } func (m *BootstrapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1142,15 +1132,15 @@ func (m *BootstrapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_BootstrapResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BootstrapResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BootstrapResponse.Merge(dst, src) } func (m *BootstrapResponse) XXX_Size() int { return m.Size() @@ -1176,7 +1166,7 @@ func (m *BootstrapResponse) GetReplicationStatus() *replication_modepb.Replicati } type IsBootstrappedRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1186,7 +1176,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{15} } func (m *IsBootstrappedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1196,15 +1186,15 @@ func (m *IsBootstrappedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_IsBootstrappedRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IsBootstrappedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsBootstrappedRequest.Merge(dst, src) } func (m *IsBootstrappedRequest) XXX_Size() int { return m.Size() @@ -1223,7 +1213,7 @@ func (m *IsBootstrappedRequest) GetHeader() *RequestHeader { } type IsBootstrappedResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Bootstrapped bool `protobuf:"varint,2,opt,name=bootstrapped,proto3" json:"bootstrapped,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1234,7 +1224,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{16} } func (m *IsBootstrappedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1244,15 +1234,15 @@ func (m *IsBootstrappedResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_IsBootstrappedResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IsBootstrappedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsBootstrappedResponse.Merge(dst, src) } func (m *IsBootstrappedResponse) XXX_Size() int { return m.Size() @@ -1278,7 +1268,7 @@ func (m *IsBootstrappedResponse) GetBootstrapped() bool { } type AllocIDRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1288,7 +1278,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{17} } func (m *AllocIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1298,15 +1288,15 @@ func (m *AllocIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_AllocIDRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AllocIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllocIDRequest.Merge(dst, src) } func (m *AllocIDRequest) XXX_Size() int { return m.Size() @@ -1325,7 +1315,7 @@ func (m *AllocIDRequest) GetHeader() *RequestHeader { } type AllocIDResponse 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 uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1336,7 +1326,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{18} } func (m *AllocIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1346,15 +1336,15 @@ func (m *AllocIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_AllocIDResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AllocIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AllocIDResponse.Merge(dst, src) } func (m *AllocIDResponse) XXX_Size() int { return m.Size() @@ -1380,7 +1370,7 @@ func (m *AllocIDResponse) GetId() uint64 { } type IsSnapshotRecoveringRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1390,7 +1380,7 @@ func (m *IsSnapshotRecoveringRequest) Reset() { *m = IsSnapshotRecoverin func (m *IsSnapshotRecoveringRequest) String() string { return proto.CompactTextString(m) } func (*IsSnapshotRecoveringRequest) ProtoMessage() {} func (*IsSnapshotRecoveringRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{19} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{19} } func (m *IsSnapshotRecoveringRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1400,15 +1390,15 @@ func (m *IsSnapshotRecoveringRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_IsSnapshotRecoveringRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IsSnapshotRecoveringRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsSnapshotRecoveringRequest.Merge(dst, src) } func (m *IsSnapshotRecoveringRequest) XXX_Size() int { return m.Size() @@ -1427,7 +1417,7 @@ func (m *IsSnapshotRecoveringRequest) GetHeader() *RequestHeader { } type IsSnapshotRecoveringResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1438,7 +1428,7 @@ func (m *IsSnapshotRecoveringResponse) Reset() { *m = IsSnapshotRecoveri func (m *IsSnapshotRecoveringResponse) String() string { return proto.CompactTextString(m) } func (*IsSnapshotRecoveringResponse) ProtoMessage() {} func (*IsSnapshotRecoveringResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{20} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{20} } func (m *IsSnapshotRecoveringResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1448,15 +1438,15 @@ func (m *IsSnapshotRecoveringResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_IsSnapshotRecoveringResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IsSnapshotRecoveringResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsSnapshotRecoveringResponse.Merge(dst, src) } func (m *IsSnapshotRecoveringResponse) XXX_Size() int { return m.Size() @@ -1482,7 +1472,7 @@ func (m *IsSnapshotRecoveringResponse) GetMarked() bool { } type GetStoreRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1493,7 +1483,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{21} } func (m *GetStoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1503,15 +1493,15 @@ func (m *GetStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_GetStoreRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetStoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreRequest.Merge(dst, src) } func (m *GetStoreRequest) XXX_Size() int { return m.Size() @@ -1537,9 +1527,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1549,7 +1539,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{22} } func (m *GetStoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1559,15 +1549,15 @@ func (m *GetStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_GetStoreResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStoreResponse.Merge(dst, src) } func (m *GetStoreResponse) XXX_Size() int { return m.Size() @@ -1600,8 +1590,8 @@ 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"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Store *metapb.Store `protobuf:"bytes,2,opt,name=store" json:"store,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1611,7 +1601,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{23} } func (m *PutStoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1621,15 +1611,15 @@ func (m *PutStoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_PutStoreRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutStoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutStoreRequest.Merge(dst, src) } func (m *PutStoreRequest) XXX_Size() int { return m.Size() @@ -1655,8 +1645,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1666,7 +1656,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{24} } func (m *PutStoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1676,15 +1666,15 @@ func (m *PutStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_PutStoreResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutStoreResponse.Merge(dst, src) } func (m *PutStoreResponse) XXX_Size() int { return m.Size() @@ -1710,7 +1700,7 @@ 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:"-"` @@ -1722,7 +1712,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{25} } func (m *GetAllStoresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1732,15 +1722,15 @@ func (m *GetAllStoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetAllStoresRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllStoresRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllStoresRequest.Merge(dst, src) } func (m *GetAllStoresRequest) XXX_Size() int { return m.Size() @@ -1766,8 +1756,8 @@ 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"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Stores []*metapb.Store `protobuf:"bytes,2,rep,name=stores" json:"stores,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1777,7 +1767,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{26} } func (m *GetAllStoresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1787,15 +1777,15 @@ func (m *GetAllStoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_GetAllStoresResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllStoresResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllStoresResponse.Merge(dst, src) } func (m *GetAllStoresResponse) XXX_Size() int { return m.Size() @@ -1821,7 +1811,7 @@ func (m *GetAllStoresResponse) GetStores() []*metapb.Store { } type GetRegionRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1833,7 +1823,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{27} } func (m *GetRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1843,15 +1833,15 @@ func (m *GetRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_GetRegionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionRequest.Merge(dst, src) } func (m *GetRegionRequest) XXX_Size() int { return m.Size() @@ -1884,16 +1874,16 @@ 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"` + Buckets *metapb.Buckets `protobuf:"bytes,7,opt,name=buckets" json:"buckets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1903,7 +1893,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{28} } func (m *GetRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1913,15 +1903,15 @@ func (m *GetRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_GetRegionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionResponse.Merge(dst, src) } func (m *GetRegionResponse) XXX_Size() int { return m.Size() @@ -1975,7 +1965,7 @@ func (m *GetRegionResponse) GetBuckets() *metapb.Buckets { } type GetRegionByIDRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1987,7 +1977,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{29} } func (m *GetRegionByIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1997,15 +1987,15 @@ func (m *GetRegionByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_GetRegionByIDRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRegionByIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRegionByIDRequest.Merge(dst, src) } func (m *GetRegionByIDRequest) XXX_Size() int { return m.Size() @@ -2038,7 +2028,7 @@ func (m *GetRegionByIDRequest) GetNeedBuckets() bool { } type ScanRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` @@ -2051,7 +2041,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{30} } func (m *ScanRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2061,15 +2051,15 @@ func (m *ScanRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ScanRegionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanRegionsRequest.Merge(dst, src) } func (m *ScanRegionsRequest) XXX_Size() int { return m.Size() @@ -2109,13 +2099,13 @@ 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2125,7 +2115,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{31} } func (m *Region) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2135,15 +2125,15 @@ func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Region.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Region) XXX_Merge(src proto.Message) { + xxx_messageInfo_Region.Merge(dst, src) } func (m *Region) XXX_Size() int { return m.Size() @@ -2183,12 +2173,12 @@ func (m *Region) GetPendingPeers() []*metapb.Peer { } type ScanRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // Keep for backword compatibability. - RegionMetas []*metapb.Region `protobuf:"bytes,2,rep,name=region_metas,json=regionMetas,proto3" json:"region_metas,omitempty"` - Leaders []*metapb.Peer `protobuf:"bytes,3,rep,name=leaders,proto3" json:"leaders,omitempty"` + RegionMetas []*metapb.Region `protobuf:"bytes,2,rep,name=region_metas,json=regionMetas" json:"region_metas,omitempty"` + Leaders []*metapb.Peer `protobuf:"bytes,3,rep,name=leaders" json:"leaders,omitempty"` // Extended region info with down/pending peers. - Regions []*Region `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []*Region `protobuf:"bytes,4,rep,name=regions" json:"regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2198,7 +2188,7 @@ 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} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{32} } func (m *ScanRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2208,15 +2198,15 @@ func (m *ScanRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ScanRegionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScanRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScanRegionsResponse.Merge(dst, src) } func (m *ScanRegionsResponse) XXX_Size() int { return m.Size() @@ -2256,7 +2246,7 @@ func (m *ScanRegionsResponse) GetRegions() []*Region { } type GetClusterConfigRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2266,7 +2256,7 @@ func (m *GetClusterConfigRequest) Reset() { *m = GetClusterConfigRequest func (m *GetClusterConfigRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterConfigRequest) ProtoMessage() {} func (*GetClusterConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{33} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{33} } func (m *GetClusterConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2276,15 +2266,15 @@ func (m *GetClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_GetClusterConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetClusterConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterConfigRequest.Merge(dst, src) } func (m *GetClusterConfigRequest) XXX_Size() int { return m.Size() @@ -2303,8 +2293,8 @@ 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"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster" json:"cluster,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2314,7 +2304,7 @@ func (m *GetClusterConfigResponse) Reset() { *m = GetClusterConfigRespon func (m *GetClusterConfigResponse) String() string { return proto.CompactTextString(m) } func (*GetClusterConfigResponse) ProtoMessage() {} func (*GetClusterConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{34} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{34} } func (m *GetClusterConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2324,15 +2314,15 @@ func (m *GetClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_GetClusterConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetClusterConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterConfigResponse.Merge(dst, src) } func (m *GetClusterConfigResponse) XXX_Size() int { return m.Size() @@ -2358,8 +2348,8 @@ 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"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Cluster *metapb.Cluster `protobuf:"bytes,2,opt,name=cluster" json:"cluster,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2369,7 +2359,7 @@ func (m *PutClusterConfigRequest) Reset() { *m = PutClusterConfigRequest func (m *PutClusterConfigRequest) String() string { return proto.CompactTextString(m) } func (*PutClusterConfigRequest) ProtoMessage() {} func (*PutClusterConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{35} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{35} } func (m *PutClusterConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2379,15 +2369,15 @@ func (m *PutClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_PutClusterConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutClusterConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutClusterConfigRequest.Merge(dst, src) } func (m *PutClusterConfigRequest) XXX_Size() int { return m.Size() @@ -2413,7 +2403,7 @@ func (m *PutClusterConfigRequest) GetCluster() *metapb.Cluster { } type PutClusterConfigResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2423,7 +2413,7 @@ func (m *PutClusterConfigResponse) Reset() { *m = PutClusterConfigRespon func (m *PutClusterConfigResponse) String() string { return proto.CompactTextString(m) } func (*PutClusterConfigResponse) ProtoMessage() {} func (*PutClusterConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{36} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{36} } func (m *PutClusterConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2433,15 +2423,15 @@ func (m *PutClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_PutClusterConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutClusterConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutClusterConfigResponse.Merge(dst, src) } func (m *PutClusterConfigResponse) XXX_Size() int { return m.Size() @@ -2464,8 +2454,8 @@ type Member struct { 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"` + 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"` @@ -2480,7 +2470,7 @@ func (m *Member) Reset() { *m = Member{} } func (m *Member) String() string { return proto.CompactTextString(m) } func (*Member) ProtoMessage() {} func (*Member) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{37} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{37} } func (m *Member) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2490,15 +2480,15 @@ func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Member.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Member) XXX_Merge(src proto.Message) { + xxx_messageInfo_Member.Merge(dst, src) } func (m *Member) XXX_Size() int { return m.Size() @@ -2573,7 +2563,7 @@ func (m *Member) GetDcLocation() string { } type GetMembersRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2583,7 +2573,7 @@ func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} } func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) } func (*GetMembersRequest) ProtoMessage() {} func (*GetMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{38} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{38} } func (m *GetMembersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2593,15 +2583,15 @@ func (m *GetMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_GetMembersRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMembersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMembersRequest.Merge(dst, src) } func (m *GetMembersRequest) XXX_Size() int { return m.Size() @@ -2620,11 +2610,11 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2634,7 +2624,7 @@ func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} } func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) } func (*GetMembersResponse) ProtoMessage() {} func (*GetMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{39} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{39} } func (m *GetMembersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2644,15 +2634,15 @@ func (m *GetMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetMembersResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMembersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMembersResponse.Merge(dst, src) } func (m *GetMembersResponse) XXX_Size() int { return m.Size() @@ -2699,7 +2689,7 @@ func (m *GetMembersResponse) GetTsoAllocatorLeaders() map[string]*Member { } type GetClusterInfoRequest struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2709,7 +2699,7 @@ func (m *GetClusterInfoRequest) Reset() { *m = GetClusterInfoRequest{} } func (m *GetClusterInfoRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterInfoRequest) ProtoMessage() {} func (*GetClusterInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{40} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{40} } func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2719,15 +2709,15 @@ func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_GetClusterInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetClusterInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoRequest.Merge(dst, src) } func (m *GetClusterInfoRequest) XXX_Size() int { return m.Size() @@ -2746,11 +2736,11 @@ 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"` + TsoUrls []string `protobuf:"bytes,3,rep,name=tso_urls,json=tsoUrls" json:"tso_urls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2760,7 +2750,7 @@ func (m *GetClusterInfoResponse) Reset() { *m = GetClusterInfoResponse{} func (m *GetClusterInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetClusterInfoResponse) ProtoMessage() {} func (*GetClusterInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{41} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{41} } func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2770,15 +2760,15 @@ func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_GetClusterInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetClusterInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetClusterInfoResponse.Merge(dst, src) } func (m *GetClusterInfoResponse) XXX_Size() int { return m.Size() @@ -2811,7 +2801,7 @@ func (m *GetClusterInfoResponse) GetTsoUrls() []string { } type PeerStats struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -2822,7 +2812,7 @@ func (m *PeerStats) Reset() { *m = PeerStats{} } func (m *PeerStats) String() string { return proto.CompactTextString(m) } func (*PeerStats) ProtoMessage() {} func (*PeerStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{42} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{42} } func (m *PeerStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2832,15 +2822,15 @@ func (m *PeerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PeerStats.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PeerStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerStats.Merge(dst, src) } func (m *PeerStats) XXX_Size() int { return m.Size() @@ -2866,15 +2856,15 @@ func (m *PeerStats) GetDownSeconds() uint64 { } type RegionHeartbeatRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Region *metapb.Region `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` // Leader Peer sending the heartbeat. - Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader,proto3" json:"leader,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,3,opt,name=leader" json:"leader,omitempty"` // Leader considers that these peers are down. - DownPeers []*PeerStats `protobuf:"bytes,4,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` + DownPeers []*PeerStats `protobuf:"bytes,4,rep,name=down_peers,json=downPeers" json:"down_peers,omitempty"` // Pending peers are the peers that the leader can't consider as // working followers. - PendingPeers []*metapb.Peer `protobuf:"bytes,5,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` + PendingPeers []*metapb.Peer `protobuf:"bytes,5,rep,name=pending_peers,json=pendingPeers" json:"pending_peers,omitempty"` // Bytes read/written during this period. BytesWritten uint64 `protobuf:"varint,6,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"` BytesRead uint64 `protobuf:"varint,7,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"` @@ -2884,14 +2874,14 @@ 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"` @@ -2907,7 +2897,7 @@ func (m *RegionHeartbeatRequest) Reset() { *m = RegionHeartbeatRequest{} func (m *RegionHeartbeatRequest) String() string { return proto.CompactTextString(m) } func (*RegionHeartbeatRequest) ProtoMessage() {} func (*RegionHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{43} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{43} } func (m *RegionHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2917,15 +2907,15 @@ func (m *RegionHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_RegionHeartbeatRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatRequest.Merge(dst, src) } func (m *RegionHeartbeatRequest) XXX_Size() int { return m.Size() @@ -3056,7 +3046,7 @@ func (m *RegionHeartbeatRequest) GetApproximateKvSize() uint64 { } type ChangePeer struct { - Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3067,7 +3057,7 @@ func (m *ChangePeer) Reset() { *m = ChangePeer{} } func (m *ChangePeer) String() string { return proto.CompactTextString(m) } func (*ChangePeer) ProtoMessage() {} func (*ChangePeer) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{44} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{44} } func (m *ChangePeer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3077,15 +3067,15 @@ func (m *ChangePeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ChangePeer.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangePeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeer.Merge(dst, src) } func (m *ChangePeer) XXX_Size() int { return m.Size() @@ -3112,7 +3102,7 @@ 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"` + Changes []*ChangePeer `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3122,7 +3112,7 @@ func (m *ChangePeerV2) Reset() { *m = ChangePeerV2{} } func (m *ChangePeerV2) String() string { return proto.CompactTextString(m) } func (*ChangePeerV2) ProtoMessage() {} func (*ChangePeerV2) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{45} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{45} } func (m *ChangePeerV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3132,15 +3122,15 @@ func (m *ChangePeerV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ChangePeerV2.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangePeerV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerV2.Merge(dst, src) } func (m *ChangePeerV2) XXX_Size() int { return m.Size() @@ -3159,8 +3149,8 @@ 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"` + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3170,7 +3160,7 @@ func (m *TransferLeader) Reset() { *m = TransferLeader{} } func (m *TransferLeader) String() string { return proto.CompactTextString(m) } func (*TransferLeader) ProtoMessage() {} func (*TransferLeader) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{46} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{46} } func (m *TransferLeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3180,15 +3170,15 @@ func (m *TransferLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_TransferLeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TransferLeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferLeader.Merge(dst, src) } func (m *TransferLeader) XXX_Size() int { return m.Size() @@ -3214,7 +3204,7 @@ func (m *TransferLeader) GetPeers() []*metapb.Peer { } type Merge struct { - Target *metapb.Region `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + Target *metapb.Region `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3224,7 +3214,7 @@ func (m *Merge) Reset() { *m = Merge{} } func (m *Merge) String() string { return proto.CompactTextString(m) } func (*Merge) ProtoMessage() {} func (*Merge) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{47} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{47} } func (m *Merge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3234,15 +3224,15 @@ func (m *Merge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Merge.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Merge) XXX_Merge(src proto.Message) { + xxx_messageInfo_Merge.Merge(dst, src) } func (m *Merge) XXX_Size() int { return m.Size() @@ -3262,7 +3252,7 @@ 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"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3272,7 +3262,7 @@ func (m *SplitRegion) Reset() { *m = SplitRegion{} } func (m *SplitRegion) String() string { return proto.CompactTextString(m) } func (*SplitRegion) ProtoMessage() {} func (*SplitRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{48} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{48} } func (m *SplitRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3282,15 +3272,15 @@ func (m *SplitRegion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SplitRegion.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRegion) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegion.Merge(dst, src) } func (m *SplitRegion) XXX_Size() int { return m.Size() @@ -3327,7 +3317,7 @@ func (m *SwitchWitness) Reset() { *m = SwitchWitness{} } func (m *SwitchWitness) String() string { return proto.CompactTextString(m) } func (*SwitchWitness) ProtoMessage() {} func (*SwitchWitness) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{49} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{49} } func (m *SwitchWitness) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3337,15 +3327,15 @@ func (m *SwitchWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_SwitchWitness.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SwitchWitness) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchWitness.Merge(dst, src) } func (m *SwitchWitness) XXX_Size() int { return m.Size() @@ -3371,7 +3361,7 @@ func (m *SwitchWitness) GetIsWitness() bool { } type BatchSwitchWitness struct { - SwitchWitnesses []*SwitchWitness `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + SwitchWitnesses []*SwitchWitness `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3381,7 +3371,7 @@ func (m *BatchSwitchWitness) Reset() { *m = BatchSwitchWitness{} } func (m *BatchSwitchWitness) String() string { return proto.CompactTextString(m) } func (*BatchSwitchWitness) ProtoMessage() {} func (*BatchSwitchWitness) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{50} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{50} } func (m *BatchSwitchWitness) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3391,15 +3381,15 @@ func (m *BatchSwitchWitness) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_BatchSwitchWitness.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchSwitchWitness) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwitchWitness.Merge(dst, src) } func (m *BatchSwitchWitness) XXX_Size() int { return m.Size() @@ -3418,7 +3408,7 @@ func (m *BatchSwitchWitness) GetSwitchWitnesses() []*SwitchWitness { } type RegionHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` // Notice, Pd only allows handling reported epoch >= current pd's. // Leader peer reports region status with RegionHeartbeatRequest // to pd regularly, pd will determine whether this region @@ -3433,25 +3423,25 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3461,7 +3451,7 @@ func (m *RegionHeartbeatResponse) Reset() { *m = RegionHeartbeatResponse func (m *RegionHeartbeatResponse) String() string { return proto.CompactTextString(m) } func (*RegionHeartbeatResponse) ProtoMessage() {} func (*RegionHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{51} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{51} } func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3471,15 +3461,15 @@ func (m *RegionHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_RegionHeartbeatResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatResponse.Merge(dst, src) } func (m *RegionHeartbeatResponse) XXX_Size() int { return m.Size() @@ -3561,8 +3551,8 @@ 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"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Region *metapb.Region `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3572,7 +3562,7 @@ func (m *AskSplitRequest) Reset() { *m = AskSplitRequest{} } func (m *AskSplitRequest) String() string { return proto.CompactTextString(m) } func (*AskSplitRequest) ProtoMessage() {} func (*AskSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{52} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{52} } func (m *AskSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3582,15 +3572,15 @@ func (m *AskSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_AskSplitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AskSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskSplitRequest.Merge(dst, src) } func (m *AskSplitRequest) XXX_Size() int { return m.Size() @@ -3616,13 +3606,13 @@ 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"` + NewPeerIds []uint64 `protobuf:"varint,3,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3632,7 +3622,7 @@ func (m *AskSplitResponse) Reset() { *m = AskSplitResponse{} } func (m *AskSplitResponse) String() string { return proto.CompactTextString(m) } func (*AskSplitResponse) ProtoMessage() {} func (*AskSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{53} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{53} } func (m *AskSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3642,15 +3632,15 @@ func (m *AskSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_AskSplitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AskSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskSplitResponse.Merge(dst, src) } func (m *AskSplitResponse) XXX_Size() int { return m.Size() @@ -3683,9 +3673,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3695,7 +3685,7 @@ func (m *ReportSplitRequest) Reset() { *m = ReportSplitRequest{} } func (m *ReportSplitRequest) String() string { return proto.CompactTextString(m) } func (*ReportSplitRequest) ProtoMessage() {} func (*ReportSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{54} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{54} } func (m *ReportSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3705,15 +3695,15 @@ func (m *ReportSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ReportSplitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportSplitRequest.Merge(dst, src) } func (m *ReportSplitRequest) XXX_Size() int { return m.Size() @@ -3746,7 +3736,7 @@ func (m *ReportSplitRequest) GetRight() *metapb.Region { } type ReportSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3756,7 +3746,7 @@ func (m *ReportSplitResponse) Reset() { *m = ReportSplitResponse{} } func (m *ReportSplitResponse) String() string { return proto.CompactTextString(m) } func (*ReportSplitResponse) ProtoMessage() {} func (*ReportSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{55} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{55} } func (m *ReportSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3766,15 +3756,15 @@ func (m *ReportSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ReportSplitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportSplitResponse.Merge(dst, src) } func (m *ReportSplitResponse) XXX_Size() int { return m.Size() @@ -3793,8 +3783,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -3805,7 +3795,7 @@ func (m *AskBatchSplitRequest) Reset() { *m = AskBatchSplitRequest{} } func (m *AskBatchSplitRequest) String() string { return proto.CompactTextString(m) } func (*AskBatchSplitRequest) ProtoMessage() {} func (*AskBatchSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{56} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{56} } func (m *AskBatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3815,15 +3805,15 @@ func (m *AskBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_AskBatchSplitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AskBatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitRequest.Merge(dst, src) } func (m *AskBatchSplitRequest) XXX_Size() int { return m.Size() @@ -3857,7 +3847,7 @@ 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"` + NewPeerIds []uint64 `protobuf:"varint,2,rep,packed,name=new_peer_ids,json=newPeerIds" json:"new_peer_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3867,7 +3857,7 @@ func (m *SplitID) Reset() { *m = SplitID{} } func (m *SplitID) String() string { return proto.CompactTextString(m) } func (*SplitID) ProtoMessage() {} func (*SplitID) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{57} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{57} } func (m *SplitID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3877,15 +3867,15 @@ func (m *SplitID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SplitID.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitID) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitID.Merge(dst, src) } func (m *SplitID) XXX_Size() int { return m.Size() @@ -3911,8 +3901,8 @@ 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"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Ids []*SplitID `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3922,7 +3912,7 @@ func (m *AskBatchSplitResponse) Reset() { *m = AskBatchSplitResponse{} } func (m *AskBatchSplitResponse) String() string { return proto.CompactTextString(m) } func (*AskBatchSplitResponse) ProtoMessage() {} func (*AskBatchSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{58} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{58} } func (m *AskBatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3932,15 +3922,15 @@ func (m *AskBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_AskBatchSplitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AskBatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitResponse.Merge(dst, src) } func (m *AskBatchSplitResponse) XXX_Size() int { return m.Size() @@ -3966,8 +3956,8 @@ 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"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions" json:"regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3977,7 +3967,7 @@ func (m *ReportBatchSplitRequest) Reset() { *m = ReportBatchSplitRequest func (m *ReportBatchSplitRequest) String() string { return proto.CompactTextString(m) } func (*ReportBatchSplitRequest) ProtoMessage() {} func (*ReportBatchSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{59} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{59} } func (m *ReportBatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3987,15 +3977,15 @@ func (m *ReportBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_ReportBatchSplitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportBatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBatchSplitRequest.Merge(dst, src) } func (m *ReportBatchSplitRequest) XXX_Size() int { return m.Size() @@ -4021,7 +4011,7 @@ func (m *ReportBatchSplitRequest) GetRegions() []*metapb.Region { } type ReportBatchSplitResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -4031,7 +4021,7 @@ func (m *ReportBatchSplitResponse) Reset() { *m = ReportBatchSplitRespon func (m *ReportBatchSplitResponse) String() string { return proto.CompactTextString(m) } func (*ReportBatchSplitResponse) ProtoMessage() {} func (*ReportBatchSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{60} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{60} } func (m *ReportBatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4041,15 +4031,15 @@ func (m *ReportBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_ReportBatchSplitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportBatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBatchSplitResponse.Merge(dst, src) } func (m *ReportBatchSplitResponse) XXX_Size() int { return m.Size() @@ -4081,7 +4071,7 @@ func (m *TimeInterval) Reset() { *m = TimeInterval{} } func (m *TimeInterval) String() string { return proto.CompactTextString(m) } func (*TimeInterval) ProtoMessage() {} func (*TimeInterval) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{61} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{61} } func (m *TimeInterval) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4091,15 +4081,15 @@ func (m *TimeInterval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TimeInterval.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TimeInterval) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeInterval.Merge(dst, src) } func (m *TimeInterval) XXX_Size() int { return m.Size() @@ -4136,7 +4126,7 @@ func (m *RecordPair) Reset() { *m = RecordPair{} } func (m *RecordPair) String() string { return proto.CompactTextString(m) } func (*RecordPair) ProtoMessage() {} func (*RecordPair) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{62} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{62} } func (m *RecordPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4146,15 +4136,15 @@ func (m *RecordPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RecordPair.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RecordPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecordPair.Merge(dst, src) } func (m *RecordPair) XXX_Size() int { return m.Size() @@ -4183,7 +4173,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -4195,7 +4185,7 @@ func (m *PeerStat) Reset() { *m = PeerStat{} } func (m *PeerStat) String() string { return proto.CompactTextString(m) } func (*PeerStat) ProtoMessage() {} func (*PeerStat) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{63} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{63} } func (m *PeerStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4205,15 +4195,15 @@ func (m *PeerStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PeerStat.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PeerStat) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerStat.Merge(dst, src) } func (m *PeerStat) XXX_Size() int { return m.Size() @@ -4295,28 +4285,28 @@ 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. @@ -4332,7 +4322,7 @@ func (m *StoreStats) Reset() { *m = StoreStats{} } func (m *StoreStats) String() string { return proto.CompactTextString(m) } func (*StoreStats) ProtoMessage() {} func (*StoreStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{64} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{64} } func (m *StoreStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4342,15 +4332,15 @@ func (m *StoreStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StoreStats.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreStats.Merge(dst, src) } func (m *StoreStats) XXX_Size() int { return m.Size() @@ -4578,7 +4568,7 @@ func (m *SlowTrend) Reset() { *m = SlowTrend{} } func (m *SlowTrend) String() string { return proto.CompactTextString(m) } func (*SlowTrend) ProtoMessage() {} func (*SlowTrend) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{65} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{65} } func (m *SlowTrend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4588,15 +4578,15 @@ func (m *SlowTrend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SlowTrend.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SlowTrend) XXX_Merge(src proto.Message) { + xxx_messageInfo_SlowTrend.Merge(dst, src) } func (m *SlowTrend) XXX_Size() int { return m.Size() @@ -4656,7 +4646,7 @@ func (m *SnapshotStat) Reset() { *m = SnapshotStat{} } func (m *SnapshotStat) String() string { return proto.CompactTextString(m) } func (*SnapshotStat) ProtoMessage() {} func (*SnapshotStat) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{66} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{66} } func (m *SnapshotStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4666,15 +4656,15 @@ func (m *SnapshotStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SnapshotStat.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotStat) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotStat.Merge(dst, src) } func (m *SnapshotStat) XXX_Size() int { return m.Size() @@ -4721,8 +4711,8 @@ 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"` @@ -4735,7 +4725,7 @@ func (m *PeerReport) Reset() { *m = PeerReport{} } func (m *PeerReport) String() string { return proto.CompactTextString(m) } func (*PeerReport) ProtoMessage() {} func (*PeerReport) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{67} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{67} } func (m *PeerReport) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4745,15 +4735,15 @@ func (m *PeerReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PeerReport.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PeerReport) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeerReport.Merge(dst, src) } func (m *PeerReport) XXX_Size() int { return m.Size() @@ -4793,7 +4783,7 @@ func (m *PeerReport) GetHasCommitMerge() bool { } type StoreReport struct { - PeerReports []*PeerReport `protobuf:"bytes,1,rep,name=peer_reports,json=peerReports,proto3" json:"peer_reports,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -4804,7 +4794,7 @@ func (m *StoreReport) Reset() { *m = StoreReport{} } func (m *StoreReport) String() string { return proto.CompactTextString(m) } func (*StoreReport) ProtoMessage() {} func (*StoreReport) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{68} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{68} } func (m *StoreReport) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4814,15 +4804,15 @@ func (m *StoreReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_StoreReport.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreReport) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreReport.Merge(dst, src) } func (m *StoreReport) XXX_Size() int { return m.Size() @@ -4848,11 +4838,11 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -4862,7 +4852,7 @@ func (m *StoreHeartbeatRequest) Reset() { *m = StoreHeartbeatRequest{} } func (m *StoreHeartbeatRequest) String() string { return proto.CompactTextString(m) } func (*StoreHeartbeatRequest) ProtoMessage() {} func (*StoreHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{69} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{69} } func (m *StoreHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4872,15 +4862,15 @@ func (m *StoreHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_StoreHeartbeatRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatRequest.Merge(dst, src) } func (m *StoreHeartbeatRequest) XXX_Size() int { return m.Size() @@ -4921,7 +4911,7 @@ 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"` + FailedVoters []*metapb.Peer `protobuf:"bytes,2,rep,name=failed_voters,json=failedVoters" json:"failed_voters,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -4931,7 +4921,7 @@ func (m *DemoteFailedVoters) Reset() { *m = DemoteFailedVoters{} } func (m *DemoteFailedVoters) String() string { return proto.CompactTextString(m) } func (*DemoteFailedVoters) ProtoMessage() {} func (*DemoteFailedVoters) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{70} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{70} } func (m *DemoteFailedVoters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4941,15 +4931,15 @@ func (m *DemoteFailedVoters) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_DemoteFailedVoters.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DemoteFailedVoters) XXX_Merge(src proto.Message) { + xxx_messageInfo_DemoteFailedVoters.Merge(dst, src) } func (m *DemoteFailedVoters) XXX_Size() int { return m.Size() @@ -4976,9 +4966,9 @@ 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"` + EnterForceLeaders []uint64 `protobuf:"varint,2,rep,packed,name=enter_force_leaders,json=enterForceLeaders" json:"enter_force_leaders,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -4988,7 +4978,7 @@ func (m *ForceLeader) Reset() { *m = ForceLeader{} } func (m *ForceLeader) String() string { return proto.CompactTextString(m) } func (*ForceLeader) ProtoMessage() {} func (*ForceLeader) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{71} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{71} } func (m *ForceLeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4998,15 +4988,15 @@ func (m *ForceLeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ForceLeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ForceLeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ForceLeader.Merge(dst, src) } func (m *ForceLeader) XXX_Size() int { return m.Size() @@ -5033,15 +5023,15 @@ 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"` // Deprecated: Do not use. // 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"` @@ -5054,7 +5044,7 @@ func (m *RecoveryPlan) Reset() { *m = RecoveryPlan{} } func (m *RecoveryPlan) String() string { return proto.CompactTextString(m) } func (*RecoveryPlan) ProtoMessage() {} func (*RecoveryPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{72} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{72} } func (m *RecoveryPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5064,15 +5054,15 @@ func (m *RecoveryPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_RecoveryPlan.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RecoveryPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoveryPlan.Merge(dst, src) } func (m *RecoveryPlan) XXX_Size() int { return m.Size() @@ -5128,7 +5118,7 @@ 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"` + AbnormalStores []uint64 `protobuf:"varint,1,rep,packed,name=abnormal_stores,json=abnormalStores" json:"abnormal_stores,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5138,7 +5128,7 @@ func (m *AwakenRegions) Reset() { *m = AwakenRegions{} } func (m *AwakenRegions) String() string { return proto.CompactTextString(m) } func (*AwakenRegions) ProtoMessage() {} func (*AwakenRegions) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{73} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{73} } func (m *AwakenRegions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5148,15 +5138,15 @@ func (m *AwakenRegions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_AwakenRegions.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AwakenRegions) XXX_Merge(src proto.Message) { + xxx_messageInfo_AwakenRegions.Merge(dst, src) } func (m *AwakenRegions) XXX_Size() int { return m.Size() @@ -5185,7 +5175,7 @@ func (m *ControlGrpc) Reset() { *m = ControlGrpc{} } func (m *ControlGrpc) String() string { return proto.CompactTextString(m) } func (*ControlGrpc) ProtoMessage() {} func (*ControlGrpc) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{74} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{74} } func (m *ControlGrpc) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5195,15 +5185,15 @@ func (m *ControlGrpc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ControlGrpc.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ControlGrpc) XXX_Merge(src proto.Message) { + xxx_messageInfo_ControlGrpc.Merge(dst, src) } func (m *ControlGrpc) XXX_Size() int { return m.Size() @@ -5222,8 +5212,8 @@ 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 @@ -5231,11 +5221,11 @@ type StoreHeartbeatResponse struct { RequireDetailedReport bool `protobuf:"varint,4,opt,name=require_detailed_report,json=requireDetailedReport,proto3" json:"require_detailed_report,omitempty"` // Deprecated: Do not use. // Operations of recovery. After the plan is executed, TiKV should attach the // store report in store heartbeat. - RecoveryPlan *RecoveryPlan `protobuf:"bytes,5,opt,name=recovery_plan,json=recoveryPlan,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"` + ControlGrpc *ControlGrpc `protobuf:"bytes,7,opt,name=control_grpc,json=controlGrpc" json:"control_grpc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5245,7 +5235,7 @@ func (m *StoreHeartbeatResponse) Reset() { *m = StoreHeartbeatResponse{} func (m *StoreHeartbeatResponse) String() string { return proto.CompactTextString(m) } func (*StoreHeartbeatResponse) ProtoMessage() {} func (*StoreHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{75} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{75} } func (m *StoreHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5255,15 +5245,15 @@ func (m *StoreHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_StoreHeartbeatResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatResponse.Merge(dst, src) } func (m *StoreHeartbeatResponse) XXX_Size() int { return m.Size() @@ -5325,17 +5315,17 @@ func (m *StoreHeartbeatResponse) GetControlGrpc() *ControlGrpc { } type ScatterRegionRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` // Deprecated: Do not use. // PD will use these region information if it can't find the region. // For example, the region is just split and hasn't report to PD yet. - Region *metapb.Region `protobuf:"bytes,3,opt,name=region,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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -5347,7 +5337,7 @@ func (m *ScatterRegionRequest) Reset() { *m = ScatterRegionRequest{} } func (m *ScatterRegionRequest) String() string { return proto.CompactTextString(m) } func (*ScatterRegionRequest) ProtoMessage() {} func (*ScatterRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{76} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{76} } func (m *ScatterRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5357,15 +5347,15 @@ func (m *ScatterRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_ScatterRegionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScatterRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScatterRegionRequest.Merge(dst, src) } func (m *ScatterRegionRequest) XXX_Size() int { return m.Size() @@ -5434,7 +5424,7 @@ func (m *ScatterRegionRequest) GetSkipStoreLimit() bool { } type ScatterRegionResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5445,7 +5435,7 @@ func (m *ScatterRegionResponse) Reset() { *m = ScatterRegionResponse{} } func (m *ScatterRegionResponse) String() string { return proto.CompactTextString(m) } func (*ScatterRegionResponse) ProtoMessage() {} func (*ScatterRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{77} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{77} } func (m *ScatterRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5455,15 +5445,15 @@ func (m *ScatterRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ScatterRegionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScatterRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScatterRegionResponse.Merge(dst, src) } func (m *ScatterRegionResponse) XXX_Size() int { return m.Size() @@ -5489,7 +5479,7 @@ func (m *ScatterRegionResponse) GetFinishedPercentage() uint64 { } type GetGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -5499,7 +5489,7 @@ func (m *GetGCSafePointRequest) Reset() { *m = GetGCSafePointRequest{} } func (m *GetGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointRequest) ProtoMessage() {} func (*GetGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{78} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{78} } func (m *GetGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5509,15 +5499,15 @@ func (m *GetGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_GetGCSafePointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointRequest.Merge(dst, src) } func (m *GetGCSafePointRequest) XXX_Size() int { return m.Size() @@ -5536,7 +5526,7 @@ func (m *GetGCSafePointRequest) GetHeader() *RequestHeader { } type GetGCSafePointResponse 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5547,7 +5537,7 @@ func (m *GetGCSafePointResponse) Reset() { *m = GetGCSafePointResponse{} func (m *GetGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointResponse) ProtoMessage() {} func (*GetGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{79} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{79} } func (m *GetGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5557,15 +5547,15 @@ func (m *GetGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_GetGCSafePointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointResponse.Merge(dst, src) } func (m *GetGCSafePointResponse) XXX_Size() int { return m.Size() @@ -5591,7 +5581,7 @@ func (m *GetGCSafePointResponse) GetSafePoint() uint64 { } 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"` SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5602,7 +5592,7 @@ func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointReque func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointRequest) ProtoMessage() {} func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{80} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{80} } func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5612,15 +5602,15 @@ func (m *UpdateGCSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_UpdateGCSafePointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointRequest.Merge(dst, src) } func (m *UpdateGCSafePointRequest) XXX_Size() int { return m.Size() @@ -5646,7 +5636,7 @@ func (m *UpdateGCSafePointRequest) GetSafePoint() uint64 { } 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"` 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:"-"` @@ -5657,7 +5647,7 @@ func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResp func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointResponse) ProtoMessage() {} func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{81} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{81} } func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5667,15 +5657,15 @@ func (m *UpdateGCSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_UpdateGCSafePointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointResponse.Merge(dst, src) } func (m *UpdateGCSafePointResponse) XXX_Size() int { return m.Size() @@ -5701,7 +5691,7 @@ func (m *UpdateGCSafePointResponse) GetNewSafePoint() uint64 { } type UpdateServiceGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` @@ -5714,7 +5704,7 @@ func (m *UpdateServiceGCSafePointRequest) Reset() { *m = UpdateServiceGC func (m *UpdateServiceGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointRequest) ProtoMessage() {} func (*UpdateServiceGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{82} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{82} } func (m *UpdateServiceGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5724,15 +5714,15 @@ func (m *UpdateServiceGCSafePointRequest) XXX_Marshal(b []byte, deterministic bo return xxx_messageInfo_UpdateServiceGCSafePointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateServiceGCSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceGCSafePointRequest.Merge(dst, src) } func (m *UpdateServiceGCSafePointRequest) XXX_Size() int { return m.Size() @@ -5772,7 +5762,7 @@ func (m *UpdateServiceGCSafePointRequest) GetSafePoint() uint64 { } type UpdateServiceGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` @@ -5785,7 +5775,7 @@ func (m *UpdateServiceGCSafePointResponse) Reset() { *m = UpdateServiceG func (m *UpdateServiceGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointResponse) ProtoMessage() {} func (*UpdateServiceGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{83} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{83} } func (m *UpdateServiceGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5795,15 +5785,15 @@ func (m *UpdateServiceGCSafePointResponse) XXX_Marshal(b []byte, deterministic b return xxx_messageInfo_UpdateServiceGCSafePointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateServiceGCSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceGCSafePointResponse.Merge(dst, src) } func (m *UpdateServiceGCSafePointResponse) XXX_Size() int { return m.Size() @@ -5843,7 +5833,7 @@ func (m *UpdateServiceGCSafePointResponse) GetMinSafePoint() uint64 { } type GetGCSafePointV2Request 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5854,7 +5844,7 @@ func (m *GetGCSafePointV2Request) Reset() { *m = GetGCSafePointV2Request func (m *GetGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointV2Request) ProtoMessage() {} func (*GetGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{84} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{84} } func (m *GetGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5864,15 +5854,15 @@ func (m *GetGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_GetGCSafePointV2Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointV2Request.Merge(dst, src) } func (m *GetGCSafePointV2Request) XXX_Size() int { return m.Size() @@ -5898,7 +5888,7 @@ func (m *GetGCSafePointV2Request) GetKeyspaceId() uint32 { } type GetGCSafePointV2Response 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5909,7 +5899,7 @@ func (m *GetGCSafePointV2Response) Reset() { *m = GetGCSafePointV2Respon func (m *GetGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointV2Response) ProtoMessage() {} func (*GetGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{85} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{85} } func (m *GetGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5919,15 +5909,15 @@ func (m *GetGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_GetGCSafePointV2Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCSafePointV2Response.Merge(dst, src) } func (m *GetGCSafePointV2Response) XXX_Size() int { return m.Size() @@ -5953,7 +5943,7 @@ func (m *GetGCSafePointV2Response) GetSafePoint() uint64 { } type WatchGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Revision int64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -5964,7 +5954,7 @@ func (m *WatchGCSafePointV2Request) Reset() { *m = WatchGCSafePointV2Req func (m *WatchGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*WatchGCSafePointV2Request) ProtoMessage() {} func (*WatchGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{86} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{86} } func (m *WatchGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5974,15 +5964,15 @@ func (m *WatchGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_WatchGCSafePointV2Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGCSafePointV2Request.Merge(dst, src) } func (m *WatchGCSafePointV2Request) XXX_Size() int { return m.Size() @@ -6021,7 +6011,7 @@ func (m *SafePointEvent) Reset() { *m = SafePointEvent{} } func (m *SafePointEvent) String() string { return proto.CompactTextString(m) } func (*SafePointEvent) ProtoMessage() {} func (*SafePointEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{87} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{87} } func (m *SafePointEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6031,15 +6021,15 @@ func (m *SafePointEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_SafePointEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SafePointEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_SafePointEvent.Merge(dst, src) } func (m *SafePointEvent) XXX_Size() int { return m.Size() @@ -6072,8 +6062,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -6084,7 +6074,7 @@ func (m *WatchGCSafePointV2Response) Reset() { *m = WatchGCSafePointV2Re func (m *WatchGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*WatchGCSafePointV2Response) ProtoMessage() {} func (*WatchGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{88} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{88} } func (m *WatchGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6094,15 +6084,15 @@ func (m *WatchGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_WatchGCSafePointV2Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WatchGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_WatchGCSafePointV2Response.Merge(dst, src) } func (m *WatchGCSafePointV2Response) XXX_Size() int { return m.Size() @@ -6135,7 +6125,7 @@ func (m *WatchGCSafePointV2Response) GetRevision() int64 { } type UpdateGCSafePointV2Request 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"` SafePoint uint64 `protobuf:"varint,3,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -6147,7 +6137,7 @@ func (m *UpdateGCSafePointV2Request) Reset() { *m = UpdateGCSafePointV2R func (m *UpdateGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointV2Request) ProtoMessage() {} func (*UpdateGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{89} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{89} } func (m *UpdateGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6157,15 +6147,15 @@ func (m *UpdateGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_UpdateGCSafePointV2Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointV2Request.Merge(dst, src) } func (m *UpdateGCSafePointV2Request) XXX_Size() int { return m.Size() @@ -6198,7 +6188,7 @@ func (m *UpdateGCSafePointV2Request) GetSafePoint() uint64 { } type UpdateGCSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -6209,7 +6199,7 @@ func (m *UpdateGCSafePointV2Response) Reset() { *m = UpdateGCSafePointV2 func (m *UpdateGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointV2Response) ProtoMessage() {} func (*UpdateGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{90} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{90} } func (m *UpdateGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6219,15 +6209,15 @@ func (m *UpdateGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_UpdateGCSafePointV2Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGCSafePointV2Response.Merge(dst, src) } func (m *UpdateGCSafePointV2Response) XXX_Size() int { return m.Size() @@ -6253,7 +6243,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"` @@ -6272,7 +6262,7 @@ func (m *UpdateServiceSafePointV2Request) Reset() { *m = UpdateServiceSa func (m *UpdateServiceSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Request) ProtoMessage() {} func (*UpdateServiceSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{91} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{91} } func (m *UpdateServiceSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6282,15 +6272,15 @@ func (m *UpdateServiceSafePointV2Request) XXX_Marshal(b []byte, deterministic bo return xxx_messageInfo_UpdateServiceSafePointV2Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateServiceSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointV2Request.Merge(dst, src) } func (m *UpdateServiceSafePointV2Request) XXX_Size() int { return m.Size() @@ -6337,7 +6327,7 @@ func (m *UpdateServiceSafePointV2Request) GetTtl() int64 { } type UpdateServiceSafePointV2Response struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` @@ -6350,7 +6340,7 @@ func (m *UpdateServiceSafePointV2Response) Reset() { *m = UpdateServiceS func (m *UpdateServiceSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Response) ProtoMessage() {} func (*UpdateServiceSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{92} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{92} } func (m *UpdateServiceSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6360,15 +6350,15 @@ func (m *UpdateServiceSafePointV2Response) XXX_Marshal(b []byte, deterministic b return xxx_messageInfo_UpdateServiceSafePointV2Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateServiceSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateServiceSafePointV2Response.Merge(dst, src) } func (m *UpdateServiceSafePointV2Response) XXX_Size() int { return m.Size() @@ -6408,7 +6398,7 @@ func (m *UpdateServiceSafePointV2Response) GetMinSafePoint() uint64 { } type GetAllGCSafePointV2Request struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -6418,7 +6408,7 @@ func (m *GetAllGCSafePointV2Request) Reset() { *m = GetAllGCSafePointV2R func (m *GetAllGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*GetAllGCSafePointV2Request) ProtoMessage() {} func (*GetAllGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{93} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{93} } func (m *GetAllGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6428,15 +6418,15 @@ func (m *GetAllGCSafePointV2Request) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_GetAllGCSafePointV2Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllGCSafePointV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllGCSafePointV2Request.Merge(dst, src) } func (m *GetAllGCSafePointV2Request) XXX_Size() int { return m.Size() @@ -6466,7 +6456,7 @@ func (m *GCSafePointV2) Reset() { *m = GCSafePointV2{} } func (m *GCSafePointV2) String() string { return proto.CompactTextString(m) } func (*GCSafePointV2) ProtoMessage() {} func (*GCSafePointV2) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{94} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{94} } func (m *GCSafePointV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6476,15 +6466,15 @@ func (m *GCSafePointV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_GCSafePointV2.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GCSafePointV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCSafePointV2.Merge(dst, src) } func (m *GCSafePointV2) XXX_Size() int { return m.Size() @@ -6510,8 +6500,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -6522,7 +6512,7 @@ func (m *GetAllGCSafePointV2Response) Reset() { *m = GetAllGCSafePointV2 func (m *GetAllGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*GetAllGCSafePointV2Response) ProtoMessage() {} func (*GetAllGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{95} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{95} } func (m *GetAllGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6532,15 +6522,15 @@ func (m *GetAllGCSafePointV2Response) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_GetAllGCSafePointV2Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetAllGCSafePointV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAllGCSafePointV2Response.Merge(dst, src) } func (m *GetAllGCSafePointV2Response) XXX_Size() int { return m.Size() @@ -6588,7 +6578,7 @@ func (m *RegionStat) Reset() { *m = RegionStat{} } func (m *RegionStat) String() string { return proto.CompactTextString(m) } func (*RegionStat) ProtoMessage() {} func (*RegionStat) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{96} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{96} } func (m *RegionStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6598,15 +6588,15 @@ func (m *RegionStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RegionStat.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionStat) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionStat.Merge(dst, src) } func (m *RegionStat) XXX_Size() int { return m.Size() @@ -6646,8 +6636,8 @@ 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"` @@ -6660,7 +6650,7 @@ func (m *SyncRegionRequest) Reset() { *m = SyncRegionRequest{} } func (m *SyncRegionRequest) String() string { return proto.CompactTextString(m) } func (*SyncRegionRequest) ProtoMessage() {} func (*SyncRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{97} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{97} } func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6670,15 +6660,15 @@ func (m *SyncRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_SyncRegionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SyncRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncRegionRequest.Merge(dst, src) } func (m *SyncRegionRequest) XXX_Size() int { return m.Size() @@ -6711,7 +6701,7 @@ func (m *SyncRegionRequest) GetStartIndex() uint64 { } type PeersStats struct { - Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` + Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -6721,7 +6711,7 @@ func (m *PeersStats) Reset() { *m = PeersStats{} } func (m *PeersStats) String() string { return proto.CompactTextString(m) } func (*PeersStats) ProtoMessage() {} func (*PeersStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{98} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{98} } func (m *PeersStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6731,15 +6721,15 @@ func (m *PeersStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PeersStats.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PeersStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeersStats.Merge(dst, src) } func (m *PeersStats) XXX_Size() int { return m.Size() @@ -6758,7 +6748,7 @@ func (m *PeersStats) GetPeers() []*PeerStats { } type Peers struct { - Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -6768,7 +6758,7 @@ func (m *Peers) Reset() { *m = Peers{} } func (m *Peers) String() string { return proto.CompactTextString(m) } func (*Peers) ProtoMessage() {} func (*Peers) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{99} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{99} } func (m *Peers) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6778,15 +6768,15 @@ func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Peers.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Peers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Peers.Merge(dst, src) } func (m *Peers) XXX_Size() int { return m.Size() @@ -6805,17 +6795,17 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -6825,7 +6815,7 @@ func (m *SyncRegionResponse) Reset() { *m = SyncRegionResponse{} } func (m *SyncRegionResponse) String() string { return proto.CompactTextString(m) } func (*SyncRegionResponse) ProtoMessage() {} func (*SyncRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{100} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{100} } func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6835,15 +6825,15 @@ func (m *SyncRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_SyncRegionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SyncRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncRegionResponse.Merge(dst, src) } func (m *SyncRegionResponse) XXX_Size() int { return m.Size() @@ -6911,7 +6901,7 @@ func (m *SyncRegionResponse) GetPendingPeers() []*Peers { } type GetOperatorRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -6922,7 +6912,7 @@ func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } func (*GetOperatorRequest) ProtoMessage() {} func (*GetOperatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{101} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{101} } func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6932,15 +6922,15 @@ func (m *GetOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetOperatorRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetOperatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorRequest.Merge(dst, src) } func (m *GetOperatorRequest) XXX_Size() int { return m.Size() @@ -6966,7 +6956,7 @@ func (m *GetOperatorRequest) GetRegionId() uint64 { } type GetOperatorResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` @@ -6980,7 +6970,7 @@ func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } func (*GetOperatorResponse) ProtoMessage() {} func (*GetOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{102} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{102} } func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6990,15 +6980,15 @@ func (m *GetOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetOperatorResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorResponse.Merge(dst, src) } func (m *GetOperatorResponse) XXX_Size() int { return m.Size() @@ -7045,8 +7035,8 @@ 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:"-"` @@ -7058,7 +7048,7 @@ func (m *SyncMaxTSRequest) Reset() { *m = SyncMaxTSRequest{} } func (m *SyncMaxTSRequest) String() string { return proto.CompactTextString(m) } func (*SyncMaxTSRequest) ProtoMessage() {} func (*SyncMaxTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{103} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{103} } func (m *SyncMaxTSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7068,15 +7058,15 @@ func (m *SyncMaxTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_SyncMaxTSRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SyncMaxTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncMaxTSRequest.Merge(dst, src) } func (m *SyncMaxTSRequest) XXX_Size() int { return m.Size() @@ -7109,9 +7099,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7121,7 +7111,7 @@ func (m *SyncMaxTSResponse) Reset() { *m = SyncMaxTSResponse{} } func (m *SyncMaxTSResponse) String() string { return proto.CompactTextString(m) } func (*SyncMaxTSResponse) ProtoMessage() {} func (*SyncMaxTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{104} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{104} } func (m *SyncMaxTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7131,15 +7121,15 @@ func (m *SyncMaxTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_SyncMaxTSResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SyncMaxTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncMaxTSResponse.Merge(dst, src) } func (m *SyncMaxTSResponse) XXX_Size() int { return m.Size() @@ -7172,8 +7162,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -7184,7 +7174,7 @@ func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitRegionsRequest) ProtoMessage() {} func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{105} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{105} } func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7194,15 +7184,15 @@ func (m *SplitRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_SplitRegionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsRequest.Merge(dst, src) } func (m *SplitRegionsRequest) XXX_Size() int { return m.Size() @@ -7235,9 +7225,9 @@ func (m *SplitRegionsRequest) GetRetryLimit() uint64 { } type SplitRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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,proto3" json:"regions_id,omitempty"` + RegionsId []uint64 `protobuf:"varint,3,rep,packed,name=regions_id,json=regionsId" json:"regions_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7247,7 +7237,7 @@ func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitRegionsResponse) ProtoMessage() {} func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{106} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{106} } func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7257,15 +7247,15 @@ func (m *SplitRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_SplitRegionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsResponse.Merge(dst, src) } func (m *SplitRegionsResponse) XXX_Size() int { return m.Size() @@ -7298,8 +7288,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -7311,7 +7301,7 @@ func (m *SplitAndScatterRegionsRequest) Reset() { *m = SplitAndScatterRe func (m *SplitAndScatterRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsRequest) ProtoMessage() {} func (*SplitAndScatterRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{107} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{107} } func (m *SplitAndScatterRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7321,15 +7311,15 @@ func (m *SplitAndScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_SplitAndScatterRegionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitAndScatterRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitAndScatterRegionsRequest.Merge(dst, src) } func (m *SplitAndScatterRegionsRequest) XXX_Size() int { return m.Size() @@ -7369,10 +7359,10 @@ 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"` + RegionsId []uint64 `protobuf:"varint,4,rep,packed,name=regions_id,json=regionsId" json:"regions_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7382,7 +7372,7 @@ func (m *SplitAndScatterRegionsResponse) Reset() { *m = SplitAndScatterR func (m *SplitAndScatterRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsResponse) ProtoMessage() {} func (*SplitAndScatterRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{108} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{108} } func (m *SplitAndScatterRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7392,15 +7382,15 @@ func (m *SplitAndScatterRegionsResponse) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_SplitAndScatterRegionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitAndScatterRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitAndScatterRegionsResponse.Merge(dst, src) } func (m *SplitAndScatterRegionsResponse) XXX_Size() int { return m.Size() @@ -7440,7 +7430,7 @@ func (m *SplitAndScatterRegionsResponse) GetRegionsId() []uint64 { } type GetDCLocationInfoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -7451,7 +7441,7 @@ func (m *GetDCLocationInfoRequest) Reset() { *m = GetDCLocationInfoReque func (m *GetDCLocationInfoRequest) String() string { return proto.CompactTextString(m) } func (*GetDCLocationInfoRequest) ProtoMessage() {} func (*GetDCLocationInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{109} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{109} } func (m *GetDCLocationInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7461,15 +7451,15 @@ func (m *GetDCLocationInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_GetDCLocationInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetDCLocationInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDCLocationInfoRequest.Merge(dst, src) } func (m *GetDCLocationInfoRequest) XXX_Size() int { return m.Size() @@ -7495,12 +7485,12 @@ 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"` + MaxTs *Timestamp `protobuf:"bytes,3,opt,name=max_ts,json=maxTs" json:"max_ts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7510,7 +7500,7 @@ func (m *GetDCLocationInfoResponse) Reset() { *m = GetDCLocationInfoResp func (m *GetDCLocationInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetDCLocationInfoResponse) ProtoMessage() {} func (*GetDCLocationInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{110} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{110} } func (m *GetDCLocationInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7520,15 +7510,15 @@ func (m *GetDCLocationInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_GetDCLocationInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetDCLocationInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDCLocationInfoResponse.Merge(dst, src) } func (m *GetDCLocationInfoResponse) XXX_Size() int { return m.Size() @@ -7581,7 +7571,7 @@ func (m *QueryStats) Reset() { *m = QueryStats{} } func (m *QueryStats) String() string { return proto.CompactTextString(m) } func (*QueryStats) ProtoMessage() {} func (*QueryStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{111} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{111} } func (m *QueryStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7591,15 +7581,15 @@ func (m *QueryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_QueryStats.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *QueryStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStats.Merge(dst, src) } func (m *QueryStats) XXX_Size() int { return m.Size() @@ -7688,9 +7678,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7700,7 +7690,7 @@ func (m *ReportBucketsRequest) Reset() { *m = ReportBucketsRequest{} } func (m *ReportBucketsRequest) String() string { return proto.CompactTextString(m) } func (*ReportBucketsRequest) ProtoMessage() {} func (*ReportBucketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{112} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{112} } func (m *ReportBucketsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7710,15 +7700,15 @@ func (m *ReportBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_ReportBucketsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportBucketsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBucketsRequest.Merge(dst, src) } func (m *ReportBucketsRequest) XXX_Size() int { return m.Size() @@ -7751,7 +7741,7 @@ func (m *ReportBucketsRequest) GetBuckets() *metapb.Buckets { } type ReportBucketsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7761,7 +7751,7 @@ func (m *ReportBucketsResponse) Reset() { *m = ReportBucketsResponse{} } func (m *ReportBucketsResponse) String() string { return proto.CompactTextString(m) } func (*ReportBucketsResponse) ProtoMessage() {} func (*ReportBucketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{113} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{113} } func (m *ReportBucketsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7771,15 +7761,15 @@ func (m *ReportBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ReportBucketsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportBucketsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBucketsResponse.Merge(dst, src) } func (m *ReportBucketsResponse) XXX_Size() int { return m.Size() @@ -7798,9 +7788,9 @@ func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { } type ReportMinResolvedTsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` + MinWatermark uint64 `protobuf:"varint,3,opt,name=min_watermark,json=minWatermark,proto3" json:"min_watermark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7810,7 +7800,7 @@ func (m *ReportMinResolvedTsRequest) Reset() { *m = ReportMinResolvedTsR func (m *ReportMinResolvedTsRequest) String() string { return proto.CompactTextString(m) } func (*ReportMinResolvedTsRequest) ProtoMessage() {} func (*ReportMinResolvedTsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{114} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{114} } func (m *ReportMinResolvedTsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7820,15 +7810,15 @@ func (m *ReportMinResolvedTsRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_ReportMinResolvedTsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *ReportMinResolvedTsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportMinResolvedTsRequest.Merge(m, src) +func (dst *ReportMinResolvedTsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMinResolvedTsRequest.Merge(dst, src) } func (m *ReportMinResolvedTsRequest) XXX_Size() int { return m.Size() @@ -7853,15 +7843,15 @@ func (m *ReportMinResolvedTsRequest) GetStoreId() uint64 { return 0 } -func (m *ReportMinResolvedTsRequest) GetMinResolvedTs() uint64 { +func (m *ReportMinResolvedTsRequest) GetMinWatermark() uint64 { if m != nil { - return m.MinResolvedTs + return m.MinWatermark } return 0 } type ReportMinResolvedTsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7871,7 +7861,7 @@ func (m *ReportMinResolvedTsResponse) Reset() { *m = ReportMinResolvedTs func (m *ReportMinResolvedTsResponse) String() string { return proto.CompactTextString(m) } func (*ReportMinResolvedTsResponse) ProtoMessage() {} func (*ReportMinResolvedTsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{115} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{115} } func (m *ReportMinResolvedTsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7881,15 +7871,15 @@ func (m *ReportMinResolvedTsResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_ReportMinResolvedTsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReportMinResolvedTsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMinResolvedTsResponse.Merge(dst, src) } func (m *ReportMinResolvedTsResponse) XXX_Size() int { return m.Size() @@ -7907,8 +7897,118 @@ func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { return nil } +type ReportMinWatermarkRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + MinWatermark uint64 `protobuf:"varint,3,opt,name=min_watermark,json=minWatermark,proto3" json:"min_watermark,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportMinWatermarkRequest) Reset() { *m = ReportMinWatermarkRequest{} } +func (m *ReportMinWatermarkRequest) String() string { return proto.CompactTextString(m) } +func (*ReportMinWatermarkRequest) ProtoMessage() {} +func (*ReportMinWatermarkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_pdpb_8ce345f0744a630b, []int{116} +} +func (m *ReportMinWatermarkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportMinWatermarkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportMinWatermarkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (dst *ReportMinWatermarkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMinWatermarkRequest.Merge(dst, src) +} +func (m *ReportMinWatermarkRequest) XXX_Size() int { + return m.Size() +} +func (m *ReportMinWatermarkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportMinWatermarkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ReportMinWatermarkRequest proto.InternalMessageInfo + +func (m *ReportMinWatermarkRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil +} + +func (m *ReportMinWatermarkRequest) GetStoreId() uint64 { + if m != nil { + return m.StoreId + } + return 0 +} + +func (m *ReportMinWatermarkRequest) GetMinWatermark() uint64 { + if m != nil { + return m.MinWatermark + } + return 0 +} + +type ReportMinWatermarkResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReportMinWatermarkResponse) Reset() { *m = ReportMinWatermarkResponse{} } +func (m *ReportMinWatermarkResponse) String() string { return proto.CompactTextString(m) } +func (*ReportMinWatermarkResponse) ProtoMessage() {} +func (*ReportMinWatermarkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_pdpb_8ce345f0744a630b, []int{117} +} +func (m *ReportMinWatermarkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportMinWatermarkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportMinWatermarkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (dst *ReportMinWatermarkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMinWatermarkResponse.Merge(dst, src) +} +func (m *ReportMinWatermarkResponse) XXX_Size() int { + return m.Size() +} +func (m *ReportMinWatermarkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReportMinWatermarkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ReportMinWatermarkResponse proto.InternalMessageInfo + +func (m *ReportMinWatermarkResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + type SetExternalTimestampRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -7919,7 +8019,7 @@ func (m *SetExternalTimestampRequest) Reset() { *m = SetExternalTimestam func (m *SetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } func (*SetExternalTimestampRequest) ProtoMessage() {} func (*SetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{116} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{118} } func (m *SetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7929,15 +8029,15 @@ func (m *SetExternalTimestampRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_SetExternalTimestampRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SetExternalTimestampRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetExternalTimestampRequest.Merge(dst, src) } func (m *SetExternalTimestampRequest) XXX_Size() int { return m.Size() @@ -7963,7 +8063,7 @@ func (m *SetExternalTimestampRequest) GetTimestamp() uint64 { } type SetExternalTimestampResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -7973,7 +8073,7 @@ func (m *SetExternalTimestampResponse) Reset() { *m = SetExternalTimesta func (m *SetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } func (*SetExternalTimestampResponse) ProtoMessage() {} func (*SetExternalTimestampResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{117} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{119} } func (m *SetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7983,15 +8083,15 @@ func (m *SetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_SetExternalTimestampResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SetExternalTimestampResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetExternalTimestampResponse.Merge(dst, src) } func (m *SetExternalTimestampResponse) XXX_Size() int { return m.Size() @@ -8010,7 +8110,7 @@ func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { } type GetExternalTimestampRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -8020,7 +8120,7 @@ func (m *GetExternalTimestampRequest) Reset() { *m = GetExternalTimestam func (m *GetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } func (*GetExternalTimestampRequest) ProtoMessage() {} func (*GetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{118} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{120} } func (m *GetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8030,15 +8130,15 @@ func (m *GetExternalTimestampRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_GetExternalTimestampRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetExternalTimestampRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetExternalTimestampRequest.Merge(dst, src) } func (m *GetExternalTimestampRequest) XXX_Size() int { return m.Size() @@ -8057,7 +8157,7 @@ func (m *GetExternalTimestampRequest) GetHeader() *RequestHeader { } type GetExternalTimestampResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -8068,7 +8168,7 @@ func (m *GetExternalTimestampResponse) Reset() { *m = GetExternalTimesta func (m *GetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } func (*GetExternalTimestampResponse) ProtoMessage() {} func (*GetExternalTimestampResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{119} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{121} } func (m *GetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8078,15 +8178,15 @@ func (m *GetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_GetExternalTimestampResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetExternalTimestampResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetExternalTimestampResponse.Merge(dst, src) } func (m *GetExternalTimestampResponse) XXX_Size() int { return m.Size() @@ -8112,7 +8212,7 @@ func (m *GetExternalTimestampResponse) GetTimestamp() uint64 { } type GetMinTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -8122,7 +8222,7 @@ func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } func (*GetMinTSRequest) ProtoMessage() {} func (*GetMinTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{120} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{122} } func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8132,15 +8232,15 @@ func (m *GetMinTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_GetMinTSRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMinTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSRequest.Merge(dst, src) } func (m *GetMinTSRequest) XXX_Size() int { return m.Size() @@ -8159,8 +8259,8 @@ 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"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Timestamp *Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -8170,7 +8270,7 @@ func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } func (*GetMinTSResponse) ProtoMessage() {} func (*GetMinTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{121} + return fileDescriptor_pdpb_8ce345f0744a630b, []int{123} } func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8180,15 +8280,15 @@ func (m *GetMinTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_GetMinTSResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMinTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSResponse.Merge(dst, src) } func (m *GetMinTSResponse) XXX_Size() int { return m.Size() @@ -8214,13 +8314,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") @@ -8338,404 +8431,21 @@ func init() { proto.RegisterType((*ReportBucketsResponse)(nil), "pdpb.ReportBucketsResponse") proto.RegisterType((*ReportMinResolvedTsRequest)(nil), "pdpb.ReportMinResolvedTsRequest") proto.RegisterType((*ReportMinResolvedTsResponse)(nil), "pdpb.ReportMinResolvedTsResponse") + proto.RegisterType((*ReportMinWatermarkRequest)(nil), "pdpb.ReportMinWatermarkRequest") + proto.RegisterType((*ReportMinWatermarkResponse)(nil), "pdpb.ReportMinWatermarkResponse") proto.RegisterType((*SetExternalTimestampRequest)(nil), "pdpb.SetExternalTimestampRequest") proto.RegisterType((*SetExternalTimestampResponse)(nil), "pdpb.SetExternalTimestampResponse") proto.RegisterType((*GetExternalTimestampRequest)(nil), "pdpb.GetExternalTimestampRequest") proto.RegisterType((*GetExternalTimestampResponse)(nil), "pdpb.GetExternalTimestampResponse") proto.RegisterType((*GetMinTSRequest)(nil), "pdpb.GetMinTSRequest") proto.RegisterType((*GetMinTSResponse)(nil), "pdpb.GetMinTSResponse") -} - -func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_78b27e6f04f44c6e) } - -var fileDescriptor_78b27e6f04f44c6e = []byte{ - // 6173 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x7c, 0x4b, 0x93, 0xdb, 0x48, - 0x72, 0x70, 0x83, 0x8f, 0xee, 0x66, 0xf2, 0xd1, 0xec, 0x52, 0x4b, 0x4d, 0x51, 0xd2, 0x48, 0x03, - 0x69, 0xf4, 0x69, 0xb4, 0x33, 0x9a, 0x19, 0xcd, 0xec, 0x7e, 0xb3, 0xf3, 0x7d, 0x3b, 0x61, 0x76, - 0x93, 0xea, 0xe1, 0xa8, 0x1f, 0x34, 0xc8, 0xd6, 0xec, 0xd8, 0x1b, 0x46, 0xa0, 0x81, 0xea, 0x6e, - 0x6c, 0x93, 0x00, 0x07, 0x00, 0x5b, 0xe2, 0x86, 0x0f, 0xb6, 0x77, 0xfd, 0xd8, 0xf0, 0x6e, 0xd8, - 0x11, 0x7e, 0xad, 0x2f, 0x7b, 0xb0, 0x1d, 0xb6, 0x0f, 0xf6, 0xc5, 0x07, 0x87, 0x7d, 0xf2, 0xcd, - 0xe1, 0xa3, 0x8f, 0x3e, 0x39, 0x36, 0xd6, 0x27, 0xff, 0x01, 0x5f, 0xec, 0x83, 0xa3, 0xb2, 0xaa, - 0x40, 0x00, 0x04, 0xd9, 0x12, 0x35, 0xda, 0xd8, 0x13, 0x89, 0xcc, 0x44, 0x56, 0x56, 0x56, 0x56, - 0x56, 0x66, 0x56, 0x15, 0x00, 0x86, 0xd6, 0xf0, 0xe8, 0xc1, 0xd0, 0x73, 0x03, 0x97, 0xe4, 0xd8, - 0xff, 0x7a, 0x69, 0x40, 0x03, 0x43, 0xc2, 0xea, 0x65, 0xea, 0x19, 0xc7, 0x41, 0xf8, 0x78, 0x89, - 0x3d, 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, 0x9c, 0x66, 0x8f, 0x91, 0x90, 0xbb, 0xb0, 0xc2, - 0x7b, 0x29, 0x3b, 0x16, 0x97, 0x52, 0x22, 0x19, 0x1d, 0x7f, 0x6d, 0xd2, 0x1b, 0x21, 0x09, 0xf2, - 0x94, 0x48, 0xf5, 0x11, 0x6c, 0xee, 0xd0, 0x60, 0x9b, 0x67, 0x02, 0xf1, 0x84, 0xee, 0x85, 0x96, - 0x71, 0x1f, 0x6a, 0xd3, 0x7c, 0x16, 0x52, 0xca, 0x9b, 0xb0, 0x22, 0x12, 0x13, 0x31, 0xc8, 0xe1, - 0xec, 0x12, 0xdc, 0x35, 0x89, 0x57, 0xbf, 0x80, 0xcd, 0xce, 0xe8, 0xe5, 0x85, 0x7f, 0x91, 0x26, - 0x3f, 0x81, 0xda, 0x74, 0x93, 0x8b, 0xf4, 0x53, 0xfd, 0x8b, 0x0c, 0x2c, 0xef, 0xd1, 0xc1, 0x11, - 0xf5, 0x52, 0x13, 0xd1, 0x6b, 0x50, 0x18, 0x20, 0x36, 0x32, 0xdb, 0x39, 0x80, 0x67, 0x7f, 0xcc, - 0x52, 0xf5, 0x91, 0xd7, 0xe7, 0x76, 0x50, 0xd0, 0x56, 0x19, 0xe0, 0xd0, 0xeb, 0xf3, 0x94, 0xbb, - 0x6f, 0x53, 0x27, 0xe0, 0xe8, 0x1c, 0xa2, 0x81, 0x83, 0x90, 0xe0, 0xff, 0xc0, 0x1a, 0x37, 0x13, - 0x7d, 0xe8, 0xd9, 0xae, 0x67, 0x07, 0x63, 0xcc, 0x46, 0xf3, 0x5a, 0x85, 0x83, 0x3b, 0x02, 0x8a, - 0xa9, 0x15, 0x1d, 0xf6, 0xdd, 0x31, 0x4f, 0xde, 0x97, 0x45, 0x6a, 0x85, 0x20, 0xac, 0xb9, 0xbc, - 0x01, 0x95, 0x23, 0xdb, 0x31, 0xbc, 0xb1, 0x7e, 0x4e, 0x3d, 0x4c, 0xbc, 0x57, 0x90, 0xa6, 0xcc, - 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, 0xb5, 0xfa, 0xcb, 0x57, 0x00, 0x00, + proto.RegisterEnum("pdpb.EventType", EventType_name, EventType_value) + proto.RegisterEnum("pdpb.ErrorType", ErrorType_name, ErrorType_value) + proto.RegisterEnum("pdpb.ServiceMode", ServiceMode_name, ServiceMode_value) + proto.RegisterEnum("pdpb.CheckPolicy", CheckPolicy_name, CheckPolicy_value) + proto.RegisterEnum("pdpb.ControlGrpcEvent", ControlGrpcEvent_name, ControlGrpcEvent_value) + proto.RegisterEnum("pdpb.OperatorStatus", OperatorStatus_name, OperatorStatus_value) + proto.RegisterEnum("pdpb.QueryKind", QueryKind_name, QueryKind_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -8746,9 +8456,8 @@ var _ grpc.ClientConn // 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. @@ -8795,7 +8504,9 @@ type PDClient interface { LoadGlobalConfig(ctx context.Context, in *LoadGlobalConfigRequest, opts ...grpc.CallOption) (*LoadGlobalConfigResponse, error) WatchGlobalConfig(ctx context.Context, in *WatchGlobalConfigRequest, opts ...grpc.CallOption) (PD_WatchGlobalConfigClient, error) ReportBuckets(ctx context.Context, opts ...grpc.CallOption) (PD_ReportBucketsClient, error) + // Will be replaced by ReportMinWatermark. ReportMinResolvedTS(ctx context.Context, in *ReportMinResolvedTsRequest, opts ...grpc.CallOption) (*ReportMinResolvedTsResponse, error) + ReportMinWatermark(ctx context.Context, in *ReportMinWatermarkRequest, opts ...grpc.CallOption) (*ReportMinWatermarkResponse, error) SetExternalTimestamp(ctx context.Context, in *SetExternalTimestampRequest, opts ...grpc.CallOption) (*SetExternalTimestampResponse, error) GetExternalTimestamp(ctx context.Context, in *GetExternalTimestampRequest, opts ...grpc.CallOption) (*GetExternalTimestampResponse, error) // Get the minimum timestamp across all keyspace groups from API server @@ -9329,6 +9040,15 @@ func (c *pDClient) ReportMinResolvedTS(ctx context.Context, in *ReportMinResolve return out, nil } +func (c *pDClient) ReportMinWatermark(ctx context.Context, in *ReportMinWatermarkRequest, opts ...grpc.CallOption) (*ReportMinWatermarkResponse, error) { + out := new(ReportMinWatermarkResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/ReportMinWatermark", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *pDClient) SetExternalTimestamp(ctx context.Context, in *SetExternalTimestampRequest, opts ...grpc.CallOption) (*SetExternalTimestampResponse, error) { out := new(SetExternalTimestampResponse) err := c.cc.Invoke(ctx, "/pdpb.PD/SetExternalTimestamp", in, out, opts...) @@ -9356,7 +9076,8 @@ func (c *pDClient) GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...gr 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. @@ -9403,7 +9124,9 @@ type PDServer interface { LoadGlobalConfig(context.Context, *LoadGlobalConfigRequest) (*LoadGlobalConfigResponse, error) WatchGlobalConfig(*WatchGlobalConfigRequest, PD_WatchGlobalConfigServer) error ReportBuckets(PD_ReportBucketsServer) error + // Will be replaced by ReportMinWatermark. ReportMinResolvedTS(context.Context, *ReportMinResolvedTsRequest) (*ReportMinResolvedTsResponse, error) + ReportMinWatermark(context.Context, *ReportMinWatermarkRequest) (*ReportMinWatermarkResponse, error) SetExternalTimestamp(context.Context, *SetExternalTimestampRequest) (*SetExternalTimestampResponse, error) GetExternalTimestamp(context.Context, *GetExternalTimestampRequest) (*GetExternalTimestampResponse, error) // Get the minimum timestamp across all keyspace groups from API server @@ -9412,146 +9135,6 @@ type PDServer interface { GetMinTS(context.Context, *GetMinTSRequest) (*GetMinTSResponse, error) } -// UnimplementedPDServer can be embedded to have forward compatible implementations. -type UnimplementedPDServer struct { -} - -func (*UnimplementedPDServer) GetClusterInfo(ctx context.Context, req *GetClusterInfoRequest) (*GetClusterInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterInfo not implemented") -} -func (*UnimplementedPDServer) GetMembers(ctx context.Context, req *GetMembersRequest) (*GetMembersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMembers not implemented") -} -func (*UnimplementedPDServer) Tso(srv PD_TsoServer) error { - return status.Errorf(codes.Unimplemented, "method Tso not implemented") -} -func (*UnimplementedPDServer) Bootstrap(ctx context.Context, req *BootstrapRequest) (*BootstrapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Bootstrap not implemented") -} -func (*UnimplementedPDServer) IsBootstrapped(ctx context.Context, req *IsBootstrappedRequest) (*IsBootstrappedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsBootstrapped not implemented") -} -func (*UnimplementedPDServer) AllocID(ctx context.Context, req *AllocIDRequest) (*AllocIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllocID not implemented") -} -func (*UnimplementedPDServer) IsSnapshotRecovering(ctx context.Context, req *IsSnapshotRecoveringRequest) (*IsSnapshotRecoveringResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsSnapshotRecovering not implemented") -} -func (*UnimplementedPDServer) GetStore(ctx context.Context, req *GetStoreRequest) (*GetStoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStore not implemented") -} -func (*UnimplementedPDServer) PutStore(ctx context.Context, req *PutStoreRequest) (*PutStoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PutStore not implemented") -} -func (*UnimplementedPDServer) GetAllStores(ctx context.Context, req *GetAllStoresRequest) (*GetAllStoresResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllStores not implemented") -} -func (*UnimplementedPDServer) StoreHeartbeat(ctx context.Context, req *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StoreHeartbeat not implemented") -} -func (*UnimplementedPDServer) RegionHeartbeat(srv PD_RegionHeartbeatServer) error { - return status.Errorf(codes.Unimplemented, "method RegionHeartbeat not implemented") -} -func (*UnimplementedPDServer) GetRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegion not implemented") -} -func (*UnimplementedPDServer) GetPrevRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPrevRegion not implemented") -} -func (*UnimplementedPDServer) GetRegionByID(ctx context.Context, req *GetRegionByIDRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegionByID not implemented") -} -func (*UnimplementedPDServer) ScanRegions(ctx context.Context, req *ScanRegionsRequest) (*ScanRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScanRegions not implemented") -} -func (*UnimplementedPDServer) AskSplit(ctx context.Context, req *AskSplitRequest) (*AskSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AskSplit not implemented") -} -func (*UnimplementedPDServer) ReportSplit(ctx context.Context, req *ReportSplitRequest) (*ReportSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportSplit not implemented") -} -func (*UnimplementedPDServer) AskBatchSplit(ctx context.Context, req *AskBatchSplitRequest) (*AskBatchSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AskBatchSplit not implemented") -} -func (*UnimplementedPDServer) ReportBatchSplit(ctx context.Context, req *ReportBatchSplitRequest) (*ReportBatchSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportBatchSplit not implemented") -} -func (*UnimplementedPDServer) GetClusterConfig(ctx context.Context, req *GetClusterConfigRequest) (*GetClusterConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterConfig not implemented") -} -func (*UnimplementedPDServer) PutClusterConfig(ctx context.Context, req *PutClusterConfigRequest) (*PutClusterConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PutClusterConfig not implemented") -} -func (*UnimplementedPDServer) ScatterRegion(ctx context.Context, req *ScatterRegionRequest) (*ScatterRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScatterRegion not implemented") -} -func (*UnimplementedPDServer) GetGCSafePoint(ctx context.Context, req *GetGCSafePointRequest) (*GetGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePoint not implemented") -} -func (*UnimplementedPDServer) UpdateGCSafePoint(ctx context.Context, req *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePoint not implemented") -} -func (*UnimplementedPDServer) UpdateServiceGCSafePoint(ctx context.Context, req *UpdateServiceGCSafePointRequest) (*UpdateServiceGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceGCSafePoint not implemented") -} -func (*UnimplementedPDServer) GetGCSafePointV2(ctx context.Context, req *GetGCSafePointV2Request) (*GetGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) WatchGCSafePointV2(req *WatchGCSafePointV2Request, srv PD_WatchGCSafePointV2Server) error { - return status.Errorf(codes.Unimplemented, "method WatchGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) UpdateGCSafePointV2(ctx context.Context, req *UpdateGCSafePointV2Request) (*UpdateGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) UpdateServiceSafePointV2(ctx context.Context, req *UpdateServiceSafePointV2Request) (*UpdateServiceSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceSafePointV2 not implemented") -} -func (*UnimplementedPDServer) GetAllGCSafePointV2(ctx context.Context, req *GetAllGCSafePointV2Request) (*GetAllGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) SyncRegions(srv PD_SyncRegionsServer) error { - return status.Errorf(codes.Unimplemented, "method SyncRegions not implemented") -} -func (*UnimplementedPDServer) GetOperator(ctx context.Context, req *GetOperatorRequest) (*GetOperatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOperator not implemented") -} -func (*UnimplementedPDServer) SyncMaxTS(ctx context.Context, req *SyncMaxTSRequest) (*SyncMaxTSResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SyncMaxTS not implemented") -} -func (*UnimplementedPDServer) SplitRegions(ctx context.Context, req *SplitRegionsRequest) (*SplitRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SplitRegions not implemented") -} -func (*UnimplementedPDServer) SplitAndScatterRegions(ctx context.Context, req *SplitAndScatterRegionsRequest) (*SplitAndScatterRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SplitAndScatterRegions not implemented") -} -func (*UnimplementedPDServer) GetDCLocationInfo(ctx context.Context, req *GetDCLocationInfoRequest) (*GetDCLocationInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDCLocationInfo not implemented") -} -func (*UnimplementedPDServer) StoreGlobalConfig(ctx context.Context, req *StoreGlobalConfigRequest) (*StoreGlobalConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StoreGlobalConfig not implemented") -} -func (*UnimplementedPDServer) LoadGlobalConfig(ctx context.Context, req *LoadGlobalConfigRequest) (*LoadGlobalConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadGlobalConfig not implemented") -} -func (*UnimplementedPDServer) WatchGlobalConfig(req *WatchGlobalConfigRequest, srv PD_WatchGlobalConfigServer) error { - return status.Errorf(codes.Unimplemented, "method WatchGlobalConfig not implemented") -} -func (*UnimplementedPDServer) ReportBuckets(srv PD_ReportBucketsServer) error { - return status.Errorf(codes.Unimplemented, "method ReportBuckets not implemented") -} -func (*UnimplementedPDServer) ReportMinResolvedTS(ctx context.Context, req *ReportMinResolvedTsRequest) (*ReportMinResolvedTsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportMinResolvedTS not implemented") -} -func (*UnimplementedPDServer) SetExternalTimestamp(ctx context.Context, req *SetExternalTimestampRequest) (*SetExternalTimestampResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetExternalTimestamp not implemented") -} -func (*UnimplementedPDServer) GetExternalTimestamp(ctx context.Context, req *GetExternalTimestampRequest) (*GetExternalTimestampResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExternalTimestamp not implemented") -} -func (*UnimplementedPDServer) GetMinTS(ctx context.Context, req *GetMinTSRequest) (*GetMinTSResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMinTS not implemented") -} - func RegisterPDServer(s *grpc.Server, srv PDServer) { s.RegisterService(&_PD_serviceDesc, srv) } @@ -10350,6 +9933,24 @@ func _PD_ReportMinResolvedTS_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } +func _PD_ReportMinWatermark_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReportMinWatermarkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).ReportMinWatermark(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/ReportMinWatermark", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).ReportMinWatermark(ctx, req.(*ReportMinWatermarkRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _PD_SetExternalTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetExternalTimestampRequest) if err := dec(in); err != nil { @@ -10552,6 +10153,10 @@ var _PD_serviceDesc = grpc.ServiceDesc{ MethodName: "ReportMinResolvedTS", Handler: _PD_ReportMinResolvedTS_Handler, }, + { + MethodName: "ReportMinWatermark", + Handler: _PD_ReportMinWatermark_Handler, + }, { MethodName: "SetExternalTimestamp", Handler: _PD_SetExternalTimestamp_Handler, @@ -10606,7 +10211,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 } @@ -10614,38 +10219,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -10653,57 +10251,47 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -10711,47 +10299,38 @@ 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.Changes) > 0 { + for _, msg := range m.Changes { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if len(m.ConfigPath) > 0 { - i -= len(m.ConfigPath) - copy(dAtA[i:], m.ConfigPath) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) + i += copy(dAtA[i:], m.ConfigPath) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 } @@ -10759,38 +10338,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -10798,42 +10369,41 @@ 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.Names) > 0 { + for _, s := range m.Names { + dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } if len(m.ConfigPath) > 0 { - i -= len(m.ConfigPath) - copy(dAtA[i:], m.ConfigPath) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) + i += copy(dAtA[i:], m.ConfigPath) } - if len(m.Names) > 0 { - for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Names[iNdEx]) - copy(dAtA[i:], m.Names[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Names[iNdEx]))) - i-- - dAtA[i] = 0xa - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 } @@ -10841,45 +10411,37 @@ 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 len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 } @@ -10887,64 +10449,53 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -10952,36 +10503,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -10989,43 +10534,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11033,38 +10570,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11072,50 +10602,41 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -11123,41 +10644,35 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11165,55 +10680,45 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -11221,62 +10726,50 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -11284,50 +10777,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11335,38 +10818,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11374,48 +10849,40 @@ 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 + i++ } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11423,38 +10890,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11462,43 +10921,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11506,38 +10957,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11545,48 +10988,40 @@ 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 + i++ } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11594,43 +11029,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11638,62 +11065,50 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11701,50 +11116,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -11752,50 +11157,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11803,48 +11198,40 @@ 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 + i++ } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11852,52 +11239,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -11905,55 +11282,46 @@ 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 + i++ } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -11961,102 +11329,84 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12064,53 +11414,45 @@ 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 + i++ } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12118,57 +11460,47 @@ 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 len(m.EndKey) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12176,78 +11508,64 @@ func (m *Region) Marshal() (dAtA []byte, err error) { } func (m *Region) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Region != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n36, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 } - if len(m.PendingPeers) > 0 { - for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.Leader != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n37, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n37 } if len(m.DownPeers) > 0 { - for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.DownPeers { dAtA[i] = 0x1a - } - } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x12 } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PendingPeers) > 0 { + for _, msg := range m.PendingPeers { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12255,80 +11573,66 @@ func (m *ScanRegionsResponse) Marshal() (dAtA []byte, err error) { } func (m *ScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n38, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 } - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.RegionMetas) > 0 { + for _, msg := range m.RegionMetas { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } if len(m.Leaders) > 0 { - for iNdEx := len(m.Leaders) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Leaders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Leaders { dAtA[i] = 0x1a - } - } - if len(m.RegionMetas) > 0 { - for iNdEx := len(m.RegionMetas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RegionMetas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Regions) > 0 { + for _, msg := range m.Regions { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12336,38 +11640,30 @@ func (m *GetClusterConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *GetClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n39, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12375,50 +11671,40 @@ func (m *GetClusterConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *GetClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n40, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 } if m.Cluster != nil { - { - size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Cluster.Size())) + n41, err := m.Cluster.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n41 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12426,50 +11712,40 @@ func (m *PutClusterConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *PutClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n42, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 } if m.Cluster != nil { - { - size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Cluster.Size())) + n43, err := m.Cluster.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n43 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12477,38 +11753,30 @@ func (m *PutClusterConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *PutClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PutClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n44, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n44 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12516,89 +11784,90 @@ 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.GitHash) > 0 { - i -= len(m.GitHash) - copy(dAtA[i:], m.GitHash) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) - i-- - dAtA[i] = 0x42 + if len(m.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - 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 m.MemberId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MemberId)) } - if len(m.DeployPath) > 0 { - i -= len(m.DeployPath) - copy(dAtA[i:], m.DeployPath) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DeployPath))) - i-- - dAtA[i] = 0x32 - } - if m.LeaderPriority != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.LeaderPriority)) - i-- - dAtA[i] = 0x28 + if len(m.PeerUrls) > 0 { + for _, s := range m.PeerUrls { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } if len(m.ClientUrls) > 0 { - for 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-- + 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 len(m.PeerUrls) > 0 { - for iNdEx := len(m.PeerUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PeerUrls[iNdEx]) - copy(dAtA[i:], m.PeerUrls[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.PeerUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + if m.LeaderPriority != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.LeaderPriority)) } - if m.MemberId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MemberId)) - i-- - dAtA[i] = 0x10 + 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.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.BinaryVersion) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.BinaryVersion))) + i += copy(dAtA[i:], m.BinaryVersion) + } + if len(m.GitHash) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) + i += copy(dAtA[i:], m.GitHash) + } + if len(m.DcLocation) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + i += copy(dAtA[i:], m.DcLocation) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12606,38 +11875,30 @@ func (m *GetMembersRequest) Marshal() (dAtA []byte, err error) { } func (m *GetMembersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n45, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12645,102 +11906,90 @@ func (m *GetMembersResponse) Marshal() (dAtA []byte, err error) { } func (m *GetMembersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.TsoAllocatorLeaders) > 0 { - for k := range m.TsoAllocatorLeaders { - v := m.TsoAllocatorLeaders[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintPdpb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintPdpb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n46, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n46 } - if m.EtcdLeader != nil { - { - size, err := m.EtcdLeader.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Members) > 0 { + for _, msg := range m.Members { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x22 } if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n47, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 } - if len(m.Members) > 0 { - for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if m.EtcdLeader != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.EtcdLeader.Size())) + n48, err := m.EtcdLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 + } + if len(m.TsoAllocatorLeaders) > 0 { + for k, _ := range m.TsoAllocatorLeaders { + dAtA[i] = 0x2a + i++ + v := m.TsoAllocatorLeaders[k] + msgSize := 0 + if v != nil { + msgSize = v.Size() + msgSize += 1 + sovPdpb(uint64(msgSize)) + } + mapSize := 1 + len(k) + sovPdpb(uint64(len(k))) + msgSize + i = encodeVarintPdpb(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + if v != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(v.Size())) + n49, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n49 } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12748,38 +11997,30 @@ func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n50, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 + } + if m.XXX_unrecognized != nil { + i += 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 } @@ -12787,65 +12028,62 @@ func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.TsoUrls) > 0 { - for iNdEx := len(m.TsoUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TsoUrls[iNdEx]) - copy(dAtA[i:], m.TsoUrls[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.TsoUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n51, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n51 } if len(m.ServiceModes) > 0 { - dAtA52 := make([]byte, len(m.ServiceModes)*10) - var j51 int + dAtA53 := make([]byte, len(m.ServiceModes)*10) + var j52 int for _, num := range m.ServiceModes { for num >= 1<<7 { - dAtA52[j51] = uint8(uint64(num)&0x7f | 0x80) + dAtA53[j52] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j51++ + j52++ } - dAtA52[j51] = uint8(num) - j51++ + dAtA53[j52] = uint8(num) + j52++ } - i -= j51 - copy(dAtA[i:], dAtA52[:j51]) - i = encodeVarintPdpb(dAtA, i, uint64(j51)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j52)) + i += copy(dAtA[i:], dAtA53[:j52]) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.TsoUrls) > 0 { + for _, s := range m.TsoUrls { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -12853,43 +12091,35 @@ func (m *PeerStats) Marshal() (dAtA []byte, err error) { } func (m *PeerStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Peer != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) + n54, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 } if m.DownSeconds != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -12897,177 +12127,155 @@ 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())) + n55, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n55 } - 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())) + n56, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 } - 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())) + n57, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n57 } - if m.ReplicationStatus != nil { - { - size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) + if len(m.DownPeers) > 0 { + for _, msg := range m.DownPeers { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x7a - } - if m.Term != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x70 - } - if m.ApproximateKeys != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKeys)) - i-- - dAtA[i] = 0x68 } - if m.Interval != nil { - { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PendingPeers) > 0 { + for _, msg := range m.PendingPeers { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x62 } - if m.ApproximateSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateSize)) - i-- - dAtA[i] = 0x50 + if m.BytesWritten != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) } - if m.KeysRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - i-- - dAtA[i] = 0x48 + if m.BytesRead != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) } if m.KeysWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - i-- dAtA[i] = 0x40 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) } - if m.BytesRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - i-- - dAtA[i] = 0x38 + if m.KeysRead != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x30 + if m.ApproximateSize != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateSize)) } - if len(m.PendingPeers) > 0 { - for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if m.Interval != nil { + dAtA[i] = 0x62 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Interval.Size())) + n58, err := m.Interval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n58 } - if len(m.DownPeers) > 0 { - for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + if m.ApproximateKeys != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKeys)) } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Term != 0 { + dAtA[i] = 0x70 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Term)) } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.ReplicationStatus != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n59, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n59 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.QueryStats != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) + n60, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n60 + } + if m.CpuUsage != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.CpuUsage)) + } + if m.ApproximateKvSize != 0 { + dAtA[i] = 0x90 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKvSize)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13075,43 +12283,35 @@ func (m *ChangePeer) Marshal() (dAtA []byte, err error) { } func (m *ChangePeer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChangePeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Peer != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) + n61, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 } if m.ChangeType != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ChangeType)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ChangeType)) } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13119,40 +12319,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13160,52 +12352,42 @@ func (m *TransferLeader) Marshal() (dAtA []byte, err error) { } func (m *TransferLeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TransferLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Peer != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Peer.Size())) + n62, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 } if len(m.Peers) > 0 { - for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Peers { dAtA[i] = 0x12 - } - } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13213,38 +12395,30 @@ func (m *Merge) Marshal() (dAtA []byte, err error) { } func (m *Merge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Merge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Target != nil { - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Target.Size())) + n63, err := m.Target.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13252,40 +12426,33 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13293,41 +12460,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13335,40 +12496,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13376,139 +12529,115 @@ func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { } func (m *RegionHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SwitchWitnesses != nil { - { - size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n64, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x52 + i += n64 } - if m.ChangePeerV2 != nil { - { - size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.ChangePeer != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ChangePeer.Size())) + n65, err := m.ChangePeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x4a + i += n65 } - if m.SplitRegion != nil { - { - size, err := m.SplitRegion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.TransferLeader != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TransferLeader.Size())) + n66, err := m.TransferLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x42 + i += n66 } - if m.Merge != nil { - { - size, err := m.Merge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.RegionId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + } + if m.RegionEpoch != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n67, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n67 } if m.TargetPeer != nil { - { - size, err := m.TargetPeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x32 - } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TargetPeer.Size())) + n68, err := m.TargetPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i += n68 } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x20 + if m.Merge != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Merge.Size())) + n69, err := m.Merge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 } - if m.TransferLeader != nil { - { - size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.SplitRegion != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitRegion.Size())) + n70, err := m.SplitRegion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n70 } - if m.ChangePeer != nil { - { - size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.ChangePeerV2 != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ChangePeerV2.Size())) + n71, err := m.ChangePeerV2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n71 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.SwitchWitnesses != nil { + dAtA[i] = 0x52 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) + n72, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n72 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13516,50 +12645,40 @@ func (m *AskSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *AskSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n73, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n73 } if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n74, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n74 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13567,61 +12686,52 @@ func (m *AskSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *AskSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n75, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n75 + } + if m.NewRegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) } if len(m.NewPeerIds) > 0 { - dAtA76 := make([]byte, len(m.NewPeerIds)*10) - var j75 int + dAtA77 := make([]byte, len(m.NewPeerIds)*10) + var j76 int for _, num := range m.NewPeerIds { for num >= 1<<7 { - dAtA76[j75] = uint8(uint64(num)&0x7f | 0x80) + dAtA77[j76] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j75++ + j76++ } - dAtA76[j75] = uint8(num) - j75++ + dAtA77[j76] = uint8(num) + j76++ } - i -= j75 - copy(dAtA[i:], dAtA76[:j75]) - i = encodeVarintPdpb(dAtA, i, uint64(j75)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j76)) + i += copy(dAtA[i:], dAtA77[:j76]) } - if m.NewRegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13629,62 +12739,50 @@ func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Right != nil { - { - size, err := m.Right.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n78, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n78 } if m.Left != nil { - { - size, err := m.Left.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Left.Size())) + n79, err := m.Left.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n79 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Right != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Right.Size())) + n80, err := m.Right.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n80 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13692,38 +12790,30 @@ func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n81, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n81 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13731,55 +12821,45 @@ func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *AskBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SplitCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n82, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n82 } if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n83, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n83 + } + if m.SplitCount != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13787,18 +12867,14 @@ func (m *SplitID) Marshal() (dAtA []byte, err error) { } func (m *SplitID) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.NewRegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) } if len(m.NewPeerIds) > 0 { dAtA85 := make([]byte, len(m.NewPeerIds)*10) @@ -13812,24 +12888,21 @@ func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA85[j84] = uint8(num) j84++ } - i -= j84 - copy(dAtA[i:], dAtA85[:j84]) - i = encodeVarintPdpb(dAtA, i, uint64(j84)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j84)) + i += copy(dAtA[i:], dAtA85[:j84]) } - if m.NewRegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -13837,52 +12910,42 @@ func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *AskBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AskBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n86, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n86 } if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ids[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Ids { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13890,52 +12953,42 @@ func (m *ReportBatchSplitRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n87, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n87 } if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Regions { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13943,38 +12996,30 @@ func (m *ReportBatchSplitResponse) Marshal() (dAtA []byte, err error) { } func (m *ReportBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n88, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n88 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -13982,36 +13027,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14019,38 +13058,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14058,63 +13090,55 @@ func (m *PeerStat) Marshal() (dAtA []byte, err error) { } func (m *PeerStat) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } - if m.WrittenBytes != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenBytes)) - i-- - dAtA[i] = 0x30 + if m.ReadKeys != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReadKeys)) } - if m.WrittenKeys != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) - i-- - dAtA[i] = 0x28 + if m.ReadBytes != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReadBytes)) } if m.QueryStats != nil { - { - size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) + n89, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n89 } - if m.ReadBytes != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ReadBytes)) - i-- - dAtA[i] = 0x18 + if m.WrittenKeys != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) } - if m.ReadKeys != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ReadKeys)) - i-- - dAtA[i] = 0x10 + if m.WrittenBytes != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenBytes)) } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14122,302 +13146,277 @@ 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())) + n90, err := m.Interval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n90 + } + if len(m.CpuUsages) > 0 { + for _, msg := range m.CpuUsages { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd2 } - if len(m.SnapshotStats) > 0 { - for iNdEx := len(m.SnapshotStats) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SnapshotStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + if len(m.ReadIoRates) > 0 { + for _, msg := range m.ReadIoRates { + dAtA[i] = 0x8a + i++ dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca - } - } - if m.IsApplyBusy { - i-- - if m.IsApplyBusy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc0 } - if len(m.DamagedRegionsId) > 0 { - dAtA92 := make([]byte, len(m.DamagedRegionsId)*10) - var j91 int - for _, num := range m.DamagedRegionsId { - for num >= 1<<7 { - dAtA92[j91] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j91++ + if len(m.WriteIoRates) > 0 { + for _, msg := range m.WriteIoRates { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - dAtA92[j91] = uint8(num) - j91++ + i += n } - i -= j91 - copy(dAtA[i:], dAtA92[:j91]) - i = encodeVarintPdpb(dAtA, i, uint64(j91)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - if m.SlowScore != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SlowScore)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb0 } - if m.QueryStats != nil { - { - size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + if len(m.OpLatencies) > 0 { + for _, msg := range m.OpLatencies { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa } if len(m.PeerStats) > 0 { - for iNdEx := len(m.PeerStats) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PeerStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- + for _, msg := range m.PeerStats { dAtA[i] = 0xa2 - } - } - if len(m.OpLatencies) > 0 { - for iNdEx := len(m.OpLatencies) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.OpLatencies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + i++ dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.WriteIoRates) > 0 { - for iNdEx := len(m.WriteIoRates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WriteIoRates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 + if m.QueryStats != nil { + dAtA[i] = 0xaa + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.QueryStats.Size())) + n91, err := m.QueryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n91 } - if len(m.ReadIoRates) > 0 { - for iNdEx := len(m.ReadIoRates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReadIoRates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.SlowScore != 0 { + dAtA[i] = 0xb0 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SlowScore)) + } + if len(m.DamagedRegionsId) > 0 { + dAtA93 := make([]byte, len(m.DamagedRegionsId)*10) + var j92 int + for _, num := range m.DamagedRegionsId { + for num >= 1<<7 { + dAtA93[j92] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j92++ } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + dAtA93[j92] = uint8(num) + j92++ } + dAtA[i] = 0xba + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j92)) + i += copy(dAtA[i:], dAtA93[:j92]) } - if len(m.CpuUsages) > 0 { - for iNdEx := len(m.CpuUsages) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CpuUsages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + if m.IsApplyBusy { + dAtA[i] = 0xc0 + i++ + dAtA[i] = 0x1 + i++ + if m.IsApplyBusy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - if m.Interval != nil { - { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + if len(m.SnapshotStats) > 0 { + for _, msg := range m.SnapshotStats { + dAtA[i] = 0xca + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x7a - } - if m.KeysRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - i-- - dAtA[i] = 0x70 - } - if m.BytesRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - i-- - dAtA[i] = 0x68 - } - if m.KeysWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - i-- - dAtA[i] = 0x60 - } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x58 } - if m.UsedSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.UsedSize)) - i-- - dAtA[i] = 0x50 + if m.SlowTrend != nil { + dAtA[i] = 0xd2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SlowTrend.Size())) + n94, err := m.SlowTrend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n94 } - if m.IsBusy { - i-- - if m.IsBusy { + if m.IsGrpcPaused { + dAtA[i] = 0xd8 + i++ + dAtA[i] = 0x1 + i++ + if m.IsGrpcPaused { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x48 - } - if m.ApplyingSnapCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApplyingSnapCount)) - i-- - dAtA[i] = 0x40 - } - if m.StartTime != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartTime)) - i-- - dAtA[i] = 0x38 - } - if m.ReceivingSnapCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ReceivingSnapCount)) - i-- - dAtA[i] = 0x30 - } - if m.SendingSnapCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SendingSnapCount)) - i-- - dAtA[i] = 0x28 - } - if m.RegionCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionCount)) - i-- - dAtA[i] = 0x20 + i++ } - if m.Available != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Available)) - i-- - dAtA[i] = 0x18 + if m.TotalMemory != 0 { + dAtA[i] = 0xe0 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TotalMemory)) } - if m.Capacity != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Capacity)) - i-- - dAtA[i] = 0x10 + if m.UsedMemory != 0 { + dAtA[i] = 0xe8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.UsedMemory)) } - if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14425,50 +13424,44 @@ 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.ResultRate != 0 { + dAtA[i] = 0x21 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultRate)))) + i += 8 } - if m.CauseValue != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseValue)))) - i-- - dAtA[i] = 0x9 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14476,51 +13469,45 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14528,70 +13515,60 @@ func (m *PeerReport) Marshal() (dAtA []byte, err error) { } func (m *PeerReport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.RaftState != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RaftState.Size())) + n95, err := m.RaftState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n95 } - if m.HasCommitMerge { - i-- - if m.HasCommitMerge { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.RegionState != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionState.Size())) + n96, err := m.RegionState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x20 + i += n96 } if m.IsForceLeader { - i-- + dAtA[i] = 0x18 + i++ if m.IsForceLeader { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14599,45 +13576,37 @@ 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 len(m.PeerReports) > 0 { + for _, msg := range m.PeerReports { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.Step != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) } - if len(m.PeerReports) > 0 { - for iNdEx := len(m.PeerReports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PeerReports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14645,74 +13614,60 @@ func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { } func (m *StoreHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n97, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n97 } - if m.DrAutosyncStatus != nil { - { - size, err := m.DrAutosyncStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Stats != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Stats.Size())) + n98, err := m.Stats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n98 } if m.StoreReport != nil { - { - size, err := m.StoreReport.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreReport.Size())) + n99, err := m.StoreReport.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n99 } - if m.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.DrAutosyncStatus != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.DrAutosyncStatus.Size())) + n100, err := m.DrAutosyncStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n100 } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14720,45 +13675,37 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14766,23 +13713,14 @@ func (m *ForceLeader) Marshal() (dAtA []byte, err error) { } func (m *ForceLeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EnterForceLeaders) > 0 { - dAtA102 := make([]byte, len(m.EnterForceLeaders)*10) + if len(m.FailedStores) > 0 { + dAtA102 := make([]byte, len(m.FailedStores)*10) var j101 int - for _, num := range m.EnterForceLeaders { + for _, num := range m.FailedStores { for num >= 1<<7 { dAtA102[j101] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -14791,16 +13729,15 @@ func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA102[j101] = uint8(num) j101++ } - i -= j101 - copy(dAtA[i:], dAtA102[:j101]) + dAtA[i] = 0xa + i++ i = encodeVarintPdpb(dAtA, i, uint64(j101)) - i-- - dAtA[i] = 0x12 + i += copy(dAtA[i:], dAtA102[:j101]) } - if len(m.FailedStores) > 0 { - dAtA104 := make([]byte, len(m.FailedStores)*10) + if len(m.EnterForceLeaders) > 0 { + dAtA104 := make([]byte, len(m.EnterForceLeaders)*10) var j103 int - for _, num := range m.FailedStores { + for _, num := range m.EnterForceLeaders { for num >= 1<<7 { dAtA104[j103] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -14809,19 +13746,21 @@ func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA104[j103] = uint8(num) j103++ } - i -= j103 - copy(dAtA[i:], dAtA104[:j103]) + dAtA[i] = 0x12 + i++ i = encodeVarintPdpb(dAtA, i, uint64(j103)) - i-- - dAtA[i] = 0xa + i += copy(dAtA[i:], dAtA104[:j103]) } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -14829,103 +13768,88 @@ func (m *RecoveryPlan) Marshal() (dAtA []byte, err error) { } func (m *RecoveryPlan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Step != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) - i-- - dAtA[i] = 0x30 - } - if m.ForceLeader != nil { - { - size, err := m.ForceLeader.MarshalToSizedBuffer(dAtA[:i]) + if len(m.Creates) > 0 { + for _, msg := range m.Creates { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x2a } - if len(m.Demotes) > 0 { - for iNdEx := len(m.Demotes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Demotes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.Updates) > 0 { + for _, msg := range m.Updates { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } if len(m.Tombstones) > 0 { - dAtA107 := make([]byte, len(m.Tombstones)*10) - var j106 int + dAtA106 := make([]byte, len(m.Tombstones)*10) + var j105 int for _, num := range m.Tombstones { for num >= 1<<7 { - dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) + dAtA106[j105] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j106++ + j105++ } - dAtA107[j106] = uint8(num) - j106++ + dAtA106[j105] = uint8(num) + j105++ } - i -= j106 - copy(dAtA[i:], dAtA107[:j106]) - i = encodeVarintPdpb(dAtA, i, uint64(j106)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j105)) + i += copy(dAtA[i:], dAtA106[:j105]) } - if len(m.Updates) > 0 { - for iNdEx := len(m.Updates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Updates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.Demotes) > 0 { + for _, msg := range m.Demotes { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if len(m.Creates) > 0 { - for iNdEx := len(m.Creates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Creates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.ForceLeader != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ForceLeader.Size())) + n107, err := m.ForceLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n107 + } + if m.Step != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -14933,19 +13857,10 @@ func (m *AwakenRegions) Marshal() (dAtA []byte, err error) { } func (m *AwakenRegions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.AbnormalStores) > 0 { dAtA109 := make([]byte, len(m.AbnormalStores)*10) var j108 int @@ -14958,19 +13873,21 @@ func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA109[j108] = uint8(num) j108++ } - i -= j108 - copy(dAtA[i:], dAtA109[:j108]) - i = encodeVarintPdpb(dAtA, i, uint64(j108)) - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j108)) + i += copy(dAtA[i:], dAtA109[:j108]) } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -14978,31 +13895,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15010,103 +13921,86 @@ func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { } func (m *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StoreHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ControlGrpc != nil { - { - size, err := m.ControlGrpc.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n110, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n110 } - if m.AwakenRegions != nil { - { - size, err := m.AwakenRegions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.ReplicationStatus != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n111, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n111 } - if m.RecoveryPlan != nil { - { - size, err := m.RecoveryPlan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if len(m.ClusterVersion) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClusterVersion))) + i += copy(dAtA[i:], m.ClusterVersion) } if m.RequireDetailedReport { - i-- + dAtA[i] = 0x20 + i++ if m.RequireDetailedReport { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x20 + i++ } - if len(m.ClusterVersion) > 0 { - i -= len(m.ClusterVersion) - copy(dAtA[i:], m.ClusterVersion) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClusterVersion))) - i-- - dAtA[i] = 0x1a + if m.RecoveryPlan != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RecoveryPlan.Size())) + n112, err := m.RecoveryPlan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n112 } - if m.ReplicationStatus != nil { - { - size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.AwakenRegions != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.AwakenRegions.Size())) + n113, err := m.AwakenRegions.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n113 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.ControlGrpc != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ControlGrpc.Size())) + n114, err := m.ControlGrpc.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n114 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15114,107 +14008,93 @@ func (m *ScatterRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *ScatterRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScatterRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n115, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n115 } - if m.SkipStoreLimit { - i-- - if m.SkipStoreLimit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + } + if m.Region != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Region.Size())) + n116, err := m.Region.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x40 + i += n116 } - if m.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x38 + if m.Leader != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Leader.Size())) + n117, err := m.Leader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n117 + } + if len(m.Group) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) + i += copy(dAtA[i:], m.Group) } if len(m.RegionsId) > 0 { - dAtA116 := make([]byte, len(m.RegionsId)*10) - var j115 int + dAtA119 := make([]byte, len(m.RegionsId)*10) + var j118 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA116[j115] = uint8(uint64(num)&0x7f | 0x80) + dAtA119[j118] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j115++ + j118++ } - dAtA116[j115] = uint8(num) - j115++ + dAtA119[j118] = uint8(num) + j118++ } - i -= j115 - copy(dAtA[i:], dAtA116[:j115]) - i = encodeVarintPdpb(dAtA, i, uint64(j115)) - i-- dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j118)) + i += copy(dAtA[i:], dAtA119[:j118]) } - if len(m.Group) > 0 { - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x2a - } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.RetryLimit != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) } - 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.SkipStoreLimit { + dAtA[i] = 0x40 + i++ + if m.SkipStoreLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x1a - } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - 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 = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15222,43 +14102,35 @@ func (m *ScatterRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *ScatterRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScatterRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n120, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n120 } if m.FinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15266,38 +14138,30 @@ func (m *GetGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *GetGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n121, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n121 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15305,43 +14169,35 @@ func (m *GetGCSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *GetGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n122, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n122 } if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15349,43 +14205,35 @@ func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n123, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n123 } if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15393,43 +14241,35 @@ func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n124, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n124 } if m.NewSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15437,55 +14277,46 @@ func (m *UpdateServiceGCSafePointRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n125, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n125 } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x20 + if len(m.ServiceId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } if m.TTL != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) } - if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i-- - dAtA[i] = 0x12 + if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15493,55 +14324,46 @@ func (m *UpdateServiceGCSafePointResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n126, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n126 } - if m.MinSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - i-- - dAtA[i] = 0x20 + if len(m.ServiceId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } if m.TTL != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) } - if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i-- - dAtA[i] = 0x12 + if m.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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15549,43 +14371,35 @@ func (m *GetGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } func (m *GetGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n127, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n127 } if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15593,43 +14407,35 @@ func (m *GetGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } func (m *GetGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n128, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n128 } if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15637,43 +14443,35 @@ func (m *WatchGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } func (m *WatchGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n129, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n129 } if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15681,41 +14479,35 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15723,57 +14515,47 @@ func (m *WatchGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } func (m *WatchGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n130, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n130 } if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.Events { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.Revision != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -15781,48 +14563,40 @@ func (m *UpdateGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n131, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n131 } if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + } + if m.SafePoint != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + 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 } @@ -15830,43 +14604,35 @@ func (m *UpdateGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } func (m *UpdateGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n132, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n132 } if m.NewSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15874,60 +14640,51 @@ func (m *UpdateServiceSafePointV2Request) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Ttl != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x28 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n133, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n133 } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x20 + if m.KeyspaceId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) } if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x10 + if m.SafePoint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Ttl != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15935,55 +14692,46 @@ func (m *UpdateServiceSafePointV2Response) Marshal() (dAtA []byte, err error) { } func (m *UpdateServiceSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateServiceSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n134, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n134 } - if m.MinSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - i-- - dAtA[i] = 0x20 + if len(m.ServiceId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i += copy(dAtA[i:], m.ServiceId) } if m.Ttl != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - i-- dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) } - if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i-- - dAtA[i] = 0x12 + if m.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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -15991,38 +14739,30 @@ func (m *GetAllGCSafePointV2Request) Marshal() (dAtA []byte, err error) { } func (m *GetAllGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n135, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n135 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16030,36 +14770,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16067,57 +14801,47 @@ func (m *GetAllGCSafePointV2Response) Marshal() (dAtA []byte, err error) { } func (m *GetAllGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n136, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n136 } if len(m.GcSafePoints) > 0 { - for iNdEx := len(m.GcSafePoints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.GcSafePoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.GcSafePoints { dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.Revision != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -16125,46 +14849,40 @@ 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.KeysRead != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16172,55 +14890,45 @@ func (m *SyncRegionRequest) Marshal() (dAtA []byte, err error) { } func (m *SyncRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.StartIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n137, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n137 } if m.Member != nil { - { - size, err := m.Member.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Member.Size())) + n138, err := m.Member.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n138 + } + if m.StartIndex != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16228,40 +14936,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -16269,40 +14969,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -16310,131 +15002,111 @@ func (m *SyncRegionResponse) Marshal() (dAtA []byte, err error) { } func (m *SyncRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PendingPeers) > 0 { - for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n139, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n139 } - if len(m.DownPeers) > 0 { - for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.Regions) > 0 { + for _, msg := range m.Regions { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + i += n } } - if len(m.Buckets) > 0 { - for iNdEx := len(m.Buckets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Buckets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.StartIndex != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + } + if len(m.RegionStats) > 0 { + for _, msg := range m.RegionStats { + dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x32 + i += n } } if len(m.RegionLeaders) > 0 { - for iNdEx := len(m.RegionLeaders) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RegionLeaders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- + for _, msg := range m.RegionLeaders { dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if len(m.RegionStats) > 0 { - for iNdEx := len(m.RegionStats) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RegionStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.Buckets) > 0 { + for _, msg := range m.Buckets { + dAtA[i] = 0x32 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i += n } } - if m.StartIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) - i-- - dAtA[i] = 0x18 - } - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.DownPeers) > 0 { + for _, msg := range m.DownPeers { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n } } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.PendingPeers) > 0 { + for _, msg := range m.PendingPeers { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -16442,43 +15114,35 @@ func (m *GetOperatorRequest) Marshal() (dAtA []byte, err error) { } func (m *GetOperatorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n140, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n140 } if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16486,62 +15150,52 @@ func (m *GetOperatorResponse) Marshal() (dAtA []byte, err error) { } func (m *GetOperatorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Kind) > 0 { - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x2a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n141, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n141 } - if m.Status != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) - i-- - dAtA[i] = 0x20 + if m.RegionId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) } if len(m.Desc) > 0 { - i -= len(m.Desc) - copy(dAtA[i:], m.Desc) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Desc))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Desc))) + i += copy(dAtA[i:], m.Desc) } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 + if m.Status != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if len(m.Kind) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16549,60 +15203,50 @@ func (m *SyncMaxTSRequest) Marshal() (dAtA []byte, err error) { } func (m *SyncMaxTSRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncMaxTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n142, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n142 + } + if m.MaxTs != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MaxTs.Size())) + n143, err := m.MaxTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n143 } if m.SkipCheck { - i-- + dAtA[i] = 0x18 + i++ if m.SkipCheck { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 - } - if m.MaxTs != nil { - { - size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + i++ } - if m.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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16610,59 +15254,55 @@ func (m *SyncMaxTSResponse) Marshal() (dAtA []byte, err error) { } func (m *SyncMaxTSResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncMaxTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.SyncedDcs) > 0 { - for iNdEx := len(m.SyncedDcs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SyncedDcs[iNdEx]) - copy(dAtA[i:], m.SyncedDcs[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.SyncedDcs[iNdEx]))) - i-- - dAtA[i] = 0x1a + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n144, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n144 } if m.MaxLocalTs != nil { - { - size, err := m.MaxLocalTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MaxLocalTs.Size())) + n145, err := m.MaxLocalTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n145 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.SyncedDcs) > 0 { + for _, s := range m.SyncedDcs { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -16670,52 +15310,43 @@ func (m *SplitRegionsRequest) Marshal() (dAtA []byte, err error) { } func (m *SplitRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n146, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n146 } if len(m.SplitKeys) > 0 { - for iNdEx := len(m.SplitKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SplitKeys[iNdEx]) - copy(dAtA[i:], m.SplitKeys[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) - i-- + for _, b := range m.SplitKeys { dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) } } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.RetryLimit != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16723,61 +15354,52 @@ func (m *SplitRegionsResponse) Marshal() (dAtA []byte, err error) { } func (m *SplitRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n147, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n147 + } + if m.FinishedPercentage != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) } if len(m.RegionsId) > 0 { - dAtA148 := make([]byte, len(m.RegionsId)*10) - var j147 int + dAtA149 := make([]byte, len(m.RegionsId)*10) + var j148 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA148[j147] = uint8(uint64(num)&0x7f | 0x80) + dAtA149[j148] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j147++ + j148++ } - dAtA148[j147] = uint8(num) - j147++ + dAtA149[j148] = uint8(num) + j148++ } - i -= j147 - copy(dAtA[i:], dAtA148[:j147]) - i = encodeVarintPdpb(dAtA, i, uint64(j147)) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j148)) + i += copy(dAtA[i:], dAtA149[:j148]) } - if m.FinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16785,59 +15407,49 @@ 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.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.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x20 + if len(m.SplitKeys) > 0 { + for _, b := range m.SplitKeys { + dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(b))) + i += copy(dAtA[i:], b) + } } if len(m.Group) > 0 { - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) + i += copy(dAtA[i:], m.Group) } - if len(m.SplitKeys) > 0 { - for iNdEx := len(m.SplitKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SplitKeys[iNdEx]) - copy(dAtA[i:], m.SplitKeys[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) - i-- - dAtA[i] = 0x12 - } + if m.RetryLimit != 0 { + dAtA[i] = 0x20 + 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)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -16845,66 +15457,57 @@ func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { } func (m *SplitAndScatterRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitAndScatterRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n151, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n151 + } + if m.SplitFinishedPercentage != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitFinishedPercentage)) + } + if m.ScatterFinishedPercentage != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.ScatterFinishedPercentage)) } if len(m.RegionsId) > 0 { - dAtA152 := make([]byte, len(m.RegionsId)*10) - var j151 int + dAtA153 := make([]byte, len(m.RegionsId)*10) + var j152 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA152[j151] = uint8(uint64(num)&0x7f | 0x80) + dAtA153[j152] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j151++ + j152++ } - dAtA152[j151] = uint8(num) - j151++ + dAtA153[j152] = uint8(num) + j152++ } - i -= j151 - copy(dAtA[i:], dAtA152[:j151]) - i = encodeVarintPdpb(dAtA, i, uint64(j151)) - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(j152)) + i += copy(dAtA[i:], dAtA153[:j152]) } - if m.ScatterFinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ScatterFinishedPercentage)) - i-- - dAtA[i] = 0x18 - } - if m.SplitFinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitFinishedPercentage)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16912,45 +15515,36 @@ func (m *GetDCLocationInfoRequest) Marshal() (dAtA []byte, err error) { } func (m *GetDCLocationInfoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDCLocationInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n154, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n154 } if len(m.DcLocation) > 0 { - i -= len(m.DcLocation) - copy(dAtA[i:], m.DcLocation) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + i += copy(dAtA[i:], m.DcLocation) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -16958,55 +15552,45 @@ func (m *GetDCLocationInfoResponse) Marshal() (dAtA []byte, err error) { } func (m *GetDCLocationInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDCLocationInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MaxTs != nil { - { - size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n155, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n155 } if m.Suffix != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.MaxTs != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MaxTs.Size())) + n156, err := m.MaxTs.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n156 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17014,81 +15598,75 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17096,62 +15674,50 @@ func (m *ReportBucketsRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportBucketsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Buckets != nil { - { - size, err := m.Buckets.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n157, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n157 } if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n158, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n158 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Buckets != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Buckets.Size())) + n159, err := m.Buckets.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n159 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17159,38 +15725,30 @@ func (m *ReportBucketsResponse) Marshal() (dAtA []byte, err error) { } func (m *ReportBucketsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportBucketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n160, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n160 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -17198,48 +15756,40 @@ func (m *ReportMinResolvedTsRequest) Marshal() (dAtA []byte, err error) { } func (m *ReportMinResolvedTsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportMinResolvedTsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MinResolvedTs != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinResolvedTs)) - i-- - dAtA[i] = 0x18 + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n161, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n161 } if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.MinWatermark != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MinWatermark)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17247,38 +15797,102 @@ func (m *ReportMinResolvedTsResponse) Marshal() (dAtA []byte, err error) { } func (m *ReportMinResolvedTsResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n162, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n162 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *ReportMinWatermarkRequest) Marshal() (dAtA []byte, err error) { size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *ReportMinResolvedTsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *ReportMinWatermarkRequest) MarshalTo(dAtA []byte) (int, error) { + var i int _ = i var l int _ = l + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n163, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n163 + } + if m.StoreId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) + } + if m.MinWatermark != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.MinWatermark)) + } if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + i += copy(dAtA[i:], m.XXX_unrecognized) } + return i, nil +} + +func (m *ReportMinWatermarkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReportMinWatermarkResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintPdpb(dAtA, i, uint64(m.Header.Size())) + n164, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n164 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -17286,43 +15900,35 @@ 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())) + n165, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n165 } 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17330,38 +15936,30 @@ 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())) + n166, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n166 } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -17369,38 +15967,30 @@ 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())) + n167, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n167 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17408,43 +15998,35 @@ 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())) + n168, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n168 } 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17452,38 +16034,30 @@ 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())) + n169, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n169 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -17491,61 +16065,46 @@ 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())) + n170, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n170 } 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())) + n171, err := m.Timestamp.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i += n171 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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) @@ -17562,9 +16121,6 @@ func (m *WatchGlobalConfigRequest) Size() (n int) { } func (m *WatchGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -17587,9 +16143,6 @@ func (m *WatchGlobalConfigResponse) Size() (n int) { } func (m *StoreGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -17609,9 +16162,6 @@ func (m *StoreGlobalConfigRequest) Size() (n int) { } func (m *StoreGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -17625,9 +16175,6 @@ func (m *StoreGlobalConfigResponse) Size() (n int) { } func (m *LoadGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Names) > 0 { @@ -17647,9 +16194,6 @@ func (m *LoadGlobalConfigRequest) Size() (n int) { } func (m *LoadGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Items) > 0 { @@ -17668,9 +16212,6 @@ func (m *LoadGlobalConfigResponse) Size() (n int) { } func (m *GlobalConfigItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -17699,9 +16240,6 @@ func (m *GlobalConfigItem) Size() (n int) { } func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -17717,9 +16255,6 @@ func (m *RequestHeader) Size() (n int) { } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -17736,9 +16271,6 @@ func (m *ResponseHeader) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -17755,9 +16287,6 @@ func (m *Error) Size() (n int) { } func (m *TsoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17778,9 +16307,6 @@ func (m *TsoRequest) Size() (n int) { } func (m *Timestamp) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Physical != 0 { @@ -17799,9 +16325,6 @@ func (m *Timestamp) Size() (n int) { } func (m *TsoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17822,9 +16345,6 @@ func (m *TsoResponse) Size() (n int) { } func (m *BootstrapRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17846,9 +16366,6 @@ func (m *BootstrapRequest) Size() (n int) { } func (m *BootstrapResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17866,9 +16383,6 @@ func (m *BootstrapResponse) Size() (n int) { } func (m *IsBootstrappedRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17882,9 +16396,6 @@ func (m *IsBootstrappedRequest) Size() (n int) { } func (m *IsBootstrappedResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17901,9 +16412,6 @@ func (m *IsBootstrappedResponse) Size() (n int) { } func (m *AllocIDRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17917,9 +16425,6 @@ func (m *AllocIDRequest) Size() (n int) { } func (m *AllocIDResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17936,9 +16441,6 @@ func (m *AllocIDResponse) Size() (n int) { } func (m *IsSnapshotRecoveringRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17952,9 +16454,6 @@ func (m *IsSnapshotRecoveringRequest) Size() (n int) { } func (m *IsSnapshotRecoveringResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17971,9 +16470,6 @@ func (m *IsSnapshotRecoveringResponse) Size() (n int) { } func (m *GetStoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -17990,9 +16486,6 @@ func (m *GetStoreRequest) Size() (n int) { } func (m *GetStoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18014,9 +16507,6 @@ func (m *GetStoreResponse) Size() (n int) { } func (m *PutStoreRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18034,9 +16524,6 @@ func (m *PutStoreRequest) Size() (n int) { } func (m *PutStoreResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18054,9 +16541,6 @@ func (m *PutStoreResponse) Size() (n int) { } func (m *GetAllStoresRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18073,9 +16557,6 @@ func (m *GetAllStoresRequest) Size() (n int) { } func (m *GetAllStoresResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18095,9 +16576,6 @@ func (m *GetAllStoresResponse) Size() (n int) { } func (m *GetRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18118,9 +16596,6 @@ func (m *GetRegionRequest) Size() (n int) { } func (m *GetRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18158,9 +16633,6 @@ func (m *GetRegionResponse) Size() (n int) { } func (m *GetRegionByIDRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18180,9 +16652,6 @@ func (m *GetRegionByIDRequest) Size() (n int) { } func (m *ScanRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18207,9 +16676,6 @@ func (m *ScanRegionsRequest) Size() (n int) { } func (m *Region) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -18239,9 +16705,6 @@ func (m *Region) Size() (n int) { } func (m *ScanRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18273,9 +16736,6 @@ func (m *ScanRegionsResponse) Size() (n int) { } func (m *GetClusterConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18289,9 +16749,6 @@ func (m *GetClusterConfigRequest) Size() (n int) { } func (m *GetClusterConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18309,9 +16766,6 @@ func (m *GetClusterConfigResponse) Size() (n int) { } func (m *PutClusterConfigRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18329,9 +16783,6 @@ func (m *PutClusterConfigRequest) Size() (n int) { } func (m *PutClusterConfigResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18345,9 +16796,6 @@ func (m *PutClusterConfigResponse) Size() (n int) { } func (m *Member) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -18395,9 +16843,6 @@ func (m *Member) Size() (n int) { } func (m *GetMembersRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18411,9 +16856,6 @@ func (m *GetMembersRequest) Size() (n int) { } func (m *GetMembersResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18454,9 +16896,6 @@ func (m *GetMembersResponse) Size() (n int) { } func (m *GetClusterInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18470,9 +16909,6 @@ func (m *GetClusterInfoRequest) Size() (n int) { } func (m *GetClusterInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18499,9 +16935,6 @@ func (m *GetClusterInfoResponse) Size() (n int) { } func (m *PeerStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -18518,9 +16951,6 @@ func (m *PeerStats) Size() (n int) { } func (m *RegionHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18593,9 +17023,6 @@ func (m *RegionHeartbeatRequest) Size() (n int) { } func (m *ChangePeer) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -18612,9 +17039,6 @@ func (m *ChangePeer) Size() (n int) { } func (m *ChangePeerV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -18630,9 +17054,6 @@ func (m *ChangePeerV2) Size() (n int) { } func (m *TransferLeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -18652,9 +17073,6 @@ func (m *TransferLeader) Size() (n int) { } func (m *Merge) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Target != nil { @@ -18668,9 +17086,6 @@ func (m *Merge) Size() (n int) { } func (m *SplitRegion) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Policy != 0 { @@ -18689,9 +17104,6 @@ func (m *SplitRegion) Size() (n int) { } func (m *SwitchWitness) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PeerId != 0 { @@ -18707,9 +17119,6 @@ func (m *SwitchWitness) Size() (n int) { } func (m *BatchSwitchWitness) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.SwitchWitnesses) > 0 { @@ -18725,9 +17134,6 @@ func (m *BatchSwitchWitness) Size() (n int) { } func (m *RegionHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18776,9 +17182,6 @@ func (m *RegionHeartbeatResponse) Size() (n int) { } func (m *AskSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18796,9 +17199,6 @@ func (m *AskSplitRequest) Size() (n int) { } func (m *AskSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18822,9 +17222,6 @@ func (m *AskSplitResponse) Size() (n int) { } func (m *ReportSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18846,9 +17243,6 @@ func (m *ReportSplitRequest) Size() (n int) { } func (m *ReportSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18862,9 +17256,6 @@ func (m *ReportSplitResponse) Size() (n int) { } func (m *AskBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18885,9 +17276,6 @@ func (m *AskBatchSplitRequest) Size() (n int) { } func (m *SplitID) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.NewRegionId != 0 { @@ -18907,9 +17295,6 @@ func (m *SplitID) Size() (n int) { } func (m *AskBatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18929,9 +17314,6 @@ func (m *AskBatchSplitResponse) Size() (n int) { } func (m *ReportBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18951,9 +17333,6 @@ func (m *ReportBatchSplitRequest) Size() (n int) { } func (m *ReportBatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -18967,9 +17346,6 @@ func (m *ReportBatchSplitResponse) Size() (n int) { } func (m *TimeInterval) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTimestamp != 0 { @@ -18985,9 +17361,6 @@ func (m *TimeInterval) Size() (n int) { } func (m *RecordPair) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -19004,9 +17377,6 @@ func (m *RecordPair) Size() (n int) { } func (m *PeerStat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -19035,9 +17405,6 @@ func (m *PeerStat) Size() (n int) { } func (m *StoreStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { @@ -19159,9 +17526,6 @@ func (m *StoreStats) Size() (n int) { } func (m *SlowTrend) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CauseValue != 0 { @@ -19183,9 +17547,6 @@ func (m *SlowTrend) Size() (n int) { } func (m *SnapshotStat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -19210,9 +17571,6 @@ func (m *SnapshotStat) Size() (n int) { } func (m *PeerReport) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RaftState != nil { @@ -19236,9 +17594,6 @@ func (m *PeerReport) Size() (n int) { } func (m *StoreReport) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.PeerReports) > 0 { @@ -19257,9 +17612,6 @@ func (m *StoreReport) Size() (n int) { } func (m *StoreHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19285,9 +17637,6 @@ func (m *StoreHeartbeatRequest) Size() (n int) { } func (m *DemoteFailedVoters) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -19306,9 +17655,6 @@ func (m *DemoteFailedVoters) Size() (n int) { } func (m *ForceLeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.FailedStores) > 0 { @@ -19332,9 +17678,6 @@ func (m *ForceLeader) Size() (n int) { } func (m *RecoveryPlan) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Creates) > 0 { @@ -19376,9 +17719,6 @@ func (m *RecoveryPlan) Size() (n int) { } func (m *AwakenRegions) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.AbnormalStores) > 0 { @@ -19395,9 +17735,6 @@ func (m *AwakenRegions) Size() (n int) { } func (m *ControlGrpc) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CtrlEvent != 0 { @@ -19410,9 +17747,6 @@ func (m *ControlGrpc) Size() (n int) { } func (m *StoreHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19449,9 +17783,6 @@ func (m *StoreHeartbeatResponse) Size() (n int) { } func (m *ScatterRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19493,9 +17824,6 @@ func (m *ScatterRegionRequest) Size() (n int) { } func (m *ScatterRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19512,9 +17840,6 @@ func (m *ScatterRegionResponse) Size() (n int) { } func (m *GetGCSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19528,9 +17853,6 @@ func (m *GetGCSafePointRequest) Size() (n int) { } func (m *GetGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19547,9 +17869,6 @@ func (m *GetGCSafePointResponse) Size() (n int) { } func (m *UpdateGCSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19566,9 +17885,6 @@ func (m *UpdateGCSafePointRequest) Size() (n int) { } func (m *UpdateGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19585,9 +17901,6 @@ func (m *UpdateGCSafePointResponse) Size() (n int) { } func (m *UpdateServiceGCSafePointRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19611,9 +17924,6 @@ func (m *UpdateServiceGCSafePointRequest) Size() (n int) { } func (m *UpdateServiceGCSafePointResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19637,9 +17947,6 @@ func (m *UpdateServiceGCSafePointResponse) Size() (n int) { } func (m *GetGCSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19656,9 +17963,6 @@ func (m *GetGCSafePointV2Request) Size() (n int) { } func (m *GetGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19675,9 +17979,6 @@ func (m *GetGCSafePointV2Response) Size() (n int) { } func (m *WatchGCSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19694,9 +17995,6 @@ func (m *WatchGCSafePointV2Request) Size() (n int) { } func (m *SafePointEvent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyspaceId != 0 { @@ -19715,9 +18013,6 @@ func (m *SafePointEvent) Size() (n int) { } func (m *WatchGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19740,9 +18035,6 @@ func (m *WatchGCSafePointV2Response) Size() (n int) { } func (m *UpdateGCSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19762,9 +18054,6 @@ func (m *UpdateGCSafePointV2Request) Size() (n int) { } func (m *UpdateGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19781,9 +18070,6 @@ func (m *UpdateGCSafePointV2Response) Size() (n int) { } func (m *UpdateServiceSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19810,9 +18096,6 @@ func (m *UpdateServiceSafePointV2Request) Size() (n int) { } func (m *UpdateServiceSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19836,9 +18119,6 @@ func (m *UpdateServiceSafePointV2Response) Size() (n int) { } func (m *GetAllGCSafePointV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19852,9 +18132,6 @@ func (m *GetAllGCSafePointV2Request) Size() (n int) { } func (m *GCSafePointV2) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.KeyspaceId != 0 { @@ -19870,9 +18147,6 @@ func (m *GCSafePointV2) Size() (n int) { } func (m *GetAllGCSafePointV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19895,9 +18169,6 @@ func (m *GetAllGCSafePointV2Response) Size() (n int) { } func (m *RegionStat) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.BytesWritten != 0 { @@ -19919,9 +18190,6 @@ func (m *RegionStat) Size() (n int) { } func (m *SyncRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -19942,9 +18210,6 @@ func (m *SyncRegionRequest) Size() (n int) { } func (m *PeersStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Peers) > 0 { @@ -19960,9 +18225,6 @@ func (m *PeersStats) Size() (n int) { } func (m *Peers) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Peers) > 0 { @@ -19978,9 +18240,6 @@ func (m *Peers) Size() (n int) { } func (m *SyncRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20033,9 +18292,6 @@ func (m *SyncRegionResponse) Size() (n int) { } func (m *GetOperatorRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20052,9 +18308,6 @@ func (m *GetOperatorRequest) Size() (n int) { } func (m *GetOperatorResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20082,9 +18335,6 @@ func (m *GetOperatorResponse) Size() (n int) { } func (m *SyncMaxTSRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20105,9 +18355,6 @@ func (m *SyncMaxTSRequest) Size() (n int) { } func (m *SyncMaxTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20131,9 +18378,6 @@ func (m *SyncMaxTSResponse) Size() (n int) { } func (m *SplitRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20156,9 +18400,6 @@ func (m *SplitRegionsRequest) Size() (n int) { } func (m *SplitRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20182,9 +18423,6 @@ func (m *SplitRegionsResponse) Size() (n int) { } func (m *SplitAndScatterRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20211,9 +18449,6 @@ func (m *SplitAndScatterRegionsRequest) Size() (n int) { } func (m *SplitAndScatterRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20240,9 +18475,6 @@ func (m *SplitAndScatterRegionsResponse) Size() (n int) { } func (m *GetDCLocationInfoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20260,9 +18492,6 @@ func (m *GetDCLocationInfoRequest) Size() (n int) { } func (m *GetDCLocationInfoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20283,9 +18512,6 @@ func (m *GetDCLocationInfoResponse) Size() (n int) { } func (m *QueryStats) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.GC != 0 { @@ -20328,9 +18554,6 @@ func (m *QueryStats) Size() (n int) { } func (m *ReportBucketsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20352,9 +18575,6 @@ func (m *ReportBucketsRequest) Size() (n int) { } func (m *ReportBucketsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20368,9 +18588,6 @@ func (m *ReportBucketsResponse) Size() (n int) { } func (m *ReportMinResolvedTsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20380,8 +18597,8 @@ func (m *ReportMinResolvedTsRequest) Size() (n int) { if m.StoreId != 0 { n += 1 + sovPdpb(uint64(m.StoreId)) } - if m.MinResolvedTs != 0 { - n += 1 + sovPdpb(uint64(m.MinResolvedTs)) + if m.MinWatermark != 0 { + n += 1 + sovPdpb(uint64(m.MinWatermark)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) @@ -20390,9 +18607,38 @@ func (m *ReportMinResolvedTsRequest) Size() (n int) { } 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 *ReportMinWatermarkRequest) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.StoreId != 0 { + n += 1 + sovPdpb(uint64(m.StoreId)) + } + if m.MinWatermark != 0 { + n += 1 + sovPdpb(uint64(m.MinWatermark)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) } + return n +} + +func (m *ReportMinWatermarkResponse) Size() (n int) { var l int _ = l if m.Header != nil { @@ -20406,9 +18652,6 @@ func (m *ReportMinResolvedTsResponse) Size() (n int) { } func (m *SetExternalTimestampRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20425,9 +18668,6 @@ func (m *SetExternalTimestampRequest) Size() (n int) { } func (m *SetExternalTimestampResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20441,9 +18681,6 @@ func (m *SetExternalTimestampResponse) Size() (n int) { } func (m *GetExternalTimestampRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20457,9 +18694,6 @@ func (m *GetExternalTimestampRequest) Size() (n int) { } func (m *GetExternalTimestampResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20476,9 +18710,6 @@ func (m *GetExternalTimestampResponse) Size() (n int) { } func (m *GetMinTSRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20492,9 +18723,6 @@ func (m *GetMinTSRequest) Size() (n int) { } func (m *GetMinTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -20512,7 +18740,14 @@ func (m *GetMinTSResponse) Size() (n int) { } 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)))) @@ -20532,7 +18767,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 } @@ -20560,7 +18795,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 } @@ -20570,9 +18805,6 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20592,7 +18824,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 } @@ -20603,7 +18835,7 @@ 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 { @@ -20634,7 +18866,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 } @@ -20662,7 +18894,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 } @@ -20671,9 +18903,6 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20696,7 +18925,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 } @@ -20715,7 +18944,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 } @@ -20724,9 +18953,6 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20743,7 +18969,7 @@ 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 { @@ -20774,7 +19000,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 } @@ -20802,7 +19028,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 } @@ -20811,9 +19037,6 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20836,7 +19059,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 } @@ -20846,9 +19069,6 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20860,7 +19080,7 @@ 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 { @@ -20891,7 +19111,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 } @@ -20919,7 +19139,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 } @@ -20928,9 +19148,6 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -20947,7 +19164,7 @@ 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 { @@ -20978,7 +19195,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 } @@ -21006,7 +19223,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 } @@ -21016,9 +19233,6 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21038,7 +19252,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 } @@ -21048,9 +19262,6 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21062,7 +19273,7 @@ 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 { @@ -21093,7 +19304,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 } @@ -21121,7 +19332,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 } @@ -21130,9 +19341,6 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21155,7 +19363,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 } @@ -21166,7 +19374,7 @@ 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 { @@ -21197,7 +19405,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 } @@ -21225,7 +19433,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 } @@ -21235,9 +19443,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21257,7 +19462,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 } @@ -21267,9 +19472,6 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21289,255 +19491,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Error == nil { - m.Error = &Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - m.Kind = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Kind |= EventType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestHeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequestHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - m.ClusterId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SenderId", wireType) - } - m.SenderId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SenderId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResponseHeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - m.ClusterId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -21546,9 +19500,248 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + m.Kind = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Kind |= (EventType(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RequestHeader) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RequestHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + m.ClusterId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClusterId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderId", wireType) + } + m.SenderId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SenderId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResponseHeader) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + m.ClusterId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClusterId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthPdpb } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } @@ -21565,7 +19758,7 @@ 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 { @@ -21596,7 +19789,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 } @@ -21624,7 +19817,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 } @@ -21643,7 +19836,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 } @@ -21653,9 +19846,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21667,7 +19857,7 @@ 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 { @@ -21698,7 +19888,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 } @@ -21726,7 +19916,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 } @@ -21735,9 +19925,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21762,7 +19949,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 } @@ -21781,7 +19968,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 } @@ -21791,9 +19978,6 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -21805,7 +19989,7 @@ 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 { @@ -21836,7 +20020,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 } @@ -21864,7 +20048,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 } @@ -21883,7 +20067,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 } @@ -21902,7 +20086,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 } @@ -21913,7 +20097,7 @@ 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 { @@ -21944,7 +20128,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 } @@ -21972,7 +20156,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 } @@ -21981,9 +20165,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22008,7 +20189,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 } @@ -22027,7 +20208,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 } @@ -22036,9 +20217,6 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22055,7 +20233,7 @@ 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 { @@ -22086,7 +20264,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 } @@ -22114,7 +20292,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 } @@ -22123,9 +20301,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22150,7 +20325,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 } @@ -22159,9 +20334,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22186,7 +20358,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 } @@ -22195,9 +20367,6 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22214,7 +20383,7 @@ 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 { @@ -22245,7 +20414,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 } @@ -22273,7 +20442,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 } @@ -22282,9 +20451,6 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22309,7 +20475,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 } @@ -22318,9 +20484,6 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22337,7 +20500,7 @@ 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 { @@ -22368,7 +20531,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 } @@ -22396,7 +20559,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 } @@ -22405,9 +20568,6 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22424,7 +20584,7 @@ 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 { @@ -22455,7 +20615,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 } @@ -22483,7 +20643,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 } @@ -22492,9 +20652,6 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22519,7 +20676,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 } @@ -22531,7 +20688,7 @@ 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 { @@ -22562,7 +20719,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 } @@ -22590,7 +20747,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 } @@ -22599,9 +20756,6 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22618,7 +20772,7 @@ 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 { @@ -22649,7 +20803,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 } @@ -22677,7 +20831,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 } @@ -22686,9 +20840,6 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22713,7 +20864,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 } @@ -22724,7 +20875,7 @@ 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 { @@ -22755,7 +20906,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 } @@ -22783,7 +20934,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 } @@ -22792,9 +20943,6 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22811,7 +20959,7 @@ 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 { @@ -22842,7 +20990,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 } @@ -22870,7 +21018,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 } @@ -22879,9 +21027,6 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -22906,7 +21051,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 } @@ -22918,7 +21063,7 @@ 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 { @@ -22949,7 +21094,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 } @@ -22977,7 +21122,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 } @@ -22986,9 +21131,6 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23013,7 +21155,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 } @@ -23024,7 +21166,7 @@ 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 { @@ -23055,7 +21197,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 } @@ -23083,7 +21225,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 } @@ -23092,9 +21234,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23119,7 +21258,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 } @@ -23128,9 +21267,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23155,7 +21291,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 } @@ -23164,9 +21300,6 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23183,7 +21316,7 @@ 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 { @@ -23214,7 +21347,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 } @@ -23242,7 +21375,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 } @@ -23251,9 +21384,6 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23278,7 +21408,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 } @@ -23287,9 +21417,6 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23306,7 +21433,7 @@ 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 { @@ -23337,7 +21464,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 } @@ -23365,7 +21492,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 } @@ -23374,9 +21501,6 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23401,7 +21525,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 } @@ -23410,9 +21534,6 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23429,7 +21550,7 @@ 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 { @@ -23460,7 +21581,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 } @@ -23488,7 +21609,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 } @@ -23497,9 +21618,6 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23524,7 +21642,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 } @@ -23536,7 +21654,7 @@ 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 { @@ -23567,7 +21685,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 } @@ -23595,7 +21713,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 } @@ -23604,9 +21722,6 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23631,7 +21746,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 } @@ -23640,9 +21755,6 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23657,7 +21769,7 @@ 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 { @@ -23688,7 +21800,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 } @@ -23716,7 +21828,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 } @@ -23725,9 +21837,6 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23752,7 +21861,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 } @@ -23761,9 +21870,6 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23786,7 +21892,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 } @@ -23798,7 +21904,7 @@ 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 { @@ -23829,7 +21935,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 } @@ -23857,7 +21963,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 } @@ -23866,9 +21972,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23893,7 +21996,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 } @@ -23902,9 +22005,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23929,7 +22029,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 } @@ -23938,9 +22038,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23965,7 +22062,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 } @@ -23974,9 +22071,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -23999,7 +22093,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 } @@ -24008,9 +22102,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24033,7 +22124,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 } @@ -24042,9 +22133,6 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24061,7 +22149,7 @@ 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 { @@ -24092,7 +22180,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 } @@ -24120,7 +22208,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 } @@ -24129,9 +22217,6 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24156,7 +22241,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 } @@ -24175,7 +22260,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 } @@ -24187,7 +22272,7 @@ 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 { @@ -24218,7 +22303,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 } @@ -24246,7 +22331,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 } @@ -24255,9 +22340,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24282,7 +22364,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 } @@ -24291,9 +22373,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24316,7 +22395,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 } @@ -24335,7 +22414,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 } @@ -24344,9 +22423,6 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24361,7 +22437,7 @@ 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 { @@ -24392,7 +22468,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 } @@ -24420,7 +22496,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 } @@ -24429,9 +22505,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24456,7 +22529,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 } @@ -24465,9 +22538,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24492,7 +22562,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 } @@ -24501,9 +22571,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24526,7 +22593,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 } @@ -24535,9 +22602,6 @@ func (m *Region) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24552,7 +22616,7 @@ 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 { @@ -24583,7 +22647,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 } @@ -24611,7 +22675,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 } @@ -24620,9 +22684,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24647,7 +22708,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 } @@ -24656,9 +22717,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24681,7 +22739,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 } @@ -24690,9 +22748,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24715,7 +22770,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 } @@ -24724,9 +22779,6 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24741,7 +22793,7 @@ 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 { @@ -24772,7 +22824,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 } @@ -24800,7 +22852,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 } @@ -24809,9 +22861,6 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24828,7 +22877,7 @@ 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 { @@ -24859,7 +22908,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 } @@ -24887,7 +22936,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 } @@ -24896,9 +22945,6 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24923,7 +22969,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 } @@ -24932,9 +22978,6 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -24951,7 +22994,7 @@ 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 { @@ -24982,7 +23025,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 } @@ -25010,7 +23053,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 } @@ -25019,9 +23062,6 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25046,7 +23086,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 } @@ -25055,9 +23095,6 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25074,7 +23111,7 @@ 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 { @@ -25105,7 +23142,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 } @@ -25133,7 +23170,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 } @@ -25142,9 +23179,6 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25161,7 +23195,7 @@ 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 { @@ -25192,7 +23226,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 } @@ -25220,7 +23254,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 } @@ -25230,9 +23264,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25252,7 +23283,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 } @@ -25271,7 +23302,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 } @@ -25281,9 +23312,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25303,7 +23331,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 } @@ -25313,9 +23341,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25335,7 +23360,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 } @@ -25354,7 +23379,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 } @@ -25364,9 +23389,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25386,7 +23408,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 } @@ -25396,9 +23418,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25418,7 +23437,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 } @@ -25428,9 +23447,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25450,7 +23466,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 } @@ -25460,9 +23476,6 @@ func (m *Member) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25474,7 +23487,7 @@ 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 { @@ -25505,7 +23518,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 } @@ -25533,7 +23546,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 } @@ -25542,9 +23555,6 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25561,7 +23571,7 @@ 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 { @@ -25592,7 +23602,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 } @@ -25620,7 +23630,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 } @@ -25629,9 +23639,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25656,7 +23663,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 } @@ -25665,9 +23672,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25690,7 +23694,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 } @@ -25699,9 +23703,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25726,7 +23727,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 } @@ -25735,9 +23736,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25762,7 +23760,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 } @@ -25771,9 +23769,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25794,7 +23789,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 } @@ -25811,7 +23806,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 } @@ -25821,9 +23816,6 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPdpb - } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -25840,7 +23832,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 } @@ -25849,7 +23841,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { + if mapmsglen < 0 { return ErrInvalidLengthPdpb } if postmsgIndex > l { @@ -25866,7 +23858,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 { @@ -25883,7 +23875,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) > l { @@ -25914,7 +23906,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 } @@ -25942,7 +23934,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 } @@ -25951,9 +23943,6 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -25970,7 +23959,7 @@ 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 { @@ -26001,7 +23990,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 } @@ -26029,7 +24018,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 } @@ -26038,9 +24027,6 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26063,7 +24049,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 } @@ -26080,7 +24066,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 } @@ -26089,16 +24075,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 { @@ -26110,7 +24089,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 } @@ -26134,7 +24113,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 } @@ -26144,9 +24123,6 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26158,7 +24134,7 @@ 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 { @@ -26189,7 +24165,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 } @@ -26217,7 +24193,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 } @@ -26226,9 +24202,6 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26253,7 +24226,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 } @@ -26264,7 +24237,7 @@ 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 { @@ -26295,7 +24268,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 } @@ -26323,7 +24296,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 } @@ -26332,9 +24305,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26359,7 +24329,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 } @@ -26368,9 +24338,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26395,7 +24362,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 } @@ -26404,9 +24371,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26431,7 +24395,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 } @@ -26440,9 +24404,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26465,7 +24426,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 } @@ -26474,9 +24435,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26499,7 +24457,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 } @@ -26518,7 +24476,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 } @@ -26537,7 +24495,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 } @@ -26556,7 +24514,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 } @@ -26575,7 +24533,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 } @@ -26594,7 +24552,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 } @@ -26603,9 +24561,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26630,7 +24585,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 } @@ -26649,7 +24604,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 } @@ -26668,7 +24623,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 } @@ -26677,9 +24632,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26704,7 +24656,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 } @@ -26713,9 +24665,6 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26740,7 +24689,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 } @@ -26759,7 +24708,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 } @@ -26770,7 +24719,7 @@ 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 { @@ -26801,7 +24750,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 } @@ -26829,7 +24778,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 } @@ -26838,9 +24787,6 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26865,7 +24811,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 } @@ -26876,7 +24822,7 @@ 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 { @@ -26907,7 +24853,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 } @@ -26935,7 +24881,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 } @@ -26944,9 +24890,6 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -26961,7 +24904,7 @@ 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 { @@ -26992,7 +24935,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 } @@ -27020,7 +24963,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 } @@ -27029,9 +24972,6 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27056,7 +24996,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 } @@ -27065,9 +25005,6 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27082,7 +25019,7 @@ 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 { @@ -27113,7 +25050,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 } @@ -27141,7 +25078,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 } @@ -27150,9 +25087,6 @@ func (m *Merge) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27169,7 +25103,7 @@ 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 { @@ -27200,7 +25134,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 } @@ -27228,7 +25162,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 } @@ -27247,7 +25181,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 } @@ -27256,9 +25190,6 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27271,7 +25202,7 @@ 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 { @@ -27302,7 +25233,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 } @@ -27330,7 +25261,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 } @@ -27349,7 +25280,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 } @@ -27361,7 +25292,7 @@ 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 { @@ -27392,7 +25323,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 } @@ -27420,7 +25351,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 } @@ -27429,9 +25360,6 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27446,7 +25374,7 @@ 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 { @@ -27477,7 +25405,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 } @@ -27505,7 +25433,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 } @@ -27514,9 +25442,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27541,7 +25466,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 } @@ -27550,9 +25475,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27577,7 +25499,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 } @@ -27586,9 +25508,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27613,7 +25532,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 } @@ -27632,7 +25551,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 } @@ -27641,9 +25560,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27668,7 +25584,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 } @@ -27677,9 +25593,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27704,7 +25617,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 } @@ -27713,9 +25626,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27740,7 +25650,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 } @@ -27749,9 +25659,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27776,7 +25683,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 } @@ -27785,9 +25692,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27812,7 +25716,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 } @@ -27821,9 +25725,6 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27840,7 +25741,7 @@ 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 { @@ -27871,7 +25772,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 } @@ -27899,7 +25800,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 } @@ -27908,9 +25809,6 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27935,7 +25833,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 } @@ -27944,9 +25842,6 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -27963,7 +25858,7 @@ 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 { @@ -27994,7 +25889,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 } @@ -28022,7 +25917,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 } @@ -28031,9 +25926,6 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28058,7 +25950,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 } @@ -28075,7 +25967,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 } @@ -28092,7 +25984,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 } @@ -28101,23 +25993,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 { @@ -28129,7 +26007,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 } @@ -28145,7 +26023,7 @@ 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 { @@ -28176,7 +26054,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 } @@ -28204,7 +26082,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 } @@ -28213,9 +26091,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28240,7 +26115,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 } @@ -28249,9 +26124,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28276,7 +26148,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 } @@ -28285,9 +26157,6 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28304,7 +26173,7 @@ 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 { @@ -28335,7 +26204,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 } @@ -28363,7 +26232,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 } @@ -28372,9 +26241,6 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28391,7 +26257,7 @@ 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 { @@ -28422,7 +26288,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 } @@ -28450,7 +26316,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 } @@ -28459,9 +26325,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28486,7 +26349,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 } @@ -28495,9 +26358,6 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28522,7 +26382,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 } @@ -28533,7 +26393,7 @@ 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 { @@ -28564,7 +26424,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 } @@ -28592,7 +26452,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 } @@ -28609,7 +26469,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 } @@ -28626,7 +26486,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 } @@ -28635,23 +26495,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 { @@ -28663,7 +26509,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 } @@ -28679,7 +26525,7 @@ 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 { @@ -28710,7 +26556,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 } @@ -28738,7 +26584,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 } @@ -28747,9 +26593,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28774,7 +26617,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 } @@ -28783,9 +26626,6 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28800,7 +26640,7 @@ 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 { @@ -28831,7 +26671,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 } @@ -28859,7 +26699,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 } @@ -28868,9 +26708,6 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28895,7 +26732,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 } @@ -28904,9 +26741,6 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -28921,7 +26755,7 @@ 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 { @@ -28952,7 +26786,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 } @@ -28980,7 +26814,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 } @@ -28989,9 +26823,6 @@ func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29008,7 +26839,7 @@ 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 { @@ -29039,7 +26870,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 } @@ -29067,7 +26898,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 } @@ -29086,7 +26917,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 } @@ -29097,7 +26928,7 @@ 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 { @@ -29128,7 +26959,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 } @@ -29156,7 +26987,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 } @@ -29166,9 +26997,6 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29188,7 +27016,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 } @@ -29199,7 +27027,7 @@ 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 { @@ -29230,7 +27058,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 } @@ -29258,7 +27086,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 } @@ -29277,7 +27105,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 } @@ -29296,7 +27124,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 } @@ -29315,7 +27143,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 } @@ -29324,9 +27152,6 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29351,7 +27176,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 } @@ -29370,7 +27195,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 } @@ -29381,7 +27206,7 @@ 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 { @@ -29412,7 +27237,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 } @@ -29440,7 +27265,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 } @@ -29459,7 +27284,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 } @@ -29478,7 +27303,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 } @@ -29497,7 +27322,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 } @@ -29516,7 +27341,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 } @@ -29535,7 +27360,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 } @@ -29554,7 +27379,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 } @@ -29573,7 +27398,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 } @@ -29592,7 +27417,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 } @@ -29612,7 +27437,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 } @@ -29631,7 +27456,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 } @@ -29650,7 +27475,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 } @@ -29669,7 +27494,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 } @@ -29688,7 +27513,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 } @@ -29707,7 +27532,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 } @@ -29716,9 +27541,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29743,7 +27565,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 } @@ -29752,9 +27574,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29777,7 +27596,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 } @@ -29786,9 +27605,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29811,7 +27627,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 } @@ -29820,9 +27636,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29845,7 +27658,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 } @@ -29854,9 +27667,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29879,7 +27689,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 } @@ -29888,9 +27698,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29913,7 +27720,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 } @@ -29922,9 +27729,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -29949,7 +27753,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 } @@ -29966,7 +27770,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 } @@ -29983,7 +27787,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 } @@ -29992,23 +27796,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 { @@ -30020,7 +27810,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 } @@ -30044,7 +27834,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 } @@ -30064,7 +27854,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 } @@ -30073,9 +27863,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30098,7 +27885,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 } @@ -30107,9 +27894,6 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30134,7 +27918,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 } @@ -30154,7 +27938,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 } @@ -30173,7 +27957,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 } @@ -30184,7 +27968,7 @@ 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 { @@ -30215,7 +27999,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 } @@ -30279,7 +28063,7 @@ 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 { @@ -30310,7 +28094,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 } @@ -30338,7 +28122,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 } @@ -30357,7 +28141,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 } @@ -30376,7 +28160,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 } @@ -30395,7 +28179,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 } @@ -30414,7 +28198,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 } @@ -30425,7 +28209,7 @@ 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 { @@ -30456,7 +28240,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 } @@ -30484,7 +28268,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 } @@ -30493,9 +28277,6 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30520,7 +28301,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 } @@ -30529,9 +28310,6 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30556,7 +28334,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 } @@ -30576,7 +28354,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 } @@ -30588,7 +28366,7 @@ 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 { @@ -30619,7 +28397,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 } @@ -30647,7 +28425,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 } @@ -30656,9 +28434,6 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30681,7 +28456,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 } @@ -30692,7 +28467,7 @@ 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 { @@ -30723,7 +28498,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 } @@ -30751,7 +28526,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 } @@ -30760,9 +28535,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30787,7 +28559,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 } @@ -30796,9 +28568,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30823,7 +28592,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 } @@ -30832,9 +28601,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30859,7 +28625,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 } @@ -30868,9 +28634,6 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30887,7 +28650,7 @@ 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 { @@ -30918,7 +28681,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 } @@ -30946,7 +28709,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 } @@ -30965,7 +28728,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 } @@ -30974,9 +28737,6 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -30991,7 +28751,7 @@ 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 { @@ -31022,7 +28782,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 } @@ -31048,7 +28808,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 } @@ -31065,7 +28825,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 } @@ -31074,23 +28834,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 { @@ -31102,7 +28848,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 } @@ -31124,7 +28870,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 } @@ -31141,7 +28887,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 } @@ -31150,23 +28896,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 { @@ -31178,7 +28910,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 } @@ -31194,7 +28926,7 @@ 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 { @@ -31225,7 +28957,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 } @@ -31253,7 +28985,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 } @@ -31262,9 +28994,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31287,7 +29016,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 } @@ -31296,9 +29025,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31319,7 +29045,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 } @@ -31336,7 +29062,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 } @@ -31345,23 +29071,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 { @@ -31373,7 +29085,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 } @@ -31397,7 +29109,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 } @@ -31406,9 +29118,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31431,7 +29140,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 } @@ -31440,9 +29149,6 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31467,7 +29173,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 } @@ -31478,7 +29184,7 @@ 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 { @@ -31509,7 +29215,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 } @@ -31535,7 +29241,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 } @@ -31552,7 +29258,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 } @@ -31561,23 +29267,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 { @@ -31589,7 +29281,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 } @@ -31605,7 +29297,7 @@ 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 { @@ -31636,7 +29328,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 } @@ -31664,7 +29356,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 } @@ -31675,7 +29367,7 @@ 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 { @@ -31706,7 +29398,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 } @@ -31734,7 +29426,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 } @@ -31743,9 +29435,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31770,7 +29459,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 } @@ -31779,9 +29468,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31806,7 +29492,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 } @@ -31816,9 +29502,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31838,7 +29521,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 } @@ -31858,7 +29541,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 } @@ -31867,9 +29550,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31894,7 +29574,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 } @@ -31903,9 +29583,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31930,7 +29607,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 } @@ -31939,9 +29616,6 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -31958,7 +29632,7 @@ 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 { @@ -31989,7 +29663,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 } @@ -32017,7 +29691,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 } @@ -32026,9 +29700,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32053,7 +29724,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 } @@ -32072,7 +29743,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 } @@ -32081,9 +29752,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32108,7 +29776,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 } @@ -32117,9 +29785,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32144,7 +29809,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 } @@ -32154,9 +29819,6 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32174,7 +29836,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 } @@ -32191,7 +29853,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 } @@ -32200,23 +29862,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 { @@ -32228,7 +29876,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 } @@ -32252,7 +29900,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 } @@ -32271,7 +29919,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 } @@ -32283,7 +29931,7 @@ 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 { @@ -32314,7 +29962,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 } @@ -32342,7 +29990,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 } @@ -32351,9 +29999,6 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32378,7 +30023,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 } @@ -32389,7 +30034,7 @@ 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 { @@ -32420,7 +30065,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 } @@ -32448,7 +30093,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 } @@ -32457,9 +30102,6 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32476,7 +30118,7 @@ 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 { @@ -32507,7 +30149,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 } @@ -32535,7 +30177,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 } @@ -32544,9 +30186,6 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32571,7 +30210,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 } @@ -32582,7 +30221,7 @@ 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 { @@ -32613,7 +30252,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 } @@ -32641,7 +30280,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 } @@ -32650,9 +30289,6 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32677,7 +30313,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 } @@ -32688,7 +30324,7 @@ 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 { @@ -32719,7 +30355,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 } @@ -32747,7 +30383,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 } @@ -32756,9 +30392,6 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32783,7 +30416,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 } @@ -32794,7 +30427,7 @@ 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 { @@ -32825,7 +30458,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 } @@ -32853,7 +30486,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 } @@ -32862,9 +30495,6 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32889,7 +30519,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 } @@ -32898,9 +30528,6 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -32923,7 +30550,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 } @@ -32942,7 +30569,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 } @@ -32953,7 +30580,7 @@ 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 { @@ -32984,7 +30611,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 } @@ -33012,7 +30639,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 } @@ -33021,9 +30648,6 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33048,7 +30672,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 } @@ -33057,9 +30681,6 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33082,7 +30703,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 } @@ -33101,7 +30722,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 } @@ -33112,7 +30733,7 @@ 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 { @@ -33143,7 +30764,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 } @@ -33171,7 +30792,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 } @@ -33180,9 +30801,6 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33207,7 +30825,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 } @@ -33218,7 +30836,7 @@ 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 { @@ -33249,7 +30867,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 } @@ -33277,7 +30895,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 } @@ -33286,9 +30904,6 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33313,7 +30928,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 } @@ -33324,7 +30939,7 @@ 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 { @@ -33355,7 +30970,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 } @@ -33383,7 +30998,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 } @@ -33392,9 +31007,6 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33419,7 +31031,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 } @@ -33430,7 +31042,7 @@ 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 { @@ -33461,7 +31073,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 } @@ -33489,7 +31101,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 } @@ -33508,7 +31120,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 } @@ -33527,7 +31139,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 } @@ -33538,7 +31150,7 @@ 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 { @@ -33569,7 +31181,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 } @@ -33597,7 +31209,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 } @@ -33606,9 +31218,6 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33633,7 +31242,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 } @@ -33642,9 +31251,6 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33667,7 +31273,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 } @@ -33678,7 +31284,7 @@ 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 { @@ -33709,7 +31315,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 } @@ -33737,7 +31343,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 } @@ -33746,9 +31352,6 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33773,7 +31376,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 } @@ -33792,7 +31395,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 } @@ -33803,7 +31406,7 @@ 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 { @@ -33834,7 +31437,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 } @@ -33862,7 +31465,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 } @@ -33871,9 +31474,6 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -33898,7 +31498,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 } @@ -33909,7 +31509,7 @@ 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 { @@ -33940,7 +31540,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 } @@ -33968,7 +31568,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 } @@ -33977,9 +31577,6 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34004,7 +31601,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 } @@ -34023,7 +31620,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 } @@ -34032,9 +31629,6 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34057,7 +31651,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 } @@ -34076,7 +31670,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 } @@ -34087,7 +31681,7 @@ 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 { @@ -34118,7 +31712,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 } @@ -34146,7 +31740,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 } @@ -34155,9 +31749,6 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34182,7 +31773,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 } @@ -34191,9 +31782,6 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34216,7 +31804,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 } @@ -34235,7 +31823,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 } @@ -34246,7 +31834,7 @@ 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 { @@ -34277,7 +31865,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 } @@ -34305,7 +31893,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 } @@ -34314,9 +31902,6 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34333,7 +31918,7 @@ 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 { @@ -34364,7 +31949,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 } @@ -34392,7 +31977,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 } @@ -34411,7 +31996,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 } @@ -34422,7 +32007,7 @@ 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 { @@ -34453,7 +32038,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 } @@ -34481,7 +32066,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 } @@ -34490,9 +32075,6 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34517,7 +32099,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 } @@ -34526,9 +32108,6 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34551,7 +32130,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 } @@ -34562,7 +32141,7 @@ 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 { @@ -34593,7 +32172,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 } @@ -34621,7 +32200,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 } @@ -34640,7 +32219,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 } @@ -34659,7 +32238,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 } @@ -34678,7 +32257,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 } @@ -34689,7 +32268,7 @@ 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 { @@ -34720,7 +32299,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 } @@ -34748,7 +32327,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 } @@ -34757,9 +32336,6 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34784,7 +32360,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 } @@ -34793,9 +32369,6 @@ func (m *SyncRegionRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34820,7 +32393,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 } @@ -34831,7 +32404,7 @@ 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 { @@ -34862,7 +32435,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 } @@ -34890,7 +32463,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 } @@ -34899,9 +32472,6 @@ func (m *PeersStats) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -34916,7 +32486,7 @@ 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 { @@ -34947,7 +32517,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 } @@ -34975,7 +32545,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 } @@ -34984,9 +32554,6 @@ func (m *Peers) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35001,7 +32568,7 @@ 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 { @@ -35032,7 +32599,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 } @@ -35060,7 +32627,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 } @@ -35069,9 +32636,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35096,7 +32660,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 } @@ -35105,9 +32669,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35130,7 +32691,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 } @@ -35149,7 +32710,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 } @@ -35158,9 +32719,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35183,7 +32741,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 } @@ -35192,9 +32750,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35217,7 +32772,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 } @@ -35226,9 +32781,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35251,7 +32803,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 } @@ -35260,9 +32812,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35285,7 +32834,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 } @@ -35294,9 +32843,6 @@ func (m *SyncRegionResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35311,7 +32857,7 @@ 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 { @@ -35342,7 +32888,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 } @@ -35370,7 +32916,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 } @@ -35379,9 +32925,6 @@ func (m *GetOperatorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35406,7 +32949,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 } @@ -35417,7 +32960,7 @@ 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 { @@ -35448,7 +32991,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 } @@ -35476,7 +33019,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 } @@ -35485,9 +33028,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35512,7 +33052,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 } @@ -35531,7 +33071,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 } @@ -35540,9 +33080,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35565,7 +33102,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 } @@ -35584,7 +33121,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 } @@ -35593,9 +33130,6 @@ func (m *GetOperatorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35610,7 +33144,7 @@ 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 { @@ -35641,7 +33175,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 } @@ -35669,7 +33203,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 } @@ -35678,9 +33212,6 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35705,7 +33236,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 } @@ -35714,9 +33245,6 @@ func (m *SyncMaxTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35741,7 +33269,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 } @@ -35753,7 +33281,7 @@ 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 { @@ -35784,7 +33312,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 } @@ -35812,7 +33340,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 } @@ -35821,9 +33349,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35848,7 +33373,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 } @@ -35857,9 +33382,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35884,7 +33406,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 } @@ -35894,9 +33416,6 @@ func (m *SyncMaxTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -35908,7 +33427,7 @@ 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 { @@ -35939,7 +33458,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 } @@ -35967,7 +33486,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 } @@ -35976,9 +33495,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36003,7 +33519,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 } @@ -36012,9 +33528,6 @@ func (m *SplitRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36035,7 +33548,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 } @@ -36046,7 +33559,7 @@ 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 { @@ -36077,7 +33590,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 } @@ -36105,7 +33618,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 } @@ -36114,9 +33627,6 @@ func (m *SplitRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36141,7 +33651,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 } @@ -36158,7 +33668,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 } @@ -36175,7 +33685,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 } @@ -36184,23 +33694,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 { @@ -36212,7 +33708,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 } @@ -36228,7 +33724,7 @@ 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 { @@ -36259,7 +33755,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 } @@ -36287,7 +33783,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 } @@ -36296,9 +33792,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36323,7 +33816,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 } @@ -36332,9 +33825,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36355,7 +33845,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 } @@ -36365,9 +33855,6 @@ func (m *SplitAndScatterRegionsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36387,7 +33874,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 } @@ -36398,7 +33885,7 @@ 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 { @@ -36429,7 +33916,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 } @@ -36457,7 +33944,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 } @@ -36466,9 +33953,6 @@ func (m *SplitAndScatterRegionsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36493,7 +33977,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 } @@ -36512,7 +33996,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 } @@ -36529,7 +34013,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 } @@ -36546,7 +34030,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 } @@ -36555,23 +34039,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 { @@ -36583,7 +34053,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 } @@ -36599,7 +34069,7 @@ 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 { @@ -36630,7 +34100,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 } @@ -36658,7 +34128,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 } @@ -36667,9 +34137,6 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36694,7 +34161,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 } @@ -36704,9 +34171,6 @@ func (m *GetDCLocationInfoRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36718,7 +34182,7 @@ 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 { @@ -36749,7 +34213,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 } @@ -36777,7 +34241,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 } @@ -36786,9 +34250,6 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36813,7 +34274,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 } @@ -36832,7 +34293,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 } @@ -36841,9 +34302,6 @@ func (m *GetDCLocationInfoResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -36860,7 +34318,7 @@ 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 { @@ -36891,7 +34349,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 } @@ -36919,7 +34377,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 } @@ -36938,7 +34396,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 } @@ -36957,7 +34415,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 } @@ -36976,7 +34434,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 } @@ -36995,7 +34453,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 } @@ -37014,7 +34472,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 } @@ -37033,7 +34491,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 } @@ -37052,7 +34510,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 } @@ -37071,7 +34529,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 } @@ -37090,7 +34548,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 } @@ -37109,7 +34567,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 } @@ -37120,7 +34578,7 @@ 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 { @@ -37151,7 +34609,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 } @@ -37179,7 +34637,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 } @@ -37188,9 +34646,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37215,7 +34670,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 } @@ -37224,9 +34679,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37251,7 +34703,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 } @@ -37260,9 +34712,6 @@ func (m *ReportBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37279,7 +34728,7 @@ 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 { @@ -37310,7 +34759,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 } @@ -37338,7 +34787,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 } @@ -37347,9 +34796,6 @@ func (m *ReportBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37366,7 +34812,7 @@ 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 { @@ -37397,7 +34843,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 } @@ -37425,7 +34871,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 } @@ -37434,9 +34880,6 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37461,16 +34904,16 @@ 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 } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MinWatermark", wireType) } - m.MinResolvedTs = 0 + m.MinWatermark = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -37480,7 +34923,7 @@ func (m *ReportMinResolvedTsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MinResolvedTs |= uint64(b&0x7F) << shift + m.MinWatermark |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -37491,7 +34934,7 @@ 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 { @@ -37522,7 +34965,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 } @@ -37550,7 +34993,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 } @@ -37559,9 +35002,212 @@ func (m *ReportMinResolvedTsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportMinWatermarkRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReportMinWatermarkRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportMinWatermarkRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + m.StoreId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StoreId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinWatermark", wireType) + } + m.MinWatermark = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinWatermark |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { return ErrInvalidLengthPdpb } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportMinWatermarkResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReportMinWatermarkResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportMinWatermarkResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } @@ -37578,7 +35224,7 @@ 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 { @@ -37609,7 +35255,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 } @@ -37637,7 +35283,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 } @@ -37646,9 +35292,6 @@ func (m *SetExternalTimestampRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37673,7 +35316,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 } @@ -37684,7 +35327,7 @@ 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 { @@ -37715,7 +35358,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 } @@ -37743,7 +35386,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 } @@ -37752,9 +35395,6 @@ func (m *SetExternalTimestampResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37771,7 +35411,7 @@ 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 { @@ -37802,7 +35442,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 } @@ -37830,7 +35470,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 } @@ -37839,9 +35479,6 @@ func (m *GetExternalTimestampRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37858,7 +35495,7 @@ 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 { @@ -37889,7 +35526,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 } @@ -37917,7 +35554,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 } @@ -37926,9 +35563,6 @@ func (m *GetExternalTimestampResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -37953,7 +35587,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 } @@ -37964,7 +35598,7 @@ 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 { @@ -37995,7 +35629,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 } @@ -38023,7 +35657,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 } @@ -38032,9 +35666,6 @@ func (m *GetMinTSRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38051,7 +35682,7 @@ 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 { @@ -38082,7 +35713,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 } @@ -38110,7 +35741,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 } @@ -38119,9 +35750,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38146,7 +35774,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 } @@ -38155,9 +35783,6 @@ func (m *GetMinTSResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPdpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -38174,7 +35799,7 @@ 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 { @@ -38193,7 +35818,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 { @@ -38225,8 +35849,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 { @@ -38243,34 +35869,448 @@ 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", fileDescriptor_pdpb_8ce345f0744a630b) } + +var fileDescriptor_pdpb_8ce345f0744a630b = []byte{ + // 6212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3c, 0x4d, 0x73, 0x23, 0x49, + 0x56, 0x2e, 0x7d, 0xd8, 0xd6, 0xd3, 0x87, 0xe5, 0x6c, 0x77, 0x5b, 0xad, 0xfe, 0xf2, 0x54, 0xf7, + 0x0c, 0x3d, 0xbd, 0x33, 0x3d, 0x33, 0x3d, 0xb3, 0xcb, 0xec, 0xc0, 0x4e, 0x20, 0x5b, 0x6a, 0x8f, + 0xa6, 0xfd, 0x21, 0x4a, 0x72, 0xf7, 0x0e, 0x6c, 0x50, 0x51, 0xae, 0x4a, 0xdb, 0xb5, 0x96, 0xaa, + 0x34,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, 0x86, 0xd4, 0x48, 0x86, 0x27, 0x63, 0x62, 0x9b, 0x46, 0x9f, 0x55, 0x99, 0xd5, + 0x82, 0x6f, 0x2a, 0x74, 0xdf, 0x3d, 0x66, 0x28, 0x6e, 0x3f, 0xf2, 0x93, 0xd6, 0x41, 0x46, 0x47, + 0x47, 0xf6, 0x73, 0xfd, 0xd0, 0xf6, 0x09, 0xab, 0xa3, 0xac, 0x01, 0x07, 0x6d, 0xda, 0x3e, 0x51, + 0x7f, 0x43, 0x81, 0x22, 0x6b, 0x56, 0x60, 0xb9, 0xd1, 0x76, 0xcd, 0x75, 0x02, 0x33, 0x1a, 0xf6, + 0x36, 0x14, 0x7c, 0x29, 0xb7, 0x30, 0x3c, 0xa1, 0xed, 0xa0, 0x39, 0xda, 0x84, 0x42, 0xfd, 0x9e, + 0x02, 0xd5, 0x4d, 0xd7, 0xf5, 0x89, 0xef, 0x19, 0xc3, 0x54, 0xfa, 0xbd, 0x0b, 0x79, 0x42, 0x9d, + 0x83, 0xb0, 0x82, 0xf2, 0x43, 0x31, 0x03, 0x30, 0x8f, 0xa1, 0x71, 0x1c, 0x7a, 0x03, 0x16, 0x3d, + 0x7c, 0x2c, 0x35, 0x5d, 0x7c, 0x54, 0x91, 0x54, 0x1a, 0x83, 0x6a, 0x02, 0x4b, 0x5d, 0xee, 0x6a, + 0x48, 0x9c, 0x54, 0x7a, 0xe9, 0x01, 0x0a, 0x4f, 0x29, 0xc4, 0x37, 0xfc, 0x11, 0x11, 0xd2, 0xbd, + 0xfe, 0x30, 0x61, 0xb6, 0xd1, 0x26, 0xa0, 0x2e, 0x23, 0xd6, 0x56, 0xbd, 0x38, 0x48, 0x6d, 0xc2, + 0xd5, 0x36, 0x09, 0x44, 0x1b, 0x62, 0x2b, 0x8d, 0xb2, 0xd4, 0x6f, 0xc2, 0xb5, 0x38, 0x97, 0x54, + 0x6d, 0x54, 0xa1, 0x74, 0x18, 0xe2, 0xc2, 0x5a, 0xb7, 0xac, 0x45, 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0xfb, 0xd8, 0x61, 0x3e, 0x27, + 0xa7, 0x95, 0x18, 0xf0, 0x19, 0x87, 0xd1, 0x65, 0x2b, 0x27, 0xf2, 0xb0, 0x61, 0x31, 0x8f, 0x93, + 0xd3, 0x0a, 0x0c, 0xa2, 0x61, 0x83, 0x2d, 0x85, 0x4e, 0xf1, 0x78, 0xc2, 0x62, 0x99, 0xeb, 0x97, + 0xc2, 0x24, 0x87, 0x1b, 0x50, 0x60, 0x24, 0x8c, 0x41, 0x81, 0x3b, 0x57, 0x0a, 0x60, 0xe5, 0xdf, + 0x84, 0xaa, 0x31, 0x1c, 0x7a, 0xee, 0x73, 0x7b, 0x60, 0xf8, 0x58, 0x27, 0xf6, 0xb7, 0x70, 0x0d, + 0x18, 0xcd, 0x4a, 0x08, 0xde, 0xb5, 0xbf, 0x85, 0xd1, 0x43, 0x58, 0xb6, 0x1d, 0x1f, 0x7b, 0x67, + 0x46, 0xbf, 0x56, 0x62, 0x9a, 0x43, 0x93, 0x0c, 0x4d, 0x5b, 0x60, 0xb4, 0x80, 0x26, 0xce, 0x9a, + 0x56, 0x59, 0x2b, 0x4f, 0xb1, 0x7e, 0x82, 0xc7, 0x84, 0xce, 0x09, 0x3e, 0xf6, 0x06, 0xb5, 0x0a, + 0x43, 0xb3, 0xff, 0xe8, 0x57, 0x12, 0x43, 0xa6, 0x15, 0x56, 0xf1, 0x97, 0x92, 0x43, 0x26, 0xbe, + 0x2e, 0xbf, 0x38, 0x70, 0x42, 0xef, 0x41, 0xf1, 0xf3, 0x11, 0xf6, 0xc6, 0x3a, 0x0f, 0x32, 0xab, + 0xe1, 0x20, 0xf3, 0x97, 0x29, 0x82, 0x77, 0x2f, 0x7c, 0x1e, 0xfc, 0xa7, 0x5a, 0x34, 0x87, 0x23, + 0x7d, 0xc4, 0xd2, 0x7c, 0xab, 0x5c, 0x8b, 0xe6, 0x70, 0x74, 0x40, 0xbf, 0xd1, 0x43, 0xb8, 0x12, + 0x69, 0xea, 0x19, 0x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 0x93, 0x89, 0x98, 0xb8, 0x60, + 0x13, 0x51, 0x4e, 0xed, 0x01, 0xda, 0x34, 0x7c, 0xf3, 0x24, 0xca, 0xed, 0x63, 0xa8, 0x12, 0x06, + 0x90, 0x05, 0x03, 0x55, 0x0b, 0x1f, 0x16, 0x21, 0xd7, 0x56, 0x48, 0xf8, 0x13, 0x13, 0xf5, 0x4f, + 0x72, 0xb0, 0x3e, 0xe5, 0x14, 0x53, 0xae, 0xbb, 0xa5, 0xd5, 0xb0, 0x4e, 0xcb, 0x84, 0x6d, 0x3d, + 0xd4, 0xdf, 0xc2, 0x5c, 0x98, 0x29, 0x7e, 0x0d, 0x56, 0x7c, 0xd1, 0xe5, 0x7a, 0x3f, 0x61, 0x7b, + 0x27, 0x6a, 0x0f, 0x5a, 0xc5, 0x8f, 0xda, 0x47, 0x24, 0x76, 0xcb, 0xc5, 0x62, 0xb7, 0xaf, 0x04, + 0x61, 0x00, 0x1e, 0xba, 0xe6, 0x09, 0x5b, 0x8c, 0x51, 0xa5, 0x44, 0xfa, 0xbc, 0x45, 0x51, 0x32, + 0x16, 0x60, 0x1f, 0x74, 0x15, 0xc1, 0xed, 0x80, 0x37, 0x63, 0x31, 0xc1, 0xf6, 0x80, 0x13, 0x74, + 0xf8, 0xbc, 0x93, 0x1f, 0x50, 0xeb, 0x12, 0x41, 0x6b, 0x51, 0x4e, 0xd8, 0xde, 0x31, 0xd6, 0x38, + 0x06, 0x7d, 0x00, 0x25, 0x42, 0xed, 0x49, 0x17, 0xb3, 0xc6, 0x32, 0xa3, 0x94, 0x73, 0xe3, 0xc4, + 0xd2, 0xb4, 0x22, 0x09, 0x99, 0xdd, 0x87, 0x50, 0x09, 0xa9, 0x53, 0x3f, 0x7b, 0xc4, 0x5c, 0x6a, + 0xe0, 0x0b, 0xc3, 0xc3, 0x4c, 0x2b, 0x99, 0xe1, 0x41, 0xb7, 0x95, 0x60, 0x12, 0xc0, 0xca, 0xd6, + 0x78, 0xd9, 0x69, 0x33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 0xc0, 0x37, 0xa0, 0x14, 0x5e, 0x36, + 0xd1, 0x30, 0x95, 0xe7, 0x9a, 0x26, 0xbb, 0x60, 0x5c, 0xf7, 0x15, 0x06, 0x9e, 0xec, 0xe9, 0xdd, + 0x85, 0x32, 0x76, 0xac, 0x10, 0x19, 0x1f, 0x55, 0x25, 0xec, 0x58, 0x01, 0x91, 0xfa, 0x01, 0x80, + 0x86, 0x4d, 0xd7, 0xb3, 0x3a, 0x86, 0xed, 0x25, 0x84, 0x33, 0x91, 0x8d, 0xdf, 0x9c, 0x08, 0x60, + 0xd4, 0x1f, 0x29, 0xb0, 0x2c, 0xd7, 0xb6, 0x51, 0x27, 0xae, 0xc4, 0x9c, 0x38, 0x43, 0x1a, 0x96, + 0x2e, 0x66, 0x55, 0x81, 0x34, 0x2c, 0xb6, 0x98, 0x63, 0x89, 0x56, 0xc3, 0xd2, 0xd9, 0x22, 0x95, + 0xd9, 0x5b, 0x4e, 0x63, 0xe4, 0x9b, 0x14, 0x10, 0x5f, 0x7b, 0xe5, 0x2e, 0xb1, 0xf6, 0x7a, 0x0d, + 0x4a, 0x62, 0x7d, 0xcb, 0x6b, 0xcc, 0x73, 0xab, 0x14, 0x30, 0x56, 0xe9, 0x5d, 0x28, 0x4b, 0x12, + 0x5e, 0xaf, 0x58, 0x4b, 0x0b, 0x20, 0xab, 0x5a, 0xfd, 0xf3, 0x02, 0xc0, 0x64, 0x0f, 0x21, 0xb2, + 0xcf, 0xa1, 0x44, 0xf6, 0x39, 0x50, 0x1d, 0x96, 0x4d, 0x63, 0x68, 0x98, 0xb6, 0x3f, 0x96, 0xed, + 0x93, 0xdf, 0xe8, 0x26, 0x14, 0x8c, 0x33, 0xc3, 0xee, 0x1b, 0x87, 0x7d, 0x2c, 0x9b, 0x17, 0x00, + 0xa8, 0xac, 0x42, 0x6f, 0x7c, 0xbc, 0xe5, 0xd8, 0x78, 0x13, 0x53, 0x19, 0x1b, 0x70, 0xe8, 0x2d, + 0x40, 0x44, 0x84, 0x0a, 0xc4, 0x31, 0x86, 0x82, 0x30, 0xcf, 0x08, 0xab, 0x02, 0xd3, 0x75, 0x8c, + 0x21, 0xa7, 0x7e, 0x17, 0xd6, 0x3c, 0x6c, 0x62, 0xfb, 0x2c, 0x46, 0xbf, 0xc8, 0xe8, 0x51, 0x80, + 0x9b, 0x94, 0xb8, 0x05, 0x30, 0xb1, 0x25, 0x36, 0x01, 0x96, 0xb5, 0x42, 0x60, 0x46, 0x62, 0xb1, + 0xda, 0x1f, 0xc7, 0xf8, 0x2d, 0x33, 0xba, 0x55, 0x89, 0x9a, 0xb0, 0x5b, 0x87, 0x25, 0x9b, 0xe8, + 0x87, 0x23, 0x32, 0x66, 0x53, 0xdd, 0xb2, 0xb6, 0x68, 0x93, 0xcd, 0x11, 0x19, 0x53, 0x2b, 0x18, + 0x11, 0x6c, 0x85, 0x83, 0x86, 0x65, 0x0a, 0x60, 0xd1, 0xc2, 0x54, 0x70, 0x53, 0x4c, 0x08, 0x6e, + 0xe2, 0xd1, 0x4b, 0x69, 0x3a, 0x7a, 0x89, 0xc6, 0x3f, 0xe5, 0x78, 0xfc, 0x13, 0x09, 0x6e, 0x2a, + 0xb1, 0xe0, 0x26, 0x1c, 0xb1, 0xac, 0x5c, 0x22, 0x62, 0x79, 0x07, 0x20, 0x58, 0xe3, 0xd3, 0xa8, + 0x20, 0xb4, 0x32, 0x9e, 0x0c, 0x27, 0xad, 0x20, 0x97, 0xfd, 0x04, 0x7d, 0x00, 0x65, 0x66, 0xea, + 0xb6, 0xab, 0x7b, 0x06, 0xb5, 0xba, 0xd5, 0x19, 0x65, 0x8a, 0x94, 0xac, 0xed, 0x6a, 0x94, 0x08, + 0x7d, 0x05, 0x2a, 0xb4, 0xc1, 0x78, 0x52, 0x0c, 0xcd, 0x28, 0xc6, 0xcc, 0x17, 0xcb, 0x72, 0xef, + 0x43, 0xc9, 0x1d, 0xea, 0x7d, 0xc3, 0xc7, 0x8e, 0x69, 0x63, 0x52, 0xb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0x6b, 0x82, 0x85, 0xd2, 0xd4, 0x76, 0x95, 0x5c, 0x28, 0x4d, 0xef, 0xed, 0x88, 0x89, + 0xa6, 0x09, 0xc5, 0xd0, 0x7e, 0x00, 0x9a, 0xac, 0xab, 0x62, 0x7b, 0x10, 0xf5, 0xeb, 0x09, 0x98, + 0x90, 0x73, 0x2e, 0x04, 0x39, 0x71, 0x39, 0xd5, 0xc4, 0xb3, 0xf5, 0xf5, 0xf5, 0x29, 0x78, 0x78, + 0x72, 0x0f, 0x27, 0x8e, 0xe5, 0xe4, 0x9e, 0x90, 0xd1, 0x96, 0x93, 0x7b, 0x52, 0x9e, 0x59, 0x5d, + 0x40, 0x18, 0xae, 0x25, 0x67, 0x51, 0xd1, 0xdd, 0x50, 0xb9, 0x59, 0x89, 0xe0, 0xfa, 0xbd, 0xf9, + 0x44, 0x61, 0xef, 0x30, 0x95, 0x56, 0x44, 0x93, 0xa1, 0x93, 0x98, 0xda, 0x94, 0xde, 0x61, 0x66, + 0x3e, 0x92, 0xf3, 0x9d, 0x7a, 0xd5, 0x53, 0xf2, 0x9d, 0xf5, 0xba, 0xa8, 0xe4, 0x3b, 0xf3, 0x39, + 0x50, 0xee, 0x08, 0xe2, 0x6f, 0x73, 0x4a, 0x47, 0x30, 0xe3, 0x15, 0x50, 0xe9, 0x08, 0x66, 0x3d, + 0xe9, 0xa9, 0x2e, 0xa0, 0xaf, 0xc3, 0xea, 0xd4, 0x53, 0xac, 0x52, 0xd8, 0x59, 0xaf, 0xbf, 0xd6, + 0xef, 0xcc, 0xc4, 0x87, 0xbc, 0xc0, 0x0e, 0x94, 0x23, 0x69, 0x34, 0x39, 0x2f, 0x24, 0xe5, 0x00, + 0xe5, 0xbc, 0x90, 0x98, 0x77, 0xa3, 0x46, 0x4e, 0x07, 0xe2, 0x74, 0x06, 0xab, 0x2b, 0x07, 0xe2, + 0xec, 0x3c, 0x9b, 0x1c, 0x88, 0x73, 0xd2, 0x5f, 0xea, 0x02, 0xfa, 0x4c, 0x5e, 0xe1, 0x0c, 0xe7, + 0x91, 0xa4, 0x3b, 0x9c, 0x99, 0xeb, 0xaa, 0x6f, 0xcc, 0x26, 0x08, 0xaf, 0xe6, 0x93, 0x92, 0x3d, + 0x72, 0x35, 0x3f, 0x27, 0xe5, 0x24, 0x57, 0xf3, 0xf3, 0x72, 0x45, 0xbc, 0x82, 0xed, 0x39, 0x15, + 0x6c, 0x5f, 0x5c, 0xc1, 0xf6, 0xfc, 0x0a, 0x78, 0xb8, 0xc0, 0x12, 0x2d, 0xa1, 0x70, 0x21, 0x9c, + 0xb8, 0x09, 0x85, 0x0b, 0x91, 0x7c, 0x8c, 0xba, 0xb0, 0xf9, 0xc6, 0x7f, 0xfc, 0xed, 0xb2, 0xf2, + 0x6f, 0x3f, 0xb9, 0xad, 0xfc, 0xfb, 0x4f, 0x6e, 0x2b, 0x3f, 0xfe, 0xc9, 0x6d, 0xe5, 0x07, 0xff, + 0x79, 0x7b, 0x01, 0xaa, 0xae, 0x77, 0xfc, 0xd0, 0xb7, 0x4f, 0xcf, 0x1e, 0x9e, 0x9e, 0xb1, 0xc7, + 0x86, 0x0f, 0x17, 0xd9, 0xcf, 0xfb, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x08, 0x58, 0xf3, 0x77, + 0xfa, 0x58, 0x00, 0x00, +} diff --git a/pkg/raft_cmdpb/raft_cmdpb.pb.go b/pkg/raft_cmdpb/raft_cmdpb.pb.go index 58e4e984fc..73ee48bfe7 100644 --- a/pkg/raft_cmdpb/raft_cmdpb.pb.go +++ b/pkg/raft_cmdpb/raft_cmdpb.pb.go @@ -7,14 +7,18 @@ import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" eraftpb "github.com/pingcap/kvproto/pkg/eraftpb" + errorpb "github.com/pingcap/kvproto/pkg/errorpb" + import_sstpb "github.com/pingcap/kvproto/pkg/import_sstpb" + kvrpcpb "github.com/pingcap/kvproto/pkg/kvrpcpb" + metapb "github.com/pingcap/kvproto/pkg/metapb" + raft_serverpb "github.com/pingcap/kvproto/pkg/raft_serverpb" ) @@ -27,7 +31,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type CmdType int32 @@ -54,7 +58,6 @@ var CmdType_name = map[int32]string{ 8: "IngestSST", 9: "ReadIndex", } - var CmdType_value = map[string]int32{ "Invalid": 0, "Get": 1, @@ -70,9 +73,8 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{0} } type AdminCmdType int32 @@ -116,7 +118,6 @@ var AdminCmdType_name = map[int32]string{ 14: "BatchSwitchWitness", 15: "UpdateGcPeer", } - var AdminCmdType_value = map[string]int32{ "InvalidAdmin": 0, "ChangePeer": 1, @@ -139,9 +140,8 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{1} } type StatusCmdType int32 @@ -157,7 +157,6 @@ var StatusCmdType_name = map[int32]string{ 1: "RegionLeader", 2: "RegionDetail", } - var StatusCmdType_value = map[string]int32{ "InvalidStatus": 0, "RegionLeader": 1, @@ -167,9 +166,8 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{2} } type GetRequest struct { @@ -184,7 +182,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{0} } func (m *GetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -194,15 +192,15 @@ func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(dst, src) } func (m *GetRequest) XXX_Size() int { return m.Size() @@ -238,7 +236,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{1} } func (m *GetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -248,15 +246,15 @@ func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(dst, src) } func (m *GetResponse) XXX_Size() int { return m.Size() @@ -287,7 +285,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{2} } func (m *PutRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -297,15 +295,15 @@ func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest.Merge(dst, src) } func (m *PutRequest) XXX_Size() int { return m.Size() @@ -347,7 +345,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{3} } func (m *PutResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -357,15 +355,15 @@ func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResponse.Merge(dst, src) } func (m *PutResponse) XXX_Size() int { return m.Size() @@ -388,7 +386,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{4} } func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -398,15 +396,15 @@ func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRequest.Merge(dst, src) } func (m *DeleteRequest) XXX_Size() int { return m.Size() @@ -441,7 +439,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{5} } func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -451,15 +449,15 @@ func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResponse.Merge(dst, src) } func (m *DeleteResponse) XXX_Size() int { return m.Size() @@ -484,7 +482,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{6} } func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -494,15 +492,15 @@ func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_DeleteRangeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeRequest.Merge(dst, src) } func (m *DeleteRangeRequest) XXX_Size() int { return m.Size() @@ -551,7 +549,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{7} } func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -561,15 +559,15 @@ func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_DeleteRangeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRangeResponse.Merge(dst, src) } func (m *DeleteRangeResponse) XXX_Size() int { return m.Size() @@ -590,7 +588,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{8} } func (m *SnapRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -600,15 +598,15 @@ func (m *SnapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SnapRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapRequest.Merge(dst, src) } func (m *SnapRequest) XXX_Size() int { return m.Size() @@ -620,7 +618,7 @@ func (m *SnapRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SnapRequest proto.InternalMessageInfo type SnapResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -630,7 +628,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{9} } func (m *SnapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -640,15 +638,15 @@ func (m *SnapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SnapResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapResponse.Merge(dst, src) } func (m *SnapResponse) XXX_Size() int { return m.Size() @@ -679,7 +677,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{10} } func (m *PrewriteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -689,15 +687,15 @@ func (m *PrewriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_PrewriteRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrewriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteRequest.Merge(dst, src) } func (m *PrewriteRequest) XXX_Size() int { return m.Size() @@ -739,7 +737,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{11} } func (m *PrewriteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -749,15 +747,15 @@ func (m *PrewriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_PrewriteResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrewriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrewriteResponse.Merge(dst, src) } func (m *PrewriteResponse) XXX_Size() int { return m.Size() @@ -769,7 +767,7 @@ func (m *PrewriteResponse) XXX_DiscardUnknown() { var xxx_messageInfo_PrewriteResponse proto.InternalMessageInfo type IngestSSTRequest struct { - Sst *import_sstpb.SSTMeta `protobuf:"bytes,1,opt,name=sst,proto3" json:"sst,omitempty"` + Sst *import_sstpb.SSTMeta `protobuf:"bytes,1,opt,name=sst" json:"sst,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -779,7 +777,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{12} } func (m *IngestSSTRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -789,15 +787,15 @@ func (m *IngestSSTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_IngestSSTRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IngestSSTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestSSTRequest.Merge(dst, src) } func (m *IngestSSTRequest) XXX_Size() int { return m.Size() @@ -825,7 +823,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{13} } func (m *IngestSSTResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -835,15 +833,15 @@ func (m *IngestSSTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_IngestSSTResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *IngestSSTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngestSSTResponse.Merge(dst, src) } func (m *IngestSSTResponse) XXX_Size() int { return m.Size() @@ -857,7 +855,7 @@ var xxx_messageInfo_IngestSSTResponse proto.InternalMessageInfo type ReadIndexRequest struct { // In replica read, leader uses start_ts and key_ranges to check memory locks. StartTs uint64 `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` - KeyRanges []*kvrpcpb.KeyRange `protobuf:"bytes,2,rep,name=key_ranges,json=keyRanges,proto3" json:"key_ranges,omitempty"` + KeyRanges []*kvrpcpb.KeyRange `protobuf:"bytes,2,rep,name=key_ranges,json=keyRanges" json:"key_ranges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -867,7 +865,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{14} } func (m *ReadIndexRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -877,15 +875,15 @@ func (m *ReadIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_ReadIndexRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReadIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexRequest.Merge(dst, src) } func (m *ReadIndexRequest) XXX_Size() int { return m.Size() @@ -913,7 +911,7 @@ 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"` + Locked *kvrpcpb.LockInfo `protobuf:"bytes,2,opt,name=locked" json:"locked,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -923,7 +921,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{15} } func (m *ReadIndexResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -933,15 +931,15 @@ func (m *ReadIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ReadIndexResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReadIndexResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadIndexResponse.Merge(dst, src) } func (m *ReadIndexResponse) XXX_Size() int { return m.Size() @@ -968,14 +966,14 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -985,7 +983,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{16} } func (m *Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -995,15 +993,15 @@ func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_Request.Merge(dst, src) } func (m *Request) XXX_Size() int { return m.Size() @@ -1079,14 +1077,14 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1096,7 +1094,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{17} } func (m *Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1106,15 +1104,15 @@ func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Response.Merge(dst, src) } func (m *Response) XXX_Size() int { return m.Size() @@ -1191,7 +1189,7 @@ 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"` + Peer *metapb.Peer `protobuf:"bytes,2,opt,name=peer" json:"peer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1201,7 +1199,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{18} } func (m *ChangePeerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1211,15 +1209,15 @@ func (m *ChangePeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ChangePeerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangePeerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerRequest.Merge(dst, src) } func (m *ChangePeerRequest) XXX_Size() int { return m.Size() @@ -1245,7 +1243,7 @@ func (m *ChangePeerRequest) GetPeer() *metapb.Peer { } type ChangePeerResponse struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1255,7 +1253,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{19} } func (m *ChangePeerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1265,15 +1263,15 @@ func (m *ChangePeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ChangePeerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangePeerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerResponse.Merge(dst, src) } func (m *ChangePeerResponse) XXX_Size() int { return m.Size() @@ -1292,7 +1290,7 @@ func (m *ChangePeerResponse) GetRegion() *metapb.Region { } type ChangePeerV2Request struct { - Changes []*ChangePeerRequest `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` + Changes []*ChangePeerRequest `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1302,7 +1300,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{20} } func (m *ChangePeerV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1312,15 +1310,15 @@ func (m *ChangePeerV2Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ChangePeerV2Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangePeerV2Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerV2Request.Merge(dst, src) } func (m *ChangePeerV2Request) XXX_Size() int { return m.Size() @@ -1339,7 +1337,7 @@ func (m *ChangePeerV2Request) GetChanges() []*ChangePeerRequest { } type ChangePeerV2Response struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1349,7 +1347,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{21} } func (m *ChangePeerV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1359,15 +1357,15 @@ func (m *ChangePeerV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_ChangePeerV2Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ChangePeerV2Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_ChangePeerV2Response.Merge(dst, src) } func (m *ChangePeerV2Response) XXX_Size() int { return m.Size() @@ -1394,7 +1392,7 @@ 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. @@ -1413,7 +1411,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{22} } func (m *SplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1423,15 +1421,15 @@ func (m *SplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SplitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRequest.Merge(dst, src) } func (m *SplitRequest) XXX_Size() int { return m.Size() @@ -1479,8 +1477,8 @@ 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"` + Left *metapb.Region `protobuf:"bytes,1,opt,name=left" json:"left,omitempty"` + Right *metapb.Region `protobuf:"bytes,2,opt,name=right" json:"right,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1490,7 +1488,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{23} } func (m *SplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1500,15 +1498,15 @@ func (m *SplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_SplitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitResponse.Merge(dst, src) } func (m *SplitResponse) XXX_Size() int { return m.Size() @@ -1534,7 +1532,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"` @@ -1552,7 +1550,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{24} } func (m *BatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1562,15 +1560,15 @@ func (m *BatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_BatchSplitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSplitRequest.Merge(dst, src) } func (m *BatchSplitRequest) XXX_Size() int { return m.Size() @@ -1603,7 +1601,7 @@ func (m *BatchSplitRequest) GetShareSourceRegionSize() bool { } type BatchSplitResponse struct { - Regions []*metapb.Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []*metapb.Region `protobuf:"bytes,1,rep,name=regions" json:"regions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1613,7 +1611,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{25} } func (m *BatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1623,15 +1621,15 @@ func (m *BatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_BatchSplitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSplitResponse.Merge(dst, src) } func (m *BatchSplitResponse) XXX_Size() int { return m.Size() @@ -1662,7 +1660,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{26} } func (m *CompactLogRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1672,15 +1670,15 @@ func (m *CompactLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_CompactLogRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactLogRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactLogRequest.Merge(dst, src) } func (m *CompactLogRequest) XXX_Size() int { return m.Size() @@ -1722,7 +1720,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{27} } func (m *CompactLogResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1732,15 +1730,15 @@ func (m *CompactLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CompactLogResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CompactLogResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactLogResponse.Merge(dst, src) } func (m *CompactLogResponse) XXX_Size() int { return m.Size() @@ -1752,8 +1750,8 @@ func (m *CompactLogResponse) XXX_DiscardUnknown() { var xxx_messageInfo_CompactLogResponse proto.InternalMessageInfo 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"` + Peer *metapb.Peer `protobuf:"bytes,1,opt,name=peer" json:"peer,omitempty"` + Peers []*metapb.Peer `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1763,7 +1761,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{28} } func (m *TransferLeaderRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1773,15 +1771,15 @@ func (m *TransferLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_TransferLeaderRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TransferLeaderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferLeaderRequest.Merge(dst, src) } func (m *TransferLeaderRequest) XXX_Size() int { return m.Size() @@ -1816,7 +1814,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{29} } func (m *TransferLeaderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1826,15 +1824,15 @@ func (m *TransferLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_TransferLeaderResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TransferLeaderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferLeaderResponse.Merge(dst, src) } func (m *TransferLeaderResponse) XXX_Size() int { return m.Size() @@ -1856,7 +1854,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{30} } func (m *ComputeHashRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1866,15 +1864,15 @@ func (m *ComputeHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ComputeHashRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ComputeHashRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComputeHashRequest.Merge(dst, src) } func (m *ComputeHashRequest) XXX_Size() int { return m.Size() @@ -1905,7 +1903,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{31} } func (m *VerifyHashRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1915,15 +1913,15 @@ func (m *VerifyHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_VerifyHashRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *VerifyHashRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyHashRequest.Merge(dst, src) } func (m *VerifyHashRequest) XXX_Size() int { return m.Size() @@ -1965,7 +1963,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{32} } func (m *VerifyHashResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1975,15 +1973,15 @@ func (m *VerifyHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_VerifyHashResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *VerifyHashResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifyHashResponse.Merge(dst, src) } func (m *VerifyHashResponse) XXX_Size() int { return m.Size() @@ -1996,7 +1994,7 @@ var xxx_messageInfo_VerifyHashResponse proto.InternalMessageInfo type PrepareMergeRequest struct { MinIndex uint64 `protobuf:"varint,1,opt,name=min_index,json=minIndex,proto3" json:"min_index,omitempty"` - Target *metapb.Region `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` + Target *metapb.Region `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2006,7 +2004,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{33} } func (m *PrepareMergeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2016,15 +2014,15 @@ func (m *PrepareMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_PrepareMergeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareMergeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareMergeRequest.Merge(dst, src) } func (m *PrepareMergeRequest) XXX_Size() int { return m.Size() @@ -2059,7 +2057,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{34} } func (m *PrepareMergeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2069,15 +2067,15 @@ func (m *PrepareMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_PrepareMergeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareMergeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareMergeResponse.Merge(dst, src) } func (m *PrepareMergeResponse) XXX_Size() int { return m.Size() @@ -2100,7 +2098,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{35} } func (m *PrepareFlashbackRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2110,15 +2108,15 @@ func (m *PrepareFlashbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_PrepareFlashbackRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareFlashbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackRequest.Merge(dst, src) } func (m *PrepareFlashbackRequest) XXX_Size() int { return m.Size() @@ -2146,7 +2144,7 @@ func (m *PrepareFlashbackResponse) Reset() { *m = PrepareFlashbackRespon func (m *PrepareFlashbackResponse) String() string { return proto.CompactTextString(m) } func (*PrepareFlashbackResponse) ProtoMessage() {} func (*PrepareFlashbackResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{36} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{36} } func (m *PrepareFlashbackResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2156,15 +2154,15 @@ func (m *PrepareFlashbackResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_PrepareFlashbackResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PrepareFlashbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrepareFlashbackResponse.Merge(dst, src) } func (m *PrepareFlashbackResponse) XXX_Size() int { return m.Size() @@ -2185,7 +2183,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{37} } func (m *FinishFlashbackRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2195,15 +2193,15 @@ func (m *FinishFlashbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_FinishFlashbackRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FinishFlashbackRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinishFlashbackRequest.Merge(dst, src) } func (m *FinishFlashbackRequest) XXX_Size() int { return m.Size() @@ -2224,7 +2222,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{38} } func (m *FinishFlashbackResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2234,15 +2232,15 @@ func (m *FinishFlashbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_FinishFlashbackResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FinishFlashbackResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinishFlashbackResponse.Merge(dst, src) } func (m *FinishFlashbackResponse) XXX_Size() int { return m.Size() @@ -2254,11 +2252,11 @@ func (m *FinishFlashbackResponse) XXX_DiscardUnknown() { 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"` + SourceState *raft_serverpb.RegionLocalState `protobuf:"bytes,4,opt,name=source_state,json=sourceState" json:"source_state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2268,7 +2266,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{39} } func (m *CommitMergeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2278,15 +2276,15 @@ func (m *CommitMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CommitMergeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommitMergeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitMergeRequest.Merge(dst, src) } func (m *CommitMergeRequest) XXX_Size() int { return m.Size() @@ -2335,7 +2333,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{40} } func (m *CommitMergeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2345,15 +2343,15 @@ func (m *CommitMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_CommitMergeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CommitMergeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommitMergeResponse.Merge(dst, src) } func (m *CommitMergeResponse) XXX_Size() int { return m.Size() @@ -2375,7 +2373,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{41} } func (m *RollbackMergeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2385,15 +2383,15 @@ func (m *RollbackMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_RollbackMergeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RollbackMergeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RollbackMergeRequest.Merge(dst, src) } func (m *RollbackMergeRequest) XXX_Size() int { return m.Size() @@ -2421,7 +2419,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{42} } func (m *RollbackMergeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2431,15 +2429,15 @@ func (m *RollbackMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_RollbackMergeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RollbackMergeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RollbackMergeResponse.Merge(dst, src) } func (m *RollbackMergeResponse) XXX_Size() int { return m.Size() @@ -2462,7 +2460,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{43} } func (m *SwitchWitnessRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2472,15 +2470,15 @@ func (m *SwitchWitnessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_SwitchWitnessRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SwitchWitnessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchWitnessRequest.Merge(dst, src) } func (m *SwitchWitnessRequest) XXX_Size() int { return m.Size() @@ -2506,7 +2504,7 @@ func (m *SwitchWitnessRequest) GetIsWitness() bool { } type BatchSwitchWitnessRequest struct { - SwitchWitnesses []*SwitchWitnessRequest `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses,proto3" json:"switch_witnesses,omitempty"` + SwitchWitnesses []*SwitchWitnessRequest `protobuf:"bytes,1,rep,name=switch_witnesses,json=switchWitnesses" json:"switch_witnesses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2516,7 +2514,7 @@ func (m *BatchSwitchWitnessRequest) Reset() { *m = BatchSwitchWitnessReq func (m *BatchSwitchWitnessRequest) String() string { return proto.CompactTextString(m) } func (*BatchSwitchWitnessRequest) ProtoMessage() {} func (*BatchSwitchWitnessRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{44} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{44} } func (m *BatchSwitchWitnessRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2526,15 +2524,15 @@ func (m *BatchSwitchWitnessRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_BatchSwitchWitnessRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchSwitchWitnessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwitchWitnessRequest.Merge(dst, src) } func (m *BatchSwitchWitnessRequest) XXX_Size() int { return m.Size() @@ -2562,7 +2560,7 @@ func (m *BatchSwitchWitnessResponse) Reset() { *m = BatchSwitchWitnessRe func (m *BatchSwitchWitnessResponse) String() string { return proto.CompactTextString(m) } func (*BatchSwitchWitnessResponse) ProtoMessage() {} func (*BatchSwitchWitnessResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_661741b5e7485333, []int{45} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{45} } func (m *BatchSwitchWitnessResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2572,15 +2570,15 @@ func (m *BatchSwitchWitnessResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_BatchSwitchWitnessResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchSwitchWitnessResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwitchWitnessResponse.Merge(dst, src) } func (m *BatchSwitchWitnessResponse) XXX_Size() int { return m.Size() @@ -2592,7 +2590,7 @@ func (m *BatchSwitchWitnessResponse) XXX_DiscardUnknown() { 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"` + PeerId []uint64 `protobuf:"varint,1,rep,packed,name=peer_id,json=peerId" json:"peer_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2602,7 +2600,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{46} } func (m *UpdateGcPeerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2612,15 +2610,15 @@ func (m *UpdateGcPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_UpdateGcPeerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *UpdateGcPeerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateGcPeerRequest.Merge(dst, src) } func (m *UpdateGcPeerRequest) XXX_Size() int { return m.Size() @@ -2640,21 +2638,21 @@ 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"` + 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"` // Deprecated: Do not use. + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2664,7 +2662,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{47} } func (m *AdminRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2674,15 +2672,15 @@ func (m *AdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_AdminRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AdminRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdminRequest.Merge(dst, src) } func (m *AdminRequest) XXX_Size() int { return m.Size() @@ -2808,19 +2806,19 @@ 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"` + 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"` // Deprecated: Do not use. + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2830,7 +2828,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{48} } func (m *AdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2840,15 +2838,15 @@ func (m *AdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_AdminResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdminResponse.Merge(dst, src) } func (m *AdminResponse) XXX_Size() int { return m.Size() @@ -2969,7 +2967,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{49} } func (m *RegionLeaderRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2979,15 +2977,15 @@ func (m *RegionLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RegionLeaderRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionLeaderRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionLeaderRequest.Merge(dst, src) } func (m *RegionLeaderRequest) XXX_Size() int { return m.Size() @@ -2999,7 +2997,7 @@ func (m *RegionLeaderRequest) XXX_DiscardUnknown() { var xxx_messageInfo_RegionLeaderRequest proto.InternalMessageInfo type RegionLeaderResponse struct { - Leader *metapb.Peer `protobuf:"bytes,1,opt,name=leader,proto3" json:"leader,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,1,opt,name=leader" json:"leader,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3009,7 +3007,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{50} } func (m *RegionLeaderResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3019,15 +3017,15 @@ func (m *RegionLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_RegionLeaderResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionLeaderResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionLeaderResponse.Merge(dst, src) } func (m *RegionLeaderResponse) XXX_Size() int { return m.Size() @@ -3064,7 +3062,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{51} } func (m *RegionDetailRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3074,15 +3072,15 @@ func (m *RegionDetailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RegionDetailRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionDetailRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionDetailRequest.Merge(dst, src) } func (m *RegionDetailRequest) XXX_Size() int { return m.Size() @@ -3094,8 +3092,8 @@ func (m *RegionDetailRequest) XXX_DiscardUnknown() { var xxx_messageInfo_RegionDetailRequest proto.InternalMessageInfo 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"` + Region *metapb.Region `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` + Leader *metapb.Peer `protobuf:"bytes,2,opt,name=leader" json:"leader,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3105,7 +3103,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{52} } func (m *RegionDetailResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3115,15 +3113,15 @@ func (m *RegionDetailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_RegionDetailResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionDetailResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionDetailResponse.Merge(dst, src) } func (m *RegionDetailResponse) XXX_Size() int { return m.Size() @@ -3150,8 +3148,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3161,7 +3159,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{53} } func (m *StatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3171,15 +3169,15 @@ func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusRequest.Merge(dst, src) } func (m *StatusRequest) XXX_Size() int { return m.Size() @@ -3213,8 +3211,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3224,7 +3222,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{54} } func (m *StatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3234,15 +3232,15 @@ func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusResponse.Merge(dst, src) } func (m *StatusResponse) XXX_Size() int { return m.Size() @@ -3276,12 +3274,12 @@ 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"` @@ -3301,7 +3299,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{55} } func (m *RaftRequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3311,15 +3309,15 @@ func (m *RaftRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_RaftRequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftRequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftRequestHeader.Merge(dst, src) } func (m *RaftRequestHeader) XXX_Size() int { return m.Size() @@ -3422,7 +3420,7 @@ func (m *RaftRequestHeader) GetResourceGroupName() string { } type RaftResponseHeader struct { - Error *errorpb.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -3434,7 +3432,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{56} } func (m *RaftResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3444,15 +3442,15 @@ func (m *RaftResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RaftResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftResponseHeader.Merge(dst, src) } func (m *RaftResponseHeader) XXX_Size() int { return m.Size() @@ -3485,12 +3483,12 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3500,7 +3498,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{57} } func (m *RaftCmdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3510,15 +3508,15 @@ func (m *RaftCmdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RaftCmdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftCmdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftCmdRequest.Merge(dst, src) } func (m *RaftCmdRequest) XXX_Size() int { return m.Size() @@ -3558,10 +3556,10 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -3571,7 +3569,7 @@ 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} + return fileDescriptor_raft_cmdpb_bf49802573288481, []int{58} } func (m *RaftCmdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3581,15 +3579,15 @@ func (m *RaftCmdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_RaftCmdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftCmdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftCmdResponse.Merge(dst, src) } func (m *RaftCmdResponse) XXX_Size() int { return m.Size() @@ -3629,9 +3627,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,193 +3686,14 @@ 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 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, 0x0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x31, 0x00, 0x75, 0xa0, 0x1c, 0xf8, 0x31, 0x5d, 0x62, 0xd5, 0x8d, 0xee, - 0x40, 0x4f, 0x6e, 0xd8, 0x28, 0xb6, 0x63, 0x22, 0x2b, 0x04, 0x79, 0xa4, 0x26, 0x57, 0x3c, 0x31, - 0xec, 0xa3, 0xc0, 0xb1, 0x67, 0x47, 0x4c, 0x0d, 0x77, 0x85, 0x11, 0x6f, 0x7c, 0xda, 0x68, 0xbb, - 0xc6, 0xf7, 0x15, 0x76, 0x09, 0xc9, 0x4c, 0x25, 0x59, 0x7c, 0x23, 0x1c, 0xcc, 0x66, 0x6c, 0xda, - 0x99, 0x39, 0xa6, 0xbe, 0x57, 0x74, 0xdf, 0xcd, 0x4d, 0xb8, 0x98, 0xd3, 0x97, 0x40, 0x4f, 0x60, - 0x74, 0xf4, 0xd4, 0x8b, 0x9d, 0xe9, 0x17, 0x5e, 0xec, 0x93, 0x28, 0x52, 0x40, 0x9b, 0xd0, 0x92, - 0x0c, 0xae, 0x90, 0x42, 0xce, 0xde, 0xac, 0x18, 0xf7, 0x22, 0xeb, 0xa9, 0xd0, 0x96, 0x9c, 0xd5, - 0xf1, 0x22, 0x69, 0x6e, 0x4e, 0xe1, 0x92, 0x20, 0x9e, 0x32, 0xd0, 0x87, 0x60, 0x44, 0x5c, 0xae, - 0xec, 0x93, 0xe3, 0x6e, 0x3b, 0xc3, 0x97, 0x25, 0xb6, 0x78, 0x2d, 0xd2, 0xa5, 0x24, 0x32, 0x5f, - 0x81, 0xcb, 0x65, 0x23, 0x25, 0x01, 0x1a, 0xfe, 0x36, 0x74, 0xed, 0x98, 0xdc, 0x77, 0xf4, 0xc2, - 0x20, 0x33, 0xad, 0x5a, 0x3a, 0x2d, 0xf3, 0x5f, 0x6d, 0xe8, 0x7d, 0xec, 0xce, 0x3d, 0x5f, 0x69, - 0xbe, 0x55, 0xa8, 0x1b, 0x33, 0x9c, 0xce, 0x75, 0x0b, 0xc5, 0xe3, 0x07, 0x49, 0xdd, 0xa1, 0x15, - 0x11, 0xcf, 0x39, 0xca, 0x65, 0xf5, 0xc1, 0x44, 0x68, 0x0f, 0x1a, 0xfc, 0xac, 0xe5, 0x5b, 0xfc, - 0x9c, 0x53, 0x84, 0x1f, 0x96, 0x42, 0x95, 0x8f, 0x29, 0xf9, 0x76, 0x16, 0x9c, 0xc8, 0xb5, 0x96, - 0x1d, 0x33, 0x4f, 0xe4, 0x18, 0x9c, 0x44, 0x84, 0x3e, 0x85, 0xb5, 0x58, 0x32, 0x9c, 0x35, 0xe3, - 0x14, 0x27, 0x6b, 0xd4, 0x6b, 0x3a, 0x46, 0x29, 0xc7, 0xe2, 0x41, 0x9c, 0x11, 0x33, 0x5f, 0xce, - 0x38, 0x15, 0x59, 0x9c, 0xbf, 0x9a, 0x45, 0x5f, 0x0a, 0x14, 0x88, 0xe1, 0x2c, 0x11, 0xa1, 0x7d, - 0xe8, 0x87, 0x82, 0x0a, 0xac, 0x39, 0x5b, 0xa6, 0xb2, 0x92, 0xbd, 0x9a, 0xab, 0x64, 0xf3, 0xac, - 0x86, 0x7b, 0xa1, 0x26, 0x64, 0x97, 0x17, 0xb1, 0xec, 0x25, 0x48, 0xc9, 0xe5, 0xa5, 0x48, 0x0f, - 0xfc, 0x84, 0x52, 0x32, 0x74, 0x1f, 0x06, 0x54, 0xee, 0x17, 0x09, 0x22, 0xaa, 0xda, 0xcc, 0x3a, - 0x2d, 0xdb, 0x81, 0xb8, 0x4f, 0x75, 0x29, 0x7a, 0x07, 0x9a, 0x3c, 0x4d, 0x51, 0x59, 0x61, 0x5b, - 0xa8, 0x24, 0xb0, 0x54, 0x46, 0x07, 0x30, 0xd0, 0x16, 0x92, 0x75, 0xb6, 0x37, 0xee, 0x16, 0x23, - 0x51, 0x52, 0x48, 0xe2, 0x9e, 0xa3, 0x09, 0x65, 0x24, 0xd8, 0x19, 0x25, 0x12, 0xd2, 0x2b, 0x8d, - 0x44, 0xee, 0x0c, 0x13, 0x67, 0xb5, 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1, 0x64, 0xa3, 0xea, 0xa5, 0x9f, 0xd1, 0x92, 0x26, 0xaa, 0x62, 0x33, - 0xda, 0x68, 0x1d, 0xfa, 0x99, 0x8a, 0xcc, 0xe8, 0x30, 0x94, 0xb4, 0xc4, 0x32, 0x80, 0xa1, 0xe8, - 0x25, 0x93, 0xd1, 0x45, 0x23, 0xfe, 0xa3, 0x6c, 0xa6, 0xbe, 0x31, 0x7a, 0x68, 0x08, 0x6b, 0xb9, - 0xea, 0xc5, 0xe8, 0xa3, 0x0d, 0xf5, 0x60, 0xab, 0xd7, 0x1a, 0xc6, 0x80, 0x81, 0xea, 0x17, 0x0d, - 0x63, 0xed, 0x8d, 0x7b, 0xea, 0xa8, 0x56, 0x31, 0x5b, 0x87, 0xbe, 0x8c, 0x99, 0x90, 0x1b, 0x17, - 0x98, 0x95, 0x7e, 0x22, 0x19, 0x95, 0x54, 0x22, 0x8e, 0x11, 0xa3, 0x7a, 0xe7, 0xe6, 0xbf, 0xff, - 0xda, 0xae, 0xfc, 0xfd, 0xd9, 0x56, 0xe5, 0x9f, 0xcf, 0xb6, 0x2a, 0xff, 0x79, 0xb6, 0x55, 0xf9, - 0xf3, 0x4f, 0x5b, 0x17, 0xc0, 0x08, 0xe8, 0xc9, 0x6e, 0xec, 0x9d, 0x9e, 0xed, 0x9e, 0x9e, 0xf1, - 0x7f, 0x39, 0xf8, 0xaa, 0xc9, 0xff, 0xbc, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xd1, - 0x61, 0x98, 0x0e, 0x21, 0x00, 0x00, -} - 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 } @@ -3885,40 +3701,32 @@ 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.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 m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3926,33 +3734,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3761,38 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3800,20 @@ 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) + i += 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 +3821,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3854,20 @@ 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) + i += 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 +3875,48 @@ 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 + i++ } - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3924,20 @@ 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) + i += 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 +3945,20 @@ 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) + i += 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 +3966,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +3997,38 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4036,20 @@ 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) + i += 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 +4057,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4088,20 @@ 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) + i += 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 +4109,37 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4147,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4183,105 @@ 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.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - 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)) + 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] = 0x52 + i += n4 } - 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.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] = 0x4a + i += n5 } - 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.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] = 0x42 + i += n6 } - 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.Snap != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Snap.Size())) + n7, err := m.Snap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n7 } - 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)) + 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] = 0x32 + i += n8 } - 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.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] = 0x2a + i += n9 } - 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.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] = 0x22 + i += n10 } - 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.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-- - dAtA[i] = 0x12 + i += n11 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4289,105 @@ 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.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - 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)) + 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] = 0x52 + i += n12 } - 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.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] = 0x4a + i += n13 } - 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.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] = 0x42 + i += n14 } - 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.Snap != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Snap.Size())) + n15, err := m.Snap.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x3a + i += n15 } - 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)) + 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] = 0x32 + i += n16 } - 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.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] = 0x2a + i += n17 } - 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.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] = 0x22 + i += n18 } - 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.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-- - dAtA[i] = 0x12 + i += n19 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4395,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4431,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4462,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4495,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4526,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 +4553,41 @@ 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 m.RightDerive { + dAtA[i] = 0x20 + i++ + if m.RightDerive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - if len(m.SplitKey) > 0 { - i -= len(m.SplitKey) - copy(dAtA[i:], m.SplitKey) - i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.SplitKey))) - i-- - dAtA[i] = 0xa + if m.ShareSourceRegionSize { + dAtA[i] = 0x28 + i++ + if m.ShareSourceRegionSize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4595,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4636,52 @@ 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 len(m.Requests) > 0 { + for _, msg := range m.Requests { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if m.ShareSourceRegionSize { - i-- - if m.ShareSourceRegionSize { + if m.RightDerive { + dAtA[i] = 0x10 + i++ + if m.RightDerive { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.RightDerive { - i-- - if m.RightDerive { + if m.ShareSourceRegionSize { + dAtA[i] = 0x18 + i++ + if m.ShareSourceRegionSize { 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4689,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4722,35 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4758,20 @@ 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) + i += 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 +4779,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +4822,20 @@ 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) + i += 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 +4843,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4870,37 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4908,20 @@ 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) + i += 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 +4929,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +4965,20 @@ 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) + i += 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 +4986,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +5012,20 @@ 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) + i += 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 +5033,20 @@ 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) + i += 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 +5054,20 @@ 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) + i += 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 +5075,57 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +5133,20 @@ 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) + i += 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 +5154,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +5180,20 @@ 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) + i += 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 +5201,35 @@ 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 + i++ } - if m.PeerId != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +5237,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +5270,20 @@ 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) + i += 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 +5291,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 +5307,21 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +5329,177 @@ 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 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RollbackMerge.Size())) + n40, err := m.RollbackMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 } - 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)) + 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] = 0x42 + i += n41 } - 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.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] = 0x3a + i += n42 } - 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.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] = 0x32 + i += n43 } - 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.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] = 0x2a + i += n44 } - 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.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] = 0x22 + i += n45 } - 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.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] = 0x1a + i += n46 } - 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.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-- - dAtA[i] = 0x12 + i += n47 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +5507,155 @@ 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 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CommitMerge.Size())) + n54, err := m.CommitMerge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 } - 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.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] = 0x3a + i += n55 } - 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.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] = 0x32 + i += n56 } - 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.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] = 0x2a + i += n57 } - 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] = 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] = 0x22 + i += n58 } - 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] = 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] = 0x1a + i += n59 } - 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] = 0x72 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.SwitchWitnesses.Size())) + n60, err := m.SwitchWitnesses.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i += n60 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +5663,20 @@ 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) + i += 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 +5684,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +5715,20 @@ 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) + i += 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 +5736,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +5777,45 @@ 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.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - 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)) + if m.RegionLeader != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionLeader.Size())) + n64, err := m.RegionLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n64 } - 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)) + 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-- - dAtA[i] = 0x12 + i += n65 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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,55 +5823,45 @@ 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.CmdType != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) } - 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)) + if m.RegionLeader != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionLeader.Size())) + n66, err := m.RegionLeader.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x1a + i += n66 } - 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)) + 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-- - dAtA[i] = 0x12 + i += n67 } - if m.CmdType != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.CmdType)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6543,126 +5869,113 @@ func (m *RaftRequestHeader) Marshal() (dAtA []byte, err error) { } 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) + var i 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 = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionId)) } - 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.Peer != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Peer.Size())) + n68, err := m.Peer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n68 } - if m.Priority != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x60 + if m.ReadQuorum { + dAtA[i] = 0x18 + i++ + if m.ReadQuorum { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - 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 len(m.Uuid) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.Uuid))) + i += copy(dAtA[i:], m.Uuid) } - if m.Flags != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Flags)) - i-- - dAtA[i] = 0x50 + if m.RegionEpoch != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionEpoch.Size())) + n69, err := m.RegionEpoch.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 } - if m.AppliedIndex != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AppliedIndex)) - i-- - dAtA[i] = 0x48 + if m.Term != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Term)) } - if m.ReplicaRead { - i-- - if m.ReplicaRead { + if m.SyncLog { + dAtA[i] = 0x38 + i++ + if m.SyncLog { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x40 + i++ } - if m.SyncLog { - i-- - if m.SyncLog { + if m.ReplicaRead { + dAtA[i] = 0x40 + i++ + if m.ReplicaRead { 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 m.AppliedIndex != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.AppliedIndex)) } - if m.RegionEpoch != nil { - { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a + if m.Flags != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Flags)) } - 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 len(m.FlagData) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.FlagData))) + i += copy(dAtA[i:], m.FlagData) } - if m.ReadQuorum { - i-- - if m.ReadQuorum { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 + if m.Priority != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.Priority)) } - if m.Peer != nil { - { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftCmdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if len(m.ResourceGroupName) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintRaftCmdpb(dAtA, i, uint64(len(m.ResourceGroupName))) + i += copy(dAtA[i:], m.ResourceGroupName) } - if m.RegionId != 0 { - i = encodeVarintRaftCmdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 +5983,41 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +6025,62 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +6088,68 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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) @@ -6896,9 +6167,6 @@ func (m *GetRequest) Size() (n int) { } func (m *GetResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Value) @@ -6912,9 +6180,6 @@ func (m *GetResponse) Size() (n int) { } func (m *PutRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -6936,9 +6201,6 @@ func (m *PutRequest) Size() (n int) { } func (m *PutResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -6948,9 +6210,6 @@ func (m *PutResponse) Size() (n int) { } func (m *DeleteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -6968,9 +6227,6 @@ func (m *DeleteRequest) Size() (n int) { } func (m *DeleteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -6980,9 +6236,6 @@ func (m *DeleteResponse) Size() (n int) { } func (m *DeleteRangeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -7007,9 +6260,6 @@ func (m *DeleteRangeRequest) Size() (n int) { } func (m *DeleteRangeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7019,9 +6269,6 @@ func (m *DeleteRangeResponse) Size() (n int) { } func (m *SnapRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7031,9 +6278,6 @@ func (m *SnapRequest) Size() (n int) { } func (m *SnapResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -7047,9 +6291,6 @@ func (m *SnapResponse) Size() (n int) { } func (m *PrewriteRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -7071,9 +6312,6 @@ func (m *PrewriteRequest) Size() (n int) { } func (m *PrewriteResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7083,9 +6321,6 @@ func (m *PrewriteResponse) Size() (n int) { } func (m *IngestSSTRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Sst != nil { @@ -7099,9 +6334,6 @@ func (m *IngestSSTRequest) Size() (n int) { } func (m *IngestSSTResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7111,9 +6343,6 @@ func (m *IngestSSTResponse) Size() (n int) { } func (m *ReadIndexRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -7132,9 +6361,6 @@ func (m *ReadIndexRequest) Size() (n int) { } func (m *ReadIndexResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ReadIndex != 0 { @@ -7151,9 +6377,6 @@ func (m *ReadIndexResponse) Size() (n int) { } func (m *Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7198,9 +6421,6 @@ func (m *Request) Size() (n int) { } func (m *Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7245,9 +6465,6 @@ func (m *Response) Size() (n int) { } func (m *ChangePeerRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ChangeType != 0 { @@ -7264,9 +6481,6 @@ func (m *ChangePeerRequest) Size() (n int) { } func (m *ChangePeerResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -7280,9 +6494,6 @@ func (m *ChangePeerResponse) Size() (n int) { } func (m *ChangePeerV2Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Changes) > 0 { @@ -7298,9 +6509,6 @@ func (m *ChangePeerV2Request) Size() (n int) { } func (m *ChangePeerV2Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -7314,9 +6522,6 @@ func (m *ChangePeerV2Response) Size() (n int) { } func (m *SplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.SplitKey) @@ -7346,9 +6551,6 @@ func (m *SplitRequest) Size() (n int) { } func (m *SplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Left != nil { @@ -7366,9 +6568,6 @@ func (m *SplitResponse) Size() (n int) { } func (m *BatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Requests) > 0 { @@ -7390,9 +6589,6 @@ func (m *BatchSplitRequest) Size() (n int) { } func (m *BatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Regions) > 0 { @@ -7408,9 +6604,6 @@ func (m *BatchSplitResponse) Size() (n int) { } func (m *CompactLogRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CompactIndex != 0 { @@ -7429,9 +6622,6 @@ func (m *CompactLogRequest) Size() (n int) { } func (m *CompactLogResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7441,9 +6631,6 @@ func (m *CompactLogResponse) Size() (n int) { } func (m *TransferLeaderRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Peer != nil { @@ -7463,9 +6650,6 @@ func (m *TransferLeaderRequest) Size() (n int) { } func (m *TransferLeaderResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7475,9 +6659,6 @@ func (m *TransferLeaderResponse) Size() (n int) { } func (m *ComputeHashRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Context) @@ -7491,9 +6672,6 @@ func (m *ComputeHashRequest) Size() (n int) { } func (m *VerifyHashRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Index != 0 { @@ -7514,9 +6692,6 @@ func (m *VerifyHashRequest) Size() (n int) { } func (m *VerifyHashResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7526,9 +6701,6 @@ func (m *VerifyHashResponse) Size() (n int) { } func (m *PrepareMergeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MinIndex != 0 { @@ -7545,9 +6717,6 @@ func (m *PrepareMergeRequest) Size() (n int) { } func (m *PrepareMergeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7557,9 +6726,6 @@ func (m *PrepareMergeResponse) Size() (n int) { } func (m *PrepareFlashbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StartTs != 0 { @@ -7572,9 +6738,6 @@ func (m *PrepareFlashbackRequest) Size() (n int) { } func (m *PrepareFlashbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7584,9 +6747,6 @@ func (m *PrepareFlashbackResponse) Size() (n int) { } func (m *FinishFlashbackRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7596,9 +6756,6 @@ func (m *FinishFlashbackRequest) Size() (n int) { } func (m *FinishFlashbackResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7608,9 +6765,6 @@ func (m *FinishFlashbackResponse) Size() (n int) { } func (m *CommitMergeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Source != nil { @@ -7637,9 +6791,6 @@ func (m *CommitMergeRequest) Size() (n int) { } func (m *CommitMergeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7649,9 +6800,6 @@ func (m *CommitMergeResponse) Size() (n int) { } func (m *RollbackMergeRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Commit != 0 { @@ -7664,9 +6812,6 @@ func (m *RollbackMergeRequest) Size() (n int) { } func (m *RollbackMergeResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7676,9 +6821,6 @@ func (m *RollbackMergeResponse) Size() (n int) { } func (m *SwitchWitnessRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.PeerId != 0 { @@ -7694,9 +6836,6 @@ func (m *SwitchWitnessRequest) Size() (n int) { } func (m *BatchSwitchWitnessRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.SwitchWitnesses) > 0 { @@ -7712,9 +6851,6 @@ func (m *BatchSwitchWitnessRequest) Size() (n int) { } func (m *BatchSwitchWitnessResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7724,9 +6860,6 @@ func (m *BatchSwitchWitnessResponse) Size() (n int) { } func (m *UpdateGcPeerRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.PeerId) > 0 { @@ -7743,9 +6876,6 @@ func (m *UpdateGcPeerRequest) Size() (n int) { } func (m *AdminRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7818,9 +6948,6 @@ func (m *AdminRequest) Size() (n int) { } func (m *AdminResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7885,9 +7012,6 @@ func (m *AdminResponse) Size() (n int) { } func (m *RegionLeaderRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7897,9 +7021,6 @@ func (m *RegionLeaderRequest) Size() (n int) { } func (m *RegionLeaderResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Leader != nil { @@ -7913,9 +7034,6 @@ func (m *RegionLeaderResponse) Size() (n int) { } func (m *RegionDetailRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -7925,9 +7043,6 @@ func (m *RegionDetailRequest) Size() (n int) { } func (m *RegionDetailResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -7945,9 +7060,6 @@ func (m *RegionDetailResponse) Size() (n int) { } func (m *StatusRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7968,9 +7080,6 @@ func (m *StatusRequest) Size() (n int) { } func (m *StatusResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.CmdType != 0 { @@ -7991,9 +7100,6 @@ func (m *StatusResponse) Size() (n int) { } func (m *RaftRequestHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -8047,9 +7153,6 @@ func (m *RaftRequestHeader) Size() (n int) { } func (m *RaftResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -8070,9 +7173,6 @@ func (m *RaftResponseHeader) Size() (n int) { } func (m *RaftCmdRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -8100,9 +7200,6 @@ func (m *RaftCmdRequest) Size() (n int) { } func (m *RaftCmdResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -8130,7 +7227,14 @@ func (m *RaftCmdResponse) Size() (n int) { } 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 +7254,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 +7282,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 +7292,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 +7311,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 +7320,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,7 +7334,7 @@ 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 { @@ -8267,7 +7365,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 +7393,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 +7402,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,7 +7416,7 @@ 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 { @@ -8352,7 +7447,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 +7475,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 +7485,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 +7504,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 +7513,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 +7535,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 +7544,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,7 +7558,7 @@ 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 { @@ -8503,7 +7589,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,7 +7609,7 @@ 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 { @@ -8554,7 +7640,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 +7668,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 +7678,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 +7697,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 +7706,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,7 +7720,7 @@ 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 { @@ -8671,7 +7751,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,7 +7771,7 @@ 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 { @@ -8722,7 +7802,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 +7830,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 +7840,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 +7859,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 +7868,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 +7890,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 +7899,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 +7921,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,7 +7933,7 @@ 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 { @@ -8893,7 +7964,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,7 +7984,7 @@ 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 { @@ -8944,7 +8015,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,7 +8035,7 @@ 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 { @@ -8995,7 +8066,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 +8094,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 +8103,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,7 +8119,7 @@ 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 { @@ -9082,7 +8150,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 +8178,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 +8187,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 +8209,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 +8218,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 +8240,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 +8249,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,7 +8263,7 @@ 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 { @@ -9235,7 +8294,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,7 +8314,7 @@ 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 { @@ -9286,7 +8345,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 +8373,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 +8382,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,7 +8398,7 @@ 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 { @@ -9373,7 +8429,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,7 +8449,7 @@ 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 { @@ -9424,7 +8480,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 +8508,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 +8527,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 +8536,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,7 +8550,7 @@ 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 { @@ -9528,7 +8581,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 +8609,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 +8628,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 +8637,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,7 +8653,7 @@ 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 { @@ -9634,7 +8684,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 +8712,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 +8731,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 +8740,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 +8764,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 +8773,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 +8797,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 +8806,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 +8830,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 +8839,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 +8863,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 +8872,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 +8896,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 +8905,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 +8929,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 +8938,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 +8962,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 +8971,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,7 +8987,7 @@ 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 { @@ -9992,7 +9018,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 +9046,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 +9065,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 +9074,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 +9098,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 +9107,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 +9131,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 +9140,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 +9164,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 +9173,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 +9197,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 +9206,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 +9230,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 +9239,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 +9263,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 +9272,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 +9296,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 +9305,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,7 +9321,7 @@ 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 { @@ -10350,7 +9352,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 +9380,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 +9399,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 +9408,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,7 +9424,7 @@ 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 { @@ -10456,7 +9455,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 +9483,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 +9492,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,7 +9508,7 @@ 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 { @@ -10543,7 +9539,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 +9567,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 +9576,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,7 +9590,7 @@ 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 { @@ -10628,7 +9621,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 +9649,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 +9658,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,7 +9674,7 @@ 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 { @@ -10715,7 +9705,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 +9733,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 +9742,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 +9764,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 +9781,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 +9798,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 +9807,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 +9821,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 +9845,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 +9865,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,7 +9877,7 @@ 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 { @@ -10935,7 +9908,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 +9936,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 +9945,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 +9969,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 +9978,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,7 +9994,7 @@ 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 { @@ -11058,7 +10025,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 +10053,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 +10062,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 +10084,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 +10104,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,7 +10116,7 @@ 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 { @@ -11183,7 +10147,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 +10175,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 +10184,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,7 +10198,7 @@ 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 { @@ -11268,7 +10229,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 +10257,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 +10276,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 +10295,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,7 +10306,7 @@ 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 { @@ -11376,7 +10337,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,7 +10357,7 @@ 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 { @@ -11427,7 +10388,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 +10416,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 +10425,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 +10449,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 +10458,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,7 +10472,7 @@ 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 { @@ -11548,7 +10503,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,7 +10523,7 @@ 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 { @@ -11599,7 +10554,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 +10582,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 +10591,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,7 +10605,7 @@ 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 { @@ -11684,7 +10636,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 +10664,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 +10683,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 +10692,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 +10714,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 +10723,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,7 +10737,7 @@ 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 { @@ -11822,7 +10768,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,7 +10788,7 @@ 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 { @@ -11873,7 +10819,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 +10847,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 +10866,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 +10875,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,7 +10891,7 @@ 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 { @@ -11979,7 +10922,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,7 +10942,7 @@ 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 { @@ -12030,7 +10973,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 +11001,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,7 +11012,7 @@ 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 { @@ -12100,7 +11043,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,7 +11063,7 @@ 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 { @@ -12151,7 +11094,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,7 +11114,7 @@ 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 { @@ -12202,7 +11145,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,7 +11165,7 @@ 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 { @@ -12253,7 +11196,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 +11224,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 +11233,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 +11257,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 +11276,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 +11285,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 +11307,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 +11316,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,7 +11332,7 @@ 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 { @@ -12429,7 +11363,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,7 +11383,7 @@ 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 { @@ -12480,7 +11414,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 +11442,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,7 +11453,7 @@ 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 { @@ -12550,7 +11484,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,7 +11504,7 @@ 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 { @@ -12601,7 +11535,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 +11563,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 +11582,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,7 +11594,7 @@ 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 { @@ -12691,7 +11625,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 +11653,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 +11662,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,7 +11676,7 @@ 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 { @@ -12776,7 +11707,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,7 +11727,7 @@ 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 { @@ -12827,7 +11758,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 +11784,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 +11801,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 +11810,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 +11824,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,7 +11840,7 @@ 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 { @@ -12954,7 +11871,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 +11899,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 +11918,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 +11927,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 +11951,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 +11960,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 +11984,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 +11993,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 +12017,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 +12026,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 +12050,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 +12059,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 +12083,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 +12092,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 +12116,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 +12125,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 +12149,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 +12158,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 +12182,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 +12191,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 +12215,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 +12224,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 +12248,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 +12257,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 +12281,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 +12290,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 +12314,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 +12323,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 +12347,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 +12356,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 +12380,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 +12389,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,7 +12405,7 @@ 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 { @@ -13564,7 +12436,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 +12464,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 +12483,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 +12492,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 +12516,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 +12525,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 +12549,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 +12558,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 +12582,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 +12591,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 +12615,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 +12624,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 +12648,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 +12657,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 +12681,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 +12690,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 +12714,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 +12723,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 +12747,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 +12756,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 +12780,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 +12789,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 +12813,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 +12822,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 +12846,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 +12855,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 +12879,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 +12888,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,7 +12904,7 @@ 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 { @@ -14102,7 +12935,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,7 +12955,7 @@ 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 { @@ -14153,7 +12986,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 +13014,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 +13023,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,7 +13039,7 @@ 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 { @@ -14240,7 +13070,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,7 +13090,7 @@ 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 { @@ -14291,7 +13121,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 +13149,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 +13158,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 +13182,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 +13191,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,7 +13207,7 @@ 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 { @@ -14414,7 +13238,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 +13266,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 +13285,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 +13294,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 +13318,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 +13327,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,7 +13343,7 @@ 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 { @@ -14556,7 +13374,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 +13402,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 +13421,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 +13430,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 +13454,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 +13463,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,7 +13479,7 @@ 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 { @@ -14698,7 +13510,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 +13538,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 +13557,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 +13566,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 +13590,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 +13610,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 +13619,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 +13641,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 +13650,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 +13674,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 +13693,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 +13713,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 +13733,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 +13752,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 +13771,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 +13780,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 +13802,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 +13821,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 +13831,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,7 +13842,7 @@ 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 { @@ -15076,7 +13873,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 +13901,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 +13910,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 +13934,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 +13943,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 +13965,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,7 +13976,7 @@ 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 { @@ -15216,7 +14007,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 +14035,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 +14044,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 +14068,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 +14077,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 +14099,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 +14108,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 +14132,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 +14141,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,7 +14157,7 @@ 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 { @@ -15409,7 +14188,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 +14216,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 +14225,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 +14249,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 +14258,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 +14280,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 +14289,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 +14313,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 +14322,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,7 +14338,7 @@ 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 { @@ -15590,7 +14357,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 +14388,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 +14408,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", fileDescriptor_raft_cmdpb_bf49802573288481) } + +var fileDescriptor_raft_cmdpb_bf49802573288481 = []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, 0xa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xe8, 0x23, 0x62, 0xbb, 0x29, 0x07, 0xa8, 0x9d, + 0x5c, 0x59, 0xb5, 0x93, 0x91, 0x09, 0x0d, 0xf6, 0x57, 0x55, 0x26, 0x59, 0x15, 0xd1, 0x65, 0x8e, + 0x61, 0x23, 0x0f, 0x2f, 0x07, 0xde, 0x15, 0xee, 0x2c, 0x62, 0xf2, 0x89, 0x1d, 0x4d, 0xd5, 0xa8, + 0x63, 0x68, 0x39, 0x81, 0x1f, 0x93, 0x6f, 0x62, 0xb9, 0x79, 0x54, 0xd3, 0xfc, 0x02, 0xd6, 0x3f, + 0x27, 0xd4, 0x9b, 0x2c, 0x75, 0xf5, 0x11, 0x34, 0xf4, 0x48, 0x8a, 0x06, 0x2b, 0xf0, 0xa6, 0x76, + 0x34, 0x95, 0x55, 0x1f, 0xff, 0xd6, 0x81, 0x6b, 0x59, 0xe0, 0x11, 0x20, 0x1d, 0x58, 0xba, 0xf7, + 0x7b, 0x18, 0x1e, 0x52, 0x12, 0xda, 0x94, 0x3c, 0x26, 0x34, 0xad, 0x9d, 0xaf, 0x40, 0x67, 0xee, + 0xf9, 0x99, 0xf4, 0xb5, 0xe7, 0x9e, 0x2f, 0x52, 0x77, 0x13, 0x9a, 0xb1, 0x4d, 0xd3, 0xe3, 0xaf, + 0x40, 0x1a, 0xa2, 0xd7, 0xdc, 0x80, 0x51, 0x16, 0x5b, 0x8e, 0xf9, 0x36, 0x6c, 0x4a, 0xf9, 0xbd, + 0x99, 0x1d, 0x4d, 0xbf, 0xb2, 0x9d, 0xd3, 0xe7, 0x57, 0x89, 0xe6, 0x65, 0x18, 0x17, 0xad, 0x24, + 0xe2, 0x18, 0x36, 0xee, 0x79, 0xbe, 0x17, 0x4d, 0xf3, 0x80, 0xe6, 0x25, 0xd8, 0x2c, 0xf4, 0x48, + 0xa3, 0xef, 0x2b, 0x3c, 0x35, 0x73, 0x2f, 0xce, 0x4c, 0xfd, 0x26, 0x34, 0xc5, 0x36, 0x5a, 0x45, + 0x89, 0xa2, 0x17, 0x6d, 0x40, 0xd3, 0xe1, 0xd6, 0x72, 0xe9, 0xca, 0x16, 0xdb, 0x3d, 0xc4, 0x8f, + 0xa9, 0x47, 0x04, 0xa7, 0x31, 0x00, 0x75, 0xa0, 0x1c, 0xf8, 0x31, 0x5d, 0x62, 0xd5, 0x8d, 0xee, + 0x40, 0x4f, 0x6e, 0xd8, 0x28, 0xb6, 0x63, 0x22, 0x2b, 0x04, 0x79, 0xa4, 0x26, 0x57, 0x3c, 0x31, + 0xec, 0xa3, 0xc0, 0xb1, 0x67, 0x47, 0x4c, 0x0d, 0x77, 0x85, 0x11, 0x6f, 0x7c, 0xda, 0x68, 0xbb, + 0xc6, 0xf7, 0x15, 0x76, 0x09, 0xc9, 0x4c, 0x25, 0x59, 0x7c, 0x23, 0x1c, 0xcc, 0x66, 0x6c, 0xda, + 0x99, 0x39, 0xa6, 0xbe, 0x57, 0x74, 0xdf, 0xcd, 0x4d, 0xb8, 0x98, 0xd3, 0x97, 0x40, 0x4f, 0x60, + 0x74, 0xf4, 0xd4, 0x8b, 0x9d, 0xe9, 0x17, 0x5e, 0xec, 0x93, 0x28, 0x52, 0x40, 0x9b, 0xd0, 0x92, + 0x0c, 0xae, 0x90, 0x42, 0xce, 0xde, 0xac, 0x18, 0xf7, 0x22, 0xeb, 0xa9, 0xd0, 0x96, 0x9c, 0xd5, + 0xf1, 0x22, 0x69, 0x6e, 0x4e, 0xe1, 0x92, 0x20, 0x9e, 0x32, 0xd0, 0x87, 0x60, 0x44, 0x5c, 0xae, + 0xec, 0x93, 0xe3, 0x6e, 0x3b, 0xc3, 0x97, 0x25, 0xb6, 0x78, 0x2d, 0xd2, 0xa5, 0x24, 0x32, 0x5f, + 0x81, 0xcb, 0x65, 0x23, 0x25, 0x01, 0x1a, 0xfe, 0x36, 0x74, 0xed, 0x98, 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, 0x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4, 0x37, 0x3f, 0xad, 0xb7, 0x1b, 0x46, 0x53, + 0xdd, 0xac, 0xff, 0x50, 0x85, 0xb5, 0x24, 0x10, 0x92, 0x20, 0x6e, 0xe5, 0x22, 0xb1, 0x55, 0x8c, + 0x84, 0x9e, 0xa9, 0x24, 0x14, 0x7b, 0x6c, 0xfb, 0x89, 0x1e, 0x15, 0x8b, 0x51, 0x36, 0x16, 0xe9, + 0xc3, 0xb5, 0x54, 0x63, 0xd3, 0x51, 0xd1, 0x10, 0xa2, 0xb2, 0xea, 0x2c, 0x53, 0x3d, 0xe2, 0xbe, + 0x9d, 0x29, 0x26, 0xef, 0xc2, 0x5a, 0x12, 0x10, 0x09, 0x51, 0x2f, 0xfe, 0xba, 0x90, 0xe5, 0x40, + 0x3c, 0x88, 0x32, 0xed, 0x37, 0xbe, 0x83, 0x96, 0x64, 0x3c, 0xd4, 0x85, 0xd6, 0x03, 0xff, 0xcc, + 0x9e, 0x79, 0xae, 0x71, 0x01, 0xb5, 0xa0, 0x76, 0x9f, 0xc4, 0x46, 0x85, 0x7d, 0x1c, 0x2e, 0x62, + 0xa3, 0x86, 0x00, 0x9a, 0xe2, 0x87, 0x00, 0xa3, 0x8e, 0xda, 0x50, 0x3f, 0xf2, 0xed, 0xd0, 0x68, + 0xa0, 0x1e, 0xb4, 0xd5, 0x6f, 0x0b, 0x46, 0x13, 0xad, 0x41, 0x57, 0xfb, 0xb1, 0xc0, 0x68, 0xa1, + 0x3e, 0x74, 0x92, 0xc7, 0x7f, 0xa3, 0xcd, 0x9a, 0xc9, 0x6b, 0xbe, 0xd1, 0x79, 0xe3, 0x6f, 0x55, + 0x79, 0xeb, 0x56, 0x2e, 0x18, 0xd0, 0x93, 0x2e, 0x70, 0xb1, 0x71, 0x01, 0x0d, 0x00, 0xd2, 0x42, + 0xc4, 0xa8, 0xa0, 0x3e, 0x34, 0x78, 0x4d, 0x63, 0x54, 0x2f, 0x57, 0xdb, 0x15, 0xde, 0x9d, 0x94, + 0x9c, 0x46, 0x0d, 0x21, 0x18, 0x64, 0x2b, 0x4a, 0xa3, 0xce, 0x9c, 0xd2, 0x6e, 0x39, 0x46, 0x83, + 0x19, 0xa5, 0xd5, 0xa2, 0xd1, 0x64, 0xa3, 0xea, 0xa5, 0x9f, 0xd1, 0x92, 0x26, 0xaa, 0x62, 0x33, + 0xda, 0x68, 0x1d, 0xfa, 0x99, 0x8a, 0xcc, 0xe8, 0x30, 0x94, 0xb4, 0xc4, 0x32, 0x80, 0xa1, 0xe8, + 0x25, 0x93, 0xd1, 0x45, 0x23, 0xfe, 0xa3, 0x6c, 0xa6, 0xbe, 0x31, 0x7a, 0x68, 0x08, 0x6b, 0xb9, + 0xea, 0xc5, 0xe8, 0xa3, 0x0d, 0xf5, 0x60, 0xab, 0xd7, 0x1a, 0xc6, 0x80, 0x81, 0xea, 0x17, 0x0d, + 0x63, 0xed, 0x8d, 0x7b, 0xea, 0xa8, 0x56, 0x31, 0x5b, 0x87, 0xbe, 0x8c, 0x99, 0x90, 0x1b, 0x17, + 0x98, 0x95, 0x7e, 0x22, 0x19, 0x95, 0x54, 0x22, 0x8e, 0x11, 0xa3, 0x7a, 0xe7, 0xe6, 0xbf, 0xff, + 0xda, 0xae, 0xfc, 0xfd, 0xd9, 0x56, 0xe5, 0x9f, 0xcf, 0xb6, 0x2a, 0xff, 0x79, 0xb6, 0x55, 0xf9, + 0xf3, 0x4f, 0x5b, 0x17, 0xc0, 0x08, 0xe8, 0xc9, 0x6e, 0xec, 0x9d, 0x9e, 0xed, 0x9e, 0x9e, 0xf1, + 0x7f, 0x39, 0xf8, 0xaa, 0xc9, 0xff, 0xbc, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xd1, + 0x61, 0x98, 0x0e, 0x21, 0x00, 0x00, +} diff --git a/pkg/raft_serverpb/raft_serverpb.pb.go b/pkg/raft_serverpb/raft_serverpb.pb.go index cdc685a1ac..bddb3663b8 100644 --- a/pkg/raft_serverpb/raft_serverpb.pb.go +++ b/pkg/raft_serverpb/raft_serverpb.pb.go @@ -7,13 +7,16 @@ 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" ) @@ -26,7 +29,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type PeerState int32 @@ -49,7 +52,6 @@ var PeerState_name = map[int32]string{ 3: "Merging", 4: "Unavailable", } - var PeerState_value = map[string]int32{ "Normal": 0, "Applying": 1, @@ -61,9 +63,8 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{0} } type ExtraMessageType int32 @@ -106,7 +107,6 @@ var ExtraMessageType_name = map[int32]string{ 13: "MsgFlushMemtable", 14: "MsgRefreshBuckets", } - var ExtraMessageType_value = map[string]int32{ "MsgRegionWakeUp": 0, "MsgWantRollbackMerge": 1, @@ -128,25 +128,24 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -158,7 +157,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{0} } func (m *RaftMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,15 +167,15 @@ func (m *RaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_RaftMessage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftMessage.Merge(dst, src) } func (m *RaftMessage) XXX_Size() int { return m.Size() @@ -283,7 +282,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{1} } func (m *RaftTruncatedState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -293,15 +292,15 @@ func (m *RaftTruncatedState) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_RaftTruncatedState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftTruncatedState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftTruncatedState.Merge(dst, src) } func (m *RaftTruncatedState) XXX_Size() int { return m.Size() @@ -339,7 +338,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{2} } func (m *SnapshotCFFile) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -349,15 +348,15 @@ func (m *SnapshotCFFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_SnapshotCFFile.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotCFFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotCFFile.Merge(dst, src) } func (m *SnapshotCFFile) XXX_Size() int { return m.Size() @@ -390,7 +389,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 @@ -415,7 +414,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{3} } func (m *SnapshotMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -425,15 +424,15 @@ func (m *SnapshotMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SnapshotMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotMeta.Merge(dst, src) } func (m *SnapshotMeta) XXX_Size() int { return m.Size() @@ -494,7 +493,7 @@ func (m *SnapshotMeta) GetCommitIndexHint() uint64 { } type SnapshotChunk struct { - Message *RaftMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Message *RaftMessage `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -505,7 +504,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{4} } func (m *SnapshotChunk) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -515,15 +514,15 @@ func (m *SnapshotChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_SnapshotChunk.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SnapshotChunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_SnapshotChunk.Merge(dst, src) } func (m *SnapshotChunk) XXX_Size() int { return m.Size() @@ -558,7 +557,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{5} } func (m *Done) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -568,15 +567,15 @@ func (m *Done) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Done.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Done) XXX_Merge(src proto.Message) { + xxx_messageInfo_Done.Merge(dst, src) } func (m *Done) XXX_Size() int { return m.Size() @@ -603,7 +602,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{6} } func (m *TabletSnapshotFileMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -613,15 +612,15 @@ func (m *TabletSnapshotFileMeta) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_TabletSnapshotFileMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TabletSnapshotFileMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotFileMeta.Merge(dst, src) } func (m *TabletSnapshotFileMeta) XXX_Size() int { return m.Size() @@ -665,7 +664,7 @@ 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"` @@ -678,7 +677,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{7} } func (m *TabletSnapshotPreview) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -688,15 +687,15 @@ func (m *TabletSnapshotPreview) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_TabletSnapshotPreview.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TabletSnapshotPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotPreview.Merge(dst, src) } func (m *TabletSnapshotPreview) XXX_Size() int { return m.Size() @@ -728,7 +727,7 @@ type TabletSnapshotFileChunk struct { 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"` + Key *encryptionpb.DataKey `protobuf:"bytes,5,opt,name=key" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -738,7 +737,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{8} } func (m *TabletSnapshotFileChunk) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -748,15 +747,15 @@ func (m *TabletSnapshotFileChunk) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_TabletSnapshotFileChunk.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TabletSnapshotFileChunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotFileChunk.Merge(dst, src) } func (m *TabletSnapshotFileChunk) XXX_Size() int { return m.Size() @@ -803,7 +802,7 @@ func (m *TabletSnapshotFileChunk) GetKey() *encryptionpb.DataKey { } type TabletSnapshotHead struct { - Message *RaftMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -814,7 +813,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{9} } func (m *TabletSnapshotHead) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -824,15 +823,15 @@ func (m *TabletSnapshotHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TabletSnapshotHead.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TabletSnapshotHead) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotHead.Merge(dst, src) } func (m *TabletSnapshotHead) XXX_Size() int { return m.Size() @@ -870,7 +869,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{10} } func (m *TabletSnapshotEnd) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -880,15 +879,15 @@ func (m *TabletSnapshotEnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_TabletSnapshotEnd.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TabletSnapshotEnd) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotEnd.Merge(dst, src) } func (m *TabletSnapshotEnd) XXX_Size() int { return m.Size() @@ -922,7 +921,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{11} } func (m *TabletSnapshotRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -932,15 +931,15 @@ func (m *TabletSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_TabletSnapshotRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *TabletSnapshotRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TabletSnapshotRequest.Merge(m, src) +func (dst *TabletSnapshotRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotRequest.Merge(dst, src) } func (m *TabletSnapshotRequest) XXX_Size() int { return m.Size() @@ -958,16 +957,16 @@ type isTabletSnapshotRequest_Payload interface { } type TabletSnapshotRequest_Head struct { - Head *TabletSnapshotHead `protobuf:"bytes,1,opt,name=head,proto3,oneof" json:"head,omitempty"` + Head *TabletSnapshotHead `protobuf:"bytes,1,opt,name=head,oneof"` } type TabletSnapshotRequest_Preview struct { - Preview *TabletSnapshotPreview `protobuf:"bytes,2,opt,name=preview,proto3,oneof" json:"preview,omitempty"` + Preview *TabletSnapshotPreview `protobuf:"bytes,2,opt,name=preview,oneof"` } type TabletSnapshotRequest_Chunk struct { - Chunk *TabletSnapshotFileChunk `protobuf:"bytes,3,opt,name=chunk,proto3,oneof" json:"chunk,omitempty"` + Chunk *TabletSnapshotFileChunk `protobuf:"bytes,3,opt,name=chunk,oneof"` } type TabletSnapshotRequest_End struct { - End *TabletSnapshotEnd `protobuf:"bytes,4,opt,name=end,proto3,oneof" json:"end,omitempty"` + End *TabletSnapshotEnd `protobuf:"bytes,4,opt,name=end,oneof"` } func (*TabletSnapshotRequest_Head) isTabletSnapshotRequest_Payload() {} @@ -1010,9 +1009,9 @@ func (m *TabletSnapshotRequest) GetEnd() *TabletSnapshotEnd { return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TabletSnapshotRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TabletSnapshotRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TabletSnapshotRequest_OneofMarshaler, _TabletSnapshotRequest_OneofUnmarshaler, _TabletSnapshotRequest_OneofSizer, []interface{}{ (*TabletSnapshotRequest_Head)(nil), (*TabletSnapshotRequest_Preview)(nil), (*TabletSnapshotRequest_Chunk)(nil), @@ -1020,8 +1019,110 @@ 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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *TabletSnapshotRequest_Preview: + s := proto.Size(x.Preview) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *TabletSnapshotRequest_Chunk: + s := proto.Size(x.Chunk) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *TabletSnapshotRequest_End: + s := proto.Size(x.End) + n += 1 // tag and wire + 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"` + FileName []string `protobuf:"bytes,1,rep,name=file_name,json=fileName" json:"file_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1031,7 +1132,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{12} } func (m *AcceptedSnapshotFiles) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1041,15 +1142,15 @@ func (m *AcceptedSnapshotFiles) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_AcceptedSnapshotFiles.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AcceptedSnapshotFiles) XXX_Merge(src proto.Message) { + xxx_messageInfo_AcceptedSnapshotFiles.Merge(dst, src) } func (m *AcceptedSnapshotFiles) XXX_Size() int { return m.Size() @@ -1068,7 +1169,7 @@ func (m *AcceptedSnapshotFiles) GetFileName() []string { } type TabletSnapshotResponse struct { - Files *AcceptedSnapshotFiles `protobuf:"bytes,1,opt,name=files,proto3" json:"files,omitempty"` + Files *AcceptedSnapshotFiles `protobuf:"bytes,1,opt,name=files" json:"files,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1078,7 +1179,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{13} } func (m *TabletSnapshotResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1088,15 +1189,15 @@ func (m *TabletSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_TabletSnapshotResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TabletSnapshotResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TabletSnapshotResponse.Merge(dst, src) } func (m *TabletSnapshotResponse) XXX_Size() int { return m.Size() @@ -1126,7 +1227,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{14} } func (m *KeyValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1136,15 +1237,15 @@ func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValue.Merge(dst, src) } func (m *KeyValue) XXX_Size() int { return m.Size() @@ -1170,13 +1271,13 @@ func (m *KeyValue) GetValue() []byte { } type RaftSnapshotData struct { - Region *metapb.Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + 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,proto3" json:"data,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,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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1186,7 +1287,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{15} } func (m *RaftSnapshotData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1196,15 +1297,15 @@ func (m *RaftSnapshotData) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_RaftSnapshotData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftSnapshotData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftSnapshotData.Merge(dst, src) } func (m *RaftSnapshotData) XXX_Size() int { return m.Size() @@ -1277,7 +1378,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{16} } func (m *StoreIdent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1287,15 +1388,15 @@ func (m *StoreIdent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StoreIdent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreIdent) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreIdent.Merge(dst, src) } func (m *StoreIdent) XXX_Size() int { return m.Size() @@ -1343,7 +1444,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{17} } func (m *StoreRecoverState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1353,15 +1454,15 @@ func (m *StoreRecoverState) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_StoreRecoverState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreRecoverState) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreRecoverState.Merge(dst, src) } func (m *StoreRecoverState) XXX_Size() int { return m.Size() @@ -1380,7 +1481,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1391,7 +1492,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{18} } func (m *RaftLocalState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1401,15 +1502,15 @@ func (m *RaftLocalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RaftLocalState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftLocalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftLocalState.Merge(dst, src) } func (m *RaftLocalState) XXX_Size() int { return m.Size() @@ -1439,7 +1540,7 @@ type RaftApplyState struct { 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"` + TruncatedState *RaftTruncatedState `protobuf:"bytes,2,opt,name=truncated_state,json=truncatedState" json:"truncated_state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1449,7 +1550,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{19} } func (m *RaftApplyState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1459,15 +1560,15 @@ func (m *RaftApplyState) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RaftApplyState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RaftApplyState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RaftApplyState.Merge(dst, src) } func (m *RaftApplyState) XXX_Size() int { return m.Size() @@ -1515,7 +1616,7 @@ 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"` + Target *metapb.Region `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` Commit uint64 `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1526,7 +1627,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{20} } func (m *MergeState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1536,15 +1637,15 @@ func (m *MergeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_MergeState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MergeState) XXX_Merge(src proto.Message) { + xxx_messageInfo_MergeState.Merge(dst, src) } func (m *MergeState) XXX_Size() int { return m.Size() @@ -1578,14 +1679,14 @@ 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. @@ -1599,7 +1700,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{21} } func (m *MergedRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1609,15 +1710,15 @@ func (m *MergedRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_MergedRecord.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *MergedRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_MergedRecord.Merge(dst, src) } func (m *MergedRecord) XXX_Size() int { return m.Size() @@ -1693,18 +1794,18 @@ 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"` + MergedRecords []*MergedRecord `protobuf:"bytes,6,rep,name=merged_records,json=mergedRecords" json:"merged_records,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1714,7 +1815,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{22} } func (m *RegionLocalState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1724,15 +1825,15 @@ func (m *RegionLocalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_RegionLocalState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionLocalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionLocalState.Merge(dst, src) } func (m *RegionLocalState) XXX_Size() int { return m.Size() @@ -1788,8 +1889,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1799,7 +1900,7 @@ func (m *RegionSequenceNumberRelation) Reset() { *m = RegionSequenceNumb func (m *RegionSequenceNumberRelation) String() string { return proto.CompactTextString(m) } func (*RegionSequenceNumberRelation) ProtoMessage() {} func (*RegionSequenceNumberRelation) Descriptor() ([]byte, []int) { - return fileDescriptor_130ebc2f2c37a342, []int{23} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{23} } func (m *RegionSequenceNumberRelation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1809,15 +1910,15 @@ func (m *RegionSequenceNumberRelation) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_RegionSequenceNumberRelation.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionSequenceNumberRelation) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionSequenceNumberRelation.Merge(dst, src) } func (m *RegionSequenceNumberRelation) XXX_Size() int { return m.Size() @@ -1858,7 +1959,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1870,7 +1971,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{24} } func (m *AvailabilityContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1880,15 +1981,15 @@ func (m *AvailabilityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_AvailabilityContext.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AvailabilityContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_AvailabilityContext.Merge(dst, src) } func (m *AvailabilityContext) XXX_Size() int { return m.Size() @@ -1938,7 +2039,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{25} } func (m *FlushMemtable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1948,15 +2049,15 @@ func (m *FlushMemtable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_FlushMemtable.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FlushMemtable) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlushMemtable.Merge(dst, src) } func (m *FlushMemtable) XXX_Size() int { return m.Size() @@ -1976,8 +2077,8 @@ 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"` + Keys [][]byte `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` + Sizes []uint64 `protobuf:"varint,3,rep,packed,name=sizes" json:"sizes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1987,7 +2088,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{26} } func (m *RefreshBuckets) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1997,15 +2098,15 @@ func (m *RefreshBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_RefreshBuckets.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RefreshBuckets) XXX_Merge(src proto.Message) { + xxx_messageInfo_RefreshBuckets.Merge(dst, src) } func (m *RefreshBuckets) XXX_Size() int { return m.Size() @@ -2044,9 +2145,9 @@ 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"` + CheckPeer *metapb.Peer `protobuf:"bytes,4,opt,name=check_peer,json=checkPeer" json:"check_peer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2056,7 +2157,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{27} } func (m *CheckGcPeer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2066,15 +2167,15 @@ func (m *CheckGcPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_CheckGcPeer.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *CheckGcPeer) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckGcPeer.Merge(dst, src) } func (m *CheckGcPeer) XXX_Size() int { return m.Size() @@ -2120,16 +2221,16 @@ 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -2139,7 +2240,7 @@ 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} + return fileDescriptor_raft_serverpb_55fae55278c9cf6c, []int{28} } func (m *ExtraMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2149,15 +2250,15 @@ func (m *ExtraMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ExtraMessage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ExtraMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtraMessage.Merge(dst, src) } func (m *ExtraMessage) XXX_Size() int { return m.Size() @@ -2232,8 +2333,6 @@ func (m *ExtraMessage) GetRefreshBuckets() *RefreshBuckets { } func init() { - proto.RegisterEnum("raft_serverpb.PeerState", PeerState_name, PeerState_value) - proto.RegisterEnum("raft_serverpb.ExtraMessageType", ExtraMessageType_name, ExtraMessageType_value) proto.RegisterType((*RaftMessage)(nil), "raft_serverpb.RaftMessage") proto.RegisterType((*RaftTruncatedState)(nil), "raft_serverpb.RaftTruncatedState") proto.RegisterType((*SnapshotCFFile)(nil), "raft_serverpb.SnapshotCFFile") @@ -2263,163 +2362,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{ - // 2320 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x1b, 0x59, - 0xf5, 0xb7, 0x1e, 0xd6, 0xe3, 0xe8, 0x61, 0xe5, 0x3a, 0x4e, 0x34, 0xf1, 0x24, 0x71, 0x3a, 0x93, - 0xc4, 0x93, 0xf9, 0xff, 0x9d, 0x1a, 0x4f, 0x18, 0xa6, 0x86, 0xaa, 0x80, 0xed, 0x24, 0x38, 0x04, - 0xa5, 0x52, 0xd7, 0x4e, 0x52, 0xac, 0xba, 0xae, 0x5a, 0x47, 0x52, 0xa3, 0x7e, 0x4d, 0xdf, 0x2b, - 0x25, 0x9a, 0xe2, 0x5b, 0xb0, 0x99, 0x25, 0x4b, 0x8a, 0x0d, 0xc5, 0x8e, 0x0f, 0xc0, 0x82, 0x82, - 0x0d, 0x4b, 0x96, 0x54, 0xd8, 0xb0, 0x84, 0x25, 0x3b, 0xea, 0x3e, 0xba, 0xd5, 0x2d, 0x2b, 0x0e, - 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7c, 0xf7, 0xf7, 0x6b, 0x6b, - 0xd0, 0x09, 0xe3, 0xd1, 0x9e, 0x70, 0x27, 0xb3, 0xbd, 0xc9, 0x4c, 0xfd, 0x01, 0xdc, 0xaf, 0xa8, - 0x9f, 0x2f, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x00, 0x13, 0x20, 0xd2, 0x90, 0x16, 0x00, 0x00, -} - func (m *RaftMessage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2427,139 +2376,118 @@ func (m *RaftMessage) Marshal() (dAtA []byte, err error) { } func (m *RaftMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RaftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DiskUsage != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.DiskUsage)) - i-- - dAtA[i] = 0x60 - } - if 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.RegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) } - 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2567,36 +2495,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2604,43 +2526,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -2648,82 +2563,73 @@ func (m *SnapshotMeta) Marshal() (dAtA []byte, err error) { } func (m *SnapshotMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SnapshotMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.CommitIndexHint != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CommitIndexHint)) - i-- - dAtA[i] = 0x38 - } - if len(m.TabletSnapPath) > 0 { - i -= len(m.TabletSnapPath) - copy(dAtA[i:], m.TabletSnapPath) - i = encodeVarintRaftServerpb(dAtA, i, uint64(len(m.TabletSnapPath))) - i-- - dAtA[i] = 0x32 - } - if m.GenerateDurationSec != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.GenerateDurationSec)) - i-- - dAtA[i] = 0x28 - } - if m.Start != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Start)) - i-- - dAtA[i] = 0x20 + if len(m.CfFiles) > 0 { + for _, msg := range m.CfFiles { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if m.ForWitness { - i-- - if m.ForWitness { + if m.ForBalance { + dAtA[i] = 0x10 + i++ + if m.ForBalance { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x18 + i++ } - if m.ForBalance { - i-- - if m.ForBalance { + if m.ForWitness { + dAtA[i] = 0x18 + i++ + if m.ForWitness { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if len(m.CfFiles) > 0 { - for iNdEx := len(m.CfFiles) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CfFiles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.Start != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Start)) + } + if m.GenerateDurationSec != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.GenerateDurationSec)) + } + 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 } @@ -2731,45 +2637,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2777,26 +2674,20 @@ 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) + i += 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 } @@ -2804,52 +2695,43 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2857,50 +2739,42 @@ func (m *TabletSnapshotPreview) Marshal() (dAtA []byte, err error) { } func (m *TabletSnapshotPreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if len(m.Metas) > 0 { + for _, msg := range m.Metas { + dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.End { - i-- + dAtA[i] = 0x10 + i++ if m.End { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x10 + i++ } - if len(m.Metas) > 0 { - for iNdEx := len(m.Metas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2908,64 +2782,53 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2973,48 +2836,40 @@ 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 + i++ } - 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3022,31 +2877,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3054,119 +2903,83 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_Head) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_Head) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Head != nil { - { - size, err := m.Head.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0xa + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Head.Size())) + n11, err := m.Head.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_Preview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_Preview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Preview != nil { - { - size, err := m.Preview.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Preview.Size())) + n12, err := m.Preview.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_Chunk) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.Chunk != nil { - { - size, err := m.Chunk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Chunk.Size())) + n13, err := m.Chunk.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 } - return len(dAtA) - i, nil + return i, nil } func (m *TabletSnapshotRequest_End) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TabletSnapshotRequest_End) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + i := 0 if m.End != nil { - { - size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.End.Size())) + n14, err := m.End.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 } - return len(dAtA) - i, nil + return i, nil } func (m *AcceptedSnapshotFiles) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3174,35 +2987,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3210,38 +3023,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3249,40 +3054,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3290,102 +3087,86 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3393,41 +3174,35 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3435,31 +3210,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3467,43 +3236,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3511,58 +3272,50 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3570,48 +3323,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3619,112 +3364,96 @@ func (m *MergedRecord) Marshal() (dAtA []byte, err error) { } func (m *MergedRecord) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MergedRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if m.SourceRegionId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceRegionId)) } - 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)) + 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 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-- - dAtA[i] = 0x4a + i += n } } - if m.SourceIndex != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceIndex)) - i-- - dAtA[i] = 0x40 + if m.TargetRegionId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.TargetRegionId)) } - if m.Index != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x38 + 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 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-- + for _, msg := range m.TargetPeers { dAtA[i] = 0x32 - } - } - if m.TargetEpoch != nil { - { - size, err := m.TargetEpoch.MarshalToSizedBuffer(dAtA[:i]) + 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 + if m.Index != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) } - 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.SourceIndex != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.SourceIndex)) } - if m.SourceEpoch != nil { - { - size, err := m.SourceEpoch.MarshalToSizedBuffer(dAtA[:i]) + 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 -= 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3732,88 +3461,74 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3821,60 +3536,50 @@ 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.RegionState != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionState.Size())) + n26, err := m.RegionState.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 } - if m.RegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3882,63 +3587,55 @@ 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 + i++ } - if m.FromRegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3946,31 +3643,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3978,58 +3669,50 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4037,60 +3720,50 @@ 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.CheckPeer != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckPeer.Size())) + n31, err := m.CheckPeer.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 } - if m.FromRegionId != 0 { - i = encodeVarintRaftServerpb(dAtA, i, uint64(m.FromRegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4098,129 +3771,108 @@ func (m *ExtraMessage) Marshal() (dAtA []byte, err error) { } func (m *ExtraMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExtraMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RefreshBuckets != nil { - { - size, err := m.RefreshBuckets.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a + if m.Type != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Type)) } - if m.AvailabilityContext != nil { - { - size, err := m.AvailabilityContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 + if m.Index != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.Index)) } - if m.FlushMemtable != nil { - { - size, err := m.FlushMemtable.MarshalToSizedBuffer(dAtA[:i]) + if len(m.CheckPeers) > 0 { + for _, msg := range m.CheckPeers { + dAtA[i] = 0x1a + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + i += n } - i-- - dAtA[i] = 0x3a } - if m.CheckGcPeer != nil { - { - size, err := m.CheckGcPeer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRaftServerpb(dAtA, i, uint64(size)) + if m.WaitData { + dAtA[i] = 0x20 + i++ + if m.WaitData { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i-- - dAtA[i] = 0x32 + i++ } if m.ForcelyAwaken { - i-- + dAtA[i] = 0x28 + i++ if m.ForcelyAwaken { dAtA[i] = 1 } else { dAtA[i] = 0 } - i-- - dAtA[i] = 0x28 + i++ } - if m.WaitData { - i-- - if m.WaitData { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.CheckGcPeer != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintRaftServerpb(dAtA, i, uint64(m.CheckGcPeer.Size())) + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -4275,9 +3927,6 @@ func (m *RaftMessage) Size() (n int) { } func (m *RaftTruncatedState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Index != 0 { @@ -4293,9 +3942,6 @@ func (m *RaftTruncatedState) Size() (n int) { } func (m *SnapshotCFFile) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Cf) @@ -4315,9 +3961,6 @@ func (m *SnapshotCFFile) Size() (n int) { } func (m *SnapshotMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.CfFiles) > 0 { @@ -4352,9 +3995,6 @@ func (m *SnapshotMeta) Size() (n int) { } func (m *SnapshotChunk) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Message != nil { @@ -4372,9 +4012,6 @@ func (m *SnapshotChunk) Size() (n int) { } func (m *Done) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -4384,9 +4021,6 @@ func (m *Done) Size() (n int) { } func (m *TabletSnapshotFileMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FileSize != 0 { @@ -4411,9 +4045,6 @@ func (m *TabletSnapshotFileMeta) Size() (n int) { } func (m *TabletSnapshotPreview) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Metas) > 0 { @@ -4432,9 +4063,6 @@ func (m *TabletSnapshotPreview) Size() (n int) { } func (m *TabletSnapshotFileChunk) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FileSize != 0 { @@ -4463,9 +4091,6 @@ func (m *TabletSnapshotFileChunk) Size() (n int) { } func (m *TabletSnapshotHead) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Message != nil { @@ -4482,9 +4107,6 @@ func (m *TabletSnapshotHead) Size() (n int) { } func (m *TabletSnapshotEnd) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Checksum != 0 { @@ -4497,9 +4119,6 @@ func (m *TabletSnapshotEnd) Size() (n int) { } func (m *TabletSnapshotRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Payload != nil { @@ -4512,9 +4131,6 @@ func (m *TabletSnapshotRequest) Size() (n int) { } func (m *TabletSnapshotRequest_Head) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Head != nil { @@ -4524,9 +4140,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 { @@ -4536,9 +4149,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 { @@ -4548,9 +4158,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 { @@ -4560,9 +4167,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 { @@ -4578,9 +4182,6 @@ func (m *AcceptedSnapshotFiles) Size() (n int) { } func (m *TabletSnapshotResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Files != nil { @@ -4594,9 +4195,6 @@ func (m *TabletSnapshotResponse) Size() (n int) { } func (m *KeyValue) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -4614,9 +4212,6 @@ func (m *KeyValue) Size() (n int) { } func (m *RaftSnapshotData) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Region != nil { @@ -4658,9 +4253,6 @@ func (m *RaftSnapshotData) Size() (n int) { } func (m *StoreIdent) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -4679,9 +4271,6 @@ func (m *StoreIdent) Size() (n int) { } func (m *StoreRecoverState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Seqno != 0 { @@ -4694,9 +4283,6 @@ func (m *StoreRecoverState) Size() (n int) { } func (m *RaftLocalState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.HardState != nil { @@ -4713,9 +4299,6 @@ func (m *RaftLocalState) Size() (n int) { } func (m *RaftApplyState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.AppliedIndex != 0 { @@ -4741,9 +4324,6 @@ func (m *RaftApplyState) Size() (n int) { } func (m *MergeState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.MinIndex != 0 { @@ -4763,9 +4343,6 @@ func (m *MergeState) Size() (n int) { } func (m *MergedRecord) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SourceRegionId != 0 { @@ -4813,9 +4390,6 @@ func (m *MergedRecord) Size() (n int) { } func (m *RegionLocalState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != 0 { @@ -4851,9 +4425,6 @@ func (m *RegionLocalState) Size() (n int) { } func (m *RegionSequenceNumberRelation) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -4877,9 +4448,6 @@ func (m *RegionSequenceNumberRelation) Size() (n int) { } func (m *AvailabilityContext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FromRegionId != 0 { @@ -4902,9 +4470,6 @@ func (m *AvailabilityContext) Size() (n int) { } func (m *FlushMemtable) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -4917,9 +4482,6 @@ func (m *FlushMemtable) Size() (n int) { } func (m *RefreshBuckets) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Version != 0 { @@ -4945,9 +4507,6 @@ func (m *RefreshBuckets) Size() (n int) { } func (m *CheckGcPeer) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FromRegionId != 0 { @@ -4971,9 +4530,6 @@ func (m *CheckGcPeer) Size() (n int) { } func (m *ExtraMessage) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -5017,7 +4573,14 @@ func (m *ExtraMessage) Size() (n int) { } 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)))) @@ -5037,7 +4600,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 } @@ -5065,7 +4628,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 } @@ -5084,7 +4647,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 } @@ -5093,9 +4656,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5120,7 +4680,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 } @@ -5129,9 +4689,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5156,7 +4713,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 } @@ -5165,9 +4722,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5192,7 +4746,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 } @@ -5201,9 +4755,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5228,7 +4779,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 } @@ -5248,7 +4799,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 } @@ -5257,9 +4808,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5282,7 +4830,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 } @@ -5291,9 +4839,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5316,7 +4861,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 } @@ -5325,9 +4870,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5352,7 +4894,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 } @@ -5361,9 +4903,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5388,7 +4927,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 } @@ -5397,9 +4936,6 @@ func (m *RaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5422,7 +4958,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 } @@ -5433,7 +4969,7 @@ 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 { @@ -5464,7 +5000,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 } @@ -5492,7 +5028,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 } @@ -5511,7 +5047,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 } @@ -5522,7 +5058,7 @@ 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 { @@ -5553,7 +5089,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 } @@ -5581,7 +5117,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 } @@ -5591,9 +5127,6 @@ func (m *SnapshotCFFile) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5613,7 +5146,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 } @@ -5632,7 +5165,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 } @@ -5643,7 +5176,7 @@ 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 { @@ -5674,7 +5207,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 } @@ -5702,7 +5235,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 } @@ -5711,9 +5244,6 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5736,7 +5266,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 } @@ -5756,7 +5286,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 } @@ -5776,7 +5306,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 } @@ -5795,7 +5325,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 } @@ -5814,7 +5344,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 } @@ -5824,9 +5354,6 @@ func (m *SnapshotMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5846,7 +5373,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 } @@ -5857,7 +5384,7 @@ 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 { @@ -5888,7 +5415,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 } @@ -5916,7 +5443,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 } @@ -5925,9 +5452,6 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5952,7 +5476,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 } @@ -5961,9 +5485,6 @@ func (m *SnapshotChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5978,7 +5499,7 @@ 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 { @@ -6009,7 +5530,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 } @@ -6029,7 +5550,7 @@ 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 { @@ -6060,7 +5581,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 } @@ -6088,7 +5609,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 } @@ -6107,7 +5628,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 } @@ -6117,9 +5638,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6139,7 +5657,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 } @@ -6148,9 +5666,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6173,7 +5688,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 } @@ -6182,9 +5697,6 @@ func (m *TabletSnapshotFileMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6199,7 +5711,7 @@ 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 { @@ -6230,7 +5742,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 } @@ -6258,7 +5770,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 } @@ -6267,9 +5779,6 @@ func (m *TabletSnapshotPreview) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6292,7 +5801,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 } @@ -6304,7 +5813,7 @@ 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 { @@ -6335,7 +5844,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 } @@ -6363,7 +5872,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 } @@ -6382,7 +5891,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 } @@ -6392,9 +5901,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6414,7 +5920,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 } @@ -6423,9 +5929,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6448,7 +5951,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 } @@ -6457,9 +5960,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6482,7 +5982,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 } @@ -6491,9 +5991,6 @@ func (m *TabletSnapshotFileChunk) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6510,7 +6007,7 @@ 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 { @@ -6541,7 +6038,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 } @@ -6569,7 +6066,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 } @@ -6578,9 +6075,6 @@ func (m *TabletSnapshotHead) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6605,7 +6099,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 } @@ -6617,7 +6111,7 @@ 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 { @@ -6648,7 +6142,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 } @@ -6676,7 +6170,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 } @@ -6687,7 +6181,7 @@ 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 { @@ -6718,7 +6212,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 } @@ -6746,7 +6240,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 } @@ -6755,9 +6249,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6781,7 +6272,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 } @@ -6790,9 +6281,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6816,7 +6304,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 } @@ -6825,9 +6313,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6851,7 +6336,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 } @@ -6860,9 +6345,6 @@ func (m *TabletSnapshotRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6878,7 +6360,7 @@ 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 { @@ -6909,7 +6391,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 } @@ -6937,7 +6419,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 } @@ -6947,9 +6429,6 @@ func (m *AcceptedSnapshotFiles) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6961,7 +6440,7 @@ 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 { @@ -6992,7 +6471,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 } @@ -7020,7 +6499,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 } @@ -7029,9 +6508,6 @@ func (m *TabletSnapshotResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7048,7 +6524,7 @@ 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 { @@ -7079,7 +6555,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 } @@ -7107,7 +6583,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 } @@ -7116,9 +6592,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7141,7 +6614,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 } @@ -7150,9 +6623,6 @@ func (m *KeyValue) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7167,7 +6637,7 @@ 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 { @@ -7198,7 +6668,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 } @@ -7226,7 +6696,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 } @@ -7235,9 +6705,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7262,7 +6729,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 } @@ -7281,7 +6748,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 } @@ -7290,9 +6757,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7315,7 +6779,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 } @@ -7334,7 +6798,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 } @@ -7343,9 +6807,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7370,7 +6831,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 } @@ -7379,9 +6840,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7404,7 +6862,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 } @@ -7413,9 +6871,6 @@ func (m *RaftSnapshotData) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7430,7 +6885,7 @@ 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 { @@ -7461,7 +6916,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 } @@ -7489,7 +6944,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 } @@ -7508,7 +6963,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 } @@ -7527,7 +6982,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 } @@ -7538,7 +6993,7 @@ 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 { @@ -7569,7 +7024,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 } @@ -7597,7 +7052,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 } @@ -7608,7 +7063,7 @@ 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 { @@ -7639,7 +7094,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 } @@ -7667,7 +7122,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 } @@ -7676,9 +7131,6 @@ func (m *RaftLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7703,7 +7155,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 } @@ -7714,7 +7166,7 @@ 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 { @@ -7745,7 +7197,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 } @@ -7773,7 +7225,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 } @@ -7792,7 +7244,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 } @@ -7801,9 +7253,6 @@ func (m *RaftApplyState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7828,7 +7277,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 } @@ -7847,7 +7296,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 } @@ -7866,7 +7315,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 } @@ -7877,7 +7326,7 @@ 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 { @@ -7908,7 +7357,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 } @@ -7936,7 +7385,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 } @@ -7955,7 +7404,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 } @@ -7964,9 +7413,6 @@ func (m *MergeState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7991,7 +7437,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 } @@ -8002,7 +7448,7 @@ 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 { @@ -8033,7 +7479,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 } @@ -8061,7 +7507,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 } @@ -8080,7 +7526,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 } @@ -8089,9 +7535,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8116,7 +7559,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 } @@ -8125,9 +7568,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8150,7 +7590,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 } @@ -8169,7 +7609,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 } @@ -8178,9 +7618,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8205,7 +7642,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 } @@ -8214,9 +7651,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8239,7 +7673,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 } @@ -8258,7 +7692,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 } @@ -8277,7 +7711,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 } @@ -8286,9 +7720,6 @@ func (m *MergedRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8303,7 +7734,7 @@ 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 { @@ -8334,7 +7765,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 } @@ -8362,7 +7793,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 } @@ -8381,7 +7812,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 } @@ -8390,9 +7821,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8417,7 +7845,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 } @@ -8426,9 +7854,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8453,7 +7878,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 } @@ -8472,7 +7897,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 } @@ -8481,9 +7906,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8506,7 +7928,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 } @@ -8515,9 +7937,6 @@ func (m *RegionLocalState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8532,7 +7951,7 @@ 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 { @@ -8563,7 +7982,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 } @@ -8591,7 +8010,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 } @@ -8610,7 +8029,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 } @@ -8629,7 +8048,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 } @@ -8638,9 +8057,6 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8665,7 +8081,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 } @@ -8674,9 +8090,6 @@ func (m *RegionSequenceNumberRelation) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8693,7 +8106,7 @@ 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 { @@ -8724,7 +8137,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 } @@ -8752,7 +8165,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 } @@ -8771,7 +8184,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 } @@ -8780,9 +8193,6 @@ func (m *AvailabilityContext) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8807,7 +8217,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 } @@ -8827,7 +8237,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 } @@ -8839,7 +8249,7 @@ 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 { @@ -8870,7 +8280,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 } @@ -8898,7 +8308,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 } @@ -8909,7 +8319,7 @@ 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 { @@ -8940,7 +8350,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 } @@ -8968,7 +8378,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 } @@ -8987,7 +8397,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 } @@ -8996,9 +8406,6 @@ func (m *RefreshBuckets) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9017,7 +8424,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 } @@ -9034,7 +8441,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 } @@ -9043,23 +8450,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 { @@ -9071,7 +8464,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 } @@ -9087,7 +8480,7 @@ 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 { @@ -9118,7 +8511,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 } @@ -9146,7 +8539,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 } @@ -9165,7 +8558,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 } @@ -9184,7 +8577,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 } @@ -9193,9 +8586,6 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9220,7 +8610,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 } @@ -9229,9 +8619,6 @@ func (m *CheckGcPeer) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9248,7 +8635,7 @@ 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 { @@ -9279,7 +8666,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 } @@ -9307,7 +8694,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 } @@ -9326,7 +8713,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 } @@ -9345,7 +8732,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 } @@ -9354,9 +8741,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9379,7 +8763,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 } @@ -9399,7 +8783,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 } @@ -9419,7 +8803,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 } @@ -9428,9 +8812,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9455,7 +8836,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 } @@ -9464,9 +8845,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9491,7 +8869,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 } @@ -9500,9 +8878,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9527,7 +8902,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 } @@ -9536,9 +8911,6 @@ func (m *ExtraMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRaftServerpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRaftServerpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9555,7 +8927,7 @@ 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 { @@ -9574,7 +8946,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 { @@ -9606,8 +8977,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 { @@ -9624,34 +8997,205 @@ 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", fileDescriptor_raft_serverpb_55fae55278c9cf6c) } + +var fileDescriptor_raft_serverpb_55fae55278c9cf6c = []byte{ + // 2321 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x1c, 0x49, + 0x11, 0xd6, 0x3c, 0x34, 0x8f, 0x9c, 0x87, 0x46, 0x25, 0xcb, 0x1e, 0x5b, 0x6b, 0x5b, 0x6e, 0xaf, + 0x6d, 0xad, 0x17, 0xe4, 0x58, 0xad, 0x59, 0x36, 0x96, 0x08, 0x83, 0x24, 0xdb, 0xc8, 0x98, 0x71, + 0x38, 0x4a, 0xb2, 0x1d, 0x9c, 0x3a, 0x4a, 0x3d, 0x39, 0x33, 0xcd, 0xf4, 0x6b, 0xbb, 0x6a, 0xc6, + 0x9e, 0x0d, 0xfe, 0x05, 0x97, 0x3d, 0x72, 0x24, 0xb8, 0x10, 0xdc, 0xf8, 0x01, 0x1c, 0x08, 0xb8, + 0x70, 0xe4, 0x48, 0x98, 0x0b, 0x47, 0x38, 0x72, 0x23, 0xea, 0xd1, 0x3d, 0xdd, 0xa3, 0xb1, 0xcc, + 0xfa, 0xd4, 0x55, 0xf9, 0xa8, 0xca, 0xca, 0xfc, 0x32, 0x2b, 0xab, 0x61, 0x23, 0x66, 0x03, 0x61, + 0x73, 0x8c, 0xa7, 0x18, 0x47, 0xa7, 0xbb, 0x51, 0x1c, 0x8a, 0x90, 0xb4, 0x72, 0xc4, 0x2b, 0x2d, + 0x94, 0xf3, 0x84, 0x7b, 0xa5, 0xe9, 0xa3, 0x60, 0xe9, 0xac, 0x35, 0x9e, 0xc6, 0x91, 0x93, 0x4e, + 0x3b, 0x7d, 0x97, 0x8f, 0xed, 0x09, 0x67, 0x43, 0x34, 0x14, 0x82, 0x81, 0x13, 0xcf, 0x22, 0xe1, + 0x86, 0x41, 0x2a, 0xb5, 0x16, 0x4f, 0xb8, 0x50, 0x43, 0x4d, 0xb0, 0xfe, 0x5b, 0x82, 0x06, 0x65, + 0x03, 0xd1, 0x43, 0x2e, 0x55, 0xc9, 0x16, 0xd4, 0x63, 0x1c, 0xba, 0x61, 0x60, 0xbb, 0xfd, 0x6e, + 0x61, 0xbb, 0xb0, 0x53, 0xa6, 0x35, 0x4d, 0x78, 0xd2, 0x27, 0x9f, 0x40, 0x7d, 0x10, 0x87, 0xbe, + 0x1d, 0x21, 0xc6, 0xdd, 0xe2, 0x76, 0x61, 0xa7, 0xb1, 0xd7, 0xdc, 0x35, 0x46, 0x3d, 0x47, 0x8c, + 0x69, 0x4d, 0xb2, 0xe5, 0x88, 0xdc, 0x82, 0xaa, 0x08, 0xb5, 0x60, 0x69, 0x89, 0x60, 0x45, 0x84, + 0x4a, 0xec, 0x2e, 0x54, 0x7d, 0xbd, 0x73, 0xb7, 0xac, 0xc4, 0x3a, 0xbb, 0xc9, 0x99, 0x8d, 0x45, + 0x34, 0x11, 0x20, 0x5f, 0x40, 0xd3, 0x98, 0x86, 0x51, 0xe8, 0x8c, 0xba, 0xab, 0x4a, 0x61, 0x23, + 0x59, 0x97, 0x2a, 0xde, 0x23, 0xc9, 0xa2, 0x8d, 0x78, 0x3e, 0x21, 0x37, 0xa0, 0xe9, 0x72, 0x5b, + 0x84, 0xfe, 0x29, 0x17, 0x61, 0x80, 0xdd, 0xca, 0x76, 0x61, 0xa7, 0x46, 0x1b, 0x2e, 0x3f, 0x49, + 0x48, 0xf2, 0xd4, 0x5c, 0xb0, 0x58, 0xd8, 0x63, 0x9c, 0x75, 0xab, 0xdb, 0x85, 0x9d, 0x26, 0xad, + 0x29, 0xc2, 0x53, 0x9c, 0x91, 0x4b, 0x50, 0xc5, 0xa0, 0xaf, 0x58, 0x35, 0xc5, 0xaa, 0x60, 0xd0, + 0x97, 0x8c, 0xcf, 0xa0, 0xe9, 0x63, 0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 0xc0, 0xf5, 0x90, + 0x77, 0x0b, 0xdb, 0xa5, 0x9d, 0xc6, 0xde, 0xd5, 0x05, 0x77, 0xe5, 0x2d, 0xa0, 0x55, 0x67, 0x20, + 0xbf, 0x9c, 0x5c, 0x87, 0xc6, 0x20, 0x8c, 0xed, 0x53, 0xe6, 0xb1, 0xc0, 0xd1, 0x16, 0xd4, 0x28, + 0x0c, 0xc2, 0xf8, 0x40, 0x53, 0x12, 0x81, 0xd7, 0xae, 0x08, 0x90, 0x73, 0x65, 0x8a, 0x16, 0x78, + 0xa5, 0x29, 0xd2, 0x11, 0x0a, 0x03, 0x0a, 0x99, 0x65, 0xaa, 0x27, 0x64, 0x0f, 0x36, 0x87, 0x18, + 0x60, 0xcc, 0x04, 0xda, 0xfd, 0x49, 0xcc, 0x64, 0x7a, 0xd9, 0x1c, 0x1d, 0x05, 0xc7, 0x32, 0xdd, + 0x48, 0x98, 0x0f, 0x0d, 0xef, 0x18, 0x1d, 0xb2, 0x03, 0x1d, 0xc1, 0x4e, 0x3d, 0x14, 0x36, 0x0f, + 0x58, 0x64, 0x47, 0x4c, 0x8c, 0x14, 0x0a, 0xeb, 0xb4, 0xad, 0xe9, 0xf2, 0x10, 0xcf, 0x99, 0x18, + 0x91, 0xbb, 0xb0, 0xee, 0x84, 0xbe, 0xef, 0x0a, 0x5b, 0xb9, 0xdd, 0x1e, 0xb9, 0x81, 0x50, 0x80, + 0x2c, 0xd3, 0x35, 0xcd, 0x78, 0x22, 0xe9, 0x47, 0x6e, 0x20, 0xac, 0x5f, 0x40, 0x2b, 0x3d, 0xfc, + 0x68, 0x12, 0x8c, 0xc9, 0xfd, 0x79, 0x32, 0x15, 0x14, 0xb4, 0xae, 0x2c, 0xf8, 0x2a, 0x93, 0xe8, + 0xf3, 0xb4, 0x22, 0x50, 0xee, 0x33, 0xc1, 0x94, 0x87, 0x9a, 0x54, 0x8d, 0xad, 0x0a, 0x94, 0x1f, + 0x86, 0x01, 0x5a, 0xdf, 0x16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0x56, 0xc9, 0x1d, 0xb8, 0xa9, 0xec, 0xfa, 0x25, 0x3a, 0x42, 0xb7, 0xac, 0xc3, 0x43, + 0x36, 0xe1, 0xd8, 0x3f, 0x98, 0xf5, 0xd0, 0x0f, 0xe3, 0x99, 0xfa, 0xfd, 0xd5, 0xa9, 0x90, 0x2b, + 0x70, 0xb1, 0xc7, 0x87, 0xd9, 0x00, 0x25, 0xcb, 0x57, 0xc9, 0x16, 0x5c, 0x3a, 0xc3, 0x33, 0x3b, + 0xd4, 0x88, 0x05, 0xd7, 0x7a, 0x7c, 0xf8, 0x32, 0x14, 0xd2, 0xd4, 0xc8, 0x73, 0x55, 0xfb, 0xa8, + 0xee, 0xb8, 0x64, 0x81, 0x3a, 0xb9, 0x09, 0xd7, 0xdf, 0x29, 0x63, 0x16, 0x02, 0x72, 0x01, 0x3a, + 0x3d, 0x3e, 0x34, 0x48, 0x35, 0xaa, 0x0d, 0xe3, 0xa9, 0x84, 0x6a, 0x84, 0x9b, 0x46, 0x38, 0x07, + 0xcd, 0x4e, 0xcb, 0x08, 0xe7, 0x31, 0xd1, 0x69, 0x1f, 0xdc, 0xfe, 0xfb, 0x6f, 0x6b, 0x85, 0x3f, + 0xbf, 0xbd, 0x56, 0xf8, 0xdb, 0xdb, 0x6b, 0x85, 0x7f, 0xbc, 0xbd, 0x56, 0xf8, 0xf6, 0x9f, 0xd7, + 0x56, 0xa0, 0x13, 0xc6, 0xc3, 0x5d, 0xe1, 0x8e, 0xa7, 0xbb, 0xe3, 0xa9, 0xfa, 0x01, 0x7c, 0x5a, + 0x51, 0x9f, 0xcf, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x94, 0x95, 0x4a, 0x90, 0x16, 0x00, + 0x00, +} diff --git a/pkg/recoverdatapb/recoverdatapb.pb.go b/pkg/recoverdatapb/recoverdatapb.pb.go index 5783f762b1..f220e85f18 100644 --- a/pkg/recoverdatapb/recoverdatapb.pb.go +++ b/pkg/recoverdatapb/recoverdatapb.pb.go @@ -4,17 +4,16 @@ 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,7 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.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 { @@ -40,7 +39,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{0} } func (m *ReadRegionMetaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -50,15 +49,15 @@ func (m *ReadRegionMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ReadRegionMetaRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReadRegionMetaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadRegionMetaRequest.Merge(dst, src) } func (m *ReadRegionMetaRequest) XXX_Size() int { return m.Size() @@ -87,7 +86,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{1} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -97,15 +96,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -142,7 +141,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{2} } func (m *RegionMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,15 +151,15 @@ func (m *RegionMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RegionMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionMeta.Merge(dst, src) } func (m *RegionMeta) XXX_Size() int { return m.Size() @@ -248,7 +247,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{3} } func (m *RecoverRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -258,15 +257,15 @@ func (m *RecoverRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_RecoverRegionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RecoverRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverRegionRequest.Merge(dst, src) } func (m *RecoverRegionRequest) XXX_Size() int { return m.Size() @@ -299,7 +298,7 @@ func (m *RecoverRegionRequest) GetTombstone() bool { } type RecoverRegionResponse 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -310,7 +309,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{4} } func (m *RecoverRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -320,15 +319,15 @@ func (m *RecoverRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_RecoverRegionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RecoverRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecoverRegionResponse.Merge(dst, src) } func (m *RecoverRegionResponse) XXX_Size() int { return m.Size() @@ -365,7 +364,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{5} } func (m *WaitApplyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -375,15 +374,15 @@ func (m *WaitApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_WaitApplyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WaitApplyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitApplyRequest.Merge(dst, src) } func (m *WaitApplyRequest) XXX_Size() int { return m.Size() @@ -402,7 +401,7 @@ func (m *WaitApplyRequest) GetStoreId() uint64 { } type WaitApplyResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -412,7 +411,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{6} } func (m *WaitApplyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -422,15 +421,15 @@ func (m *WaitApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_WaitApplyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *WaitApplyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WaitApplyResponse.Merge(dst, src) } func (m *WaitApplyResponse) XXX_Size() int { return m.Size() @@ -448,9 +447,9 @@ func (m *WaitApplyResponse) GetError() *Error { return nil } -// resolve data by resolved_ts +// resolve data by watermark type ResolveKvDataRequest struct { - ResolvedTs uint64 `protobuf:"varint,1,opt,name=resolved_ts,json=resolvedTs,proto3" json:"resolved_ts,omitempty"` + Watermark uint64 `protobuf:"varint,1,opt,name=watermark,proto3" json:"watermark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -460,7 +459,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{7} } func (m *ResolveKvDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -470,15 +469,15 @@ func (m *ResolveKvDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_ResolveKvDataRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResolveKvDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveKvDataRequest.Merge(dst, src) } func (m *ResolveKvDataRequest) XXX_Size() int { return m.Size() @@ -489,19 +488,19 @@ func (m *ResolveKvDataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ResolveKvDataRequest proto.InternalMessageInfo -func (m *ResolveKvDataRequest) GetResolvedTs() uint64 { +func (m *ResolveKvDataRequest) GetWatermark() uint64 { if m != nil { - return m.ResolvedTs + return m.Watermark } return 0 } 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% + // progress is (current_commit_ts - watermark) / (backup_ts - watermark) 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:"-"` @@ -512,7 +511,7 @@ 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} + return fileDescriptor_recoverdatapb_426ae8f017e40986, []int{8} } func (m *ResolveKvDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -522,15 +521,15 @@ func (m *ResolveKvDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ResolveKvDataResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResolveKvDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResolveKvDataResponse.Merge(dst, src) } func (m *ResolveKvDataResponse) XXX_Size() int { return m.Size() @@ -581,50 +580,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, 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, 0x48, 0x1f, 0x4a, 0x5f, 0xfe, 0x4f, 0x1f, 0xc8, 0x3d, 0x20, 0x17, 0x0d, - 0x9c, 0x63, 0xe6, 0x8d, 0xe8, 0x24, 0x11, 0x79, 0x5e, 0x77, 0x0b, 0xa6, 0x8f, 0xd9, 0xa9, 0xc4, - 0xc9, 0x5d, 0xd8, 0x1b, 0x4d, 0x18, 0xc3, 0x44, 0x78, 0x79, 0x3a, 0x05, 0xcf, 0xb3, 0xbb, 0x93, - 0x13, 0xa7, 0x0a, 0x1f, 0xf0, 0xee, 0xaf, 0x0a, 0xd4, 0xf3, 0x09, 0xca, 0xbe, 0xc9, 0x6b, 0xb8, - 0x56, 0x7e, 0xa8, 0xe4, 0xa4, 0xdc, 0xf2, 0xa5, 0xcf, 0xb8, 0x61, 0x2f, 0x8b, 0x0a, 0x81, 0xb3, - 0xf6, 0xd0, 0x20, 0x6f, 0x61, 0xbb, 0x94, 0x12, 0xe2, 0x2c, 0xcb, 0x57, 0x23, 0xdb, 0x38, 0xb9, - 0x52, 0xa3, 0xed, 0x75, 0xd6, 0xda, 0x06, 0x79, 0x05, 0xd6, 0xc5, 0xd4, 0x49, 0xb3, 0xfc, 0xd5, - 0x72, 0x7a, 0x1a, 0xc7, 0x7f, 0xe4, 0x8b, 0x1d, 0x75, 0xb7, 0x0b, 0xb3, 0x5c, 0xed, 0x76, 0x35, - 0x22, 0xab, 0xdd, 0x5e, 0x12, 0x06, 0xe9, 0xc5, 0xb3, 0x83, 0xef, 0x9f, 0x4d, 0xe3, 0xeb, 0xac, - 0x69, 0x7c, 0x9b, 0x35, 0x8d, 0x1f, 0xb3, 0xa6, 0xf1, 0xe9, 0x67, 0x73, 0x6d, 0x58, 0x55, 0xbf, - 0xc9, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x87, 0xe7, 0x69, 0x54, 0x72, 0x05, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -633,9 +588,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) @@ -762,7 +716,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 +729,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 +851,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 +859,25 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +885,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +912,72 @@ 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 + i++ } - if m.LastLogTerm != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.LastLogTerm)) - i-- - dAtA[i] = 0x18 + 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.PeerId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x10 + if len(m.EndKey) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(len(m.EndKey))) + i += copy(dAtA[i:], m.EndKey) } - if m.RegionId != 0 { - i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +985,45 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1031,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1067,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1093,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1124,25 @@ 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-- + if m.Watermark != 0 { dAtA[i] = 0x8 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.Watermark)) } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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,64 +1150,51 @@ 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.CurrentCommitTs != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintRecoverdatapb(dAtA, i, uint64(m.CurrentCommitTs)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -1337,9 +1207,6 @@ func (m *ReadRegionMetaRequest) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Msg) @@ -1353,9 +1220,6 @@ func (m *Error) Size() (n int) { } func (m *RegionMeta) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1394,9 +1258,6 @@ func (m *RegionMeta) Size() (n int) { } func (m *RecoverRegionRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RegionId != 0 { @@ -1415,9 +1276,6 @@ func (m *RecoverRegionRequest) Size() (n int) { } func (m *RecoverRegionResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1434,9 +1292,6 @@ func (m *RecoverRegionResponse) Size() (n int) { } func (m *WaitApplyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { @@ -1449,9 +1304,6 @@ func (m *WaitApplyRequest) Size() (n int) { } func (m *WaitApplyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1465,13 +1317,10 @@ func (m *WaitApplyResponse) Size() (n int) { } 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.Watermark != 0 { + n += 1 + sovRecoverdatapb(uint64(m.Watermark)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) @@ -1480,9 +1329,6 @@ func (m *ResolveKvDataRequest) Size() (n int) { } func (m *ResolveKvDataResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -1505,7 +1351,14 @@ func (m *ResolveKvDataResponse) Size() (n int) { } 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 +1378,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 +1406,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,7 +1417,7 @@ 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 { @@ -1595,7 +1448,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 +1476,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 +1486,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,7 +1497,7 @@ 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 { @@ -1678,7 +1528,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 +1556,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 +1575,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 +1594,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 +1613,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 +1632,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 +1651,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 +1670,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 +1690,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 +1699,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 +1721,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 +1730,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,7 +1744,7 @@ 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 { @@ -1931,7 +1775,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 +1803,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 +1822,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 +1842,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,7 +1854,7 @@ 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 { @@ -2041,7 +1885,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 +1913,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 +1922,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 +1946,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,7 +1957,7 @@ 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 { @@ -2147,7 +1988,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 +2016,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,7 +2027,7 @@ 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 { @@ -2217,7 +2058,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 +2086,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 +2095,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,7 +2111,7 @@ 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 { @@ -2304,7 +2142,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 } @@ -2320,9 +2158,9 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedTs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Watermark", wireType) } - m.ResolvedTs = 0 + m.Watermark = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRecoverdatapb @@ -2332,7 +2170,7 @@ func (m *ResolveKvDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ResolvedTs |= uint64(b&0x7F) << shift + m.Watermark |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -2343,7 +2181,7 @@ 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 { @@ -2374,7 +2212,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 +2240,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 +2249,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 +2273,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 +2292,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 +2311,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,7 +2322,7 @@ 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 { @@ -2506,7 +2341,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 +2372,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 +2392,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", fileDescriptor_recoverdatapb_426ae8f017e40986) } + +var fileDescriptor_recoverdatapb_426ae8f017e40986 = []byte{ + // 606 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xad, 0xd3, 0x36, 0xb1, 0xa7, 0x2d, 0x4d, 0xb7, 0x41, 0xb8, 0x69, 0x09, 0xc1, 0xbd, 0x04, + 0x04, 0x01, 0x05, 0xce, 0x48, 0x50, 0x38, 0x44, 0x29, 0x1c, 0x4c, 0x25, 0x2e, 0x20, 0x6b, 0x13, + 0x8f, 0x2c, 0xab, 0xb1, 0xd7, 0xec, 0x6e, 0x02, 0xf9, 0x11, 0xc4, 0x27, 0xf0, 0x07, 0xfc, 0x02, + 0x47, 0x8e, 0x1c, 0x51, 0xb8, 0xf3, 0x0d, 0x68, 0x77, 0x1d, 0x12, 0x27, 0xa5, 0x02, 0x89, 0xdb, + 0xce, 0x7b, 0x2f, 0xb3, 0xb3, 0x6f, 0x9e, 0x03, 0xfb, 0x1c, 0x07, 0x6c, 0x8c, 0x3c, 0xa4, 0x92, + 0x66, 0xfd, 0x76, 0xc6, 0x99, 0x64, 0x64, 0x3b, 0x07, 0x03, 0x85, 0xd6, 0x6b, 0x11, 0x8b, 0x98, + 0x26, 0xee, 0xa9, 0x93, 0xd1, 0xd4, 0x77, 0xf9, 0x48, 0x48, 0x7d, 0x34, 0x80, 0xd7, 0x81, 0xab, + 0x3e, 0xd2, 0xd0, 0xc7, 0x28, 0x66, 0xe9, 0x73, 0x94, 0xd4, 0xc7, 0xb7, 0x23, 0x14, 0x92, 0x1c, + 0x80, 0x2d, 0x24, 0xe3, 0x18, 0xc4, 0xa1, 0x6b, 0x35, 0xad, 0xd6, 0x86, 0x5f, 0xd1, 0x75, 0x37, + 0xf4, 0x0e, 0x60, 0xf3, 0x19, 0xe7, 0x8c, 0x93, 0x2a, 0xac, 0x27, 0x22, 0xd2, 0xb4, 0xe3, 0xab, + 0xa3, 0xf7, 0xa1, 0x04, 0x30, 0xef, 0x45, 0x0e, 0xc1, 0xe1, 0xba, 0x9a, 0x77, 0xb1, 0x0d, 0xd0, + 0x0d, 0xc9, 0x35, 0xa8, 0x64, 0x88, 0x5c, 0x51, 0x25, 0x4d, 0x95, 0x55, 0xd9, 0x0d, 0x89, 0x07, + 0x3b, 0x43, 0x2a, 0x64, 0x30, 0x64, 0x51, 0x20, 0x91, 0x27, 0xee, 0xba, 0xa6, 0xb7, 0x14, 0x78, + 0xca, 0xa2, 0x33, 0xe4, 0x09, 0xb9, 0x0e, 0xa0, 0x35, 0x71, 0x1a, 0xe2, 0x7b, 0x77, 0x43, 0x0b, + 0x1c, 0x85, 0x74, 0x15, 0x40, 0x6e, 0xc2, 0xf6, 0x80, 0x25, 0x49, 0x3c, 0x13, 0x6c, 0x9a, 0x0e, + 0x06, 0x33, 0x12, 0x17, 0x2a, 0x63, 0xe4, 0x22, 0x66, 0xa9, 0x5b, 0x36, 0xef, 0xcb, 0x4b, 0x72, + 0x04, 0x8e, 0x64, 0x49, 0x5f, 0x48, 0x96, 0xa2, 0x5b, 0x69, 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+ 0x1b, 0x8c, 0x38, 0xc7, 0x54, 0x06, 0x79, 0x34, 0xa5, 0xc8, 0x83, 0xbb, 0x9b, 0x13, 0x27, 0x1a, + 0x3f, 0x13, 0x9d, 0x9f, 0x25, 0xd8, 0xca, 0xd7, 0xa7, 0xe6, 0x26, 0x2f, 0xe1, 0x4a, 0xf1, 0x2b, + 0x25, 0xc7, 0xc5, 0x91, 0x2f, 0xfc, 0x86, 0xeb, 0xee, 0xb2, 0x68, 0x26, 0xf0, 0xd6, 0xee, 0x5b, + 0xe4, 0x35, 0xec, 0x14, 0x22, 0x42, 0xbc, 0x65, 0xf9, 0x6a, 0x5e, 0xeb, 0xc7, 0x97, 0x6a, 0x8c, + 0xbd, 0xde, 0x5a, 0xcb, 0x22, 0x2f, 0xc0, 0xf9, 0xbd, 0x72, 0xd2, 0x28, 0xfe, 0x6a, 0x39, 0x3a, + 0xf5, 0x1b, 0x7f, 0xe4, 0x67, 0x1d, 0xcd, 0xb4, 0x0b, 0xbb, 0x5c, 0x9d, 0x76, 0x35, 0x1f, 0xab, + 0xd3, 0x5e, 0x10, 0x06, 0xe5, 0xc5, 0x93, 0xda, 0xb7, 0x4f, 0xb6, 0xf5, 0x65, 0xda, 0xb0, 0xbe, + 0x4e, 0x1b, 0xd6, 0xf7, 0x69, 0xc3, 0xfa, 0xf8, 0xa3, 0xb1, 0xd6, 0x2f, 0xeb, 0xff, 0xc8, 0x07, + 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xc5, 0x75, 0x9a, 0x6f, 0x05, 0x00, 0x00, +} diff --git a/pkg/replication_modepb/replication_modepb.pb.go b/pkg/replication_modepb/replication_modepb.pb.go index d4a507cc3b..58b25bbb16 100644 --- a/pkg/replication_modepb/replication_modepb.pb.go +++ b/pkg/replication_modepb/replication_modepb.pb.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "math" - math_bits "math/bits" proto "github.com/golang/protobuf/proto" ) @@ -21,7 +20,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 +35,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 +43,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 fileDescriptor_replication_modepb_160f12c257222853, []int{0} } type DRAutoSyncState int32 @@ -69,7 +66,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 +76,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 fileDescriptor_replication_modepb_160f12c257222853, []int{1} } type RegionReplicationState int32 @@ -101,7 +96,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,15 +105,14 @@ 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 fileDescriptor_replication_modepb_160f12c257222853, []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"` + DrAutoSync *DRAutoSync `protobuf:"bytes,2,opt,name=dr_auto_sync,json=drAutoSync" json:"dr_auto_sync,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -129,7 +122,7 @@ 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} + return fileDescriptor_replication_modepb_160f12c257222853, []int{0} } func (m *ReplicationStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -139,15 +132,15 @@ func (m *ReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_ReplicationStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ReplicationStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReplicationStatus.Merge(dst, src) } func (m *ReplicationStatus) XXX_Size() int { return m.Size() @@ -182,7 +175,7 @@ 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:"-"` @@ -194,7 +187,7 @@ 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} + return fileDescriptor_replication_modepb_160f12c257222853, []int{1} } func (m *DRAutoSync) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -204,15 +197,15 @@ func (m *DRAutoSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DRAutoSync.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DRAutoSync) XXX_Merge(src proto.Message) { + xxx_messageInfo_DRAutoSync.Merge(dst, src) } func (m *DRAutoSync) XXX_Size() int { return m.Size() @@ -279,7 +272,7 @@ 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} + return fileDescriptor_replication_modepb_160f12c257222853, []int{2} } func (m *RegionReplicationStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -289,15 +282,15 @@ func (m *RegionReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_RegionReplicationStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionReplicationStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionReplicationStatus.Merge(dst, src) } func (m *RegionReplicationStatus) XXX_Size() int { return m.Size() @@ -334,7 +327,7 @@ 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} + return fileDescriptor_replication_modepb_160f12c257222853, []int{3} } func (m *StoreDRAutoSyncStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -344,15 +337,15 @@ func (m *StoreDRAutoSyncStatus) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_StoreDRAutoSyncStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreDRAutoSyncStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreDRAutoSyncStatus.Merge(dst, src) } func (m *StoreDRAutoSyncStatus) XXX_Size() int { return m.Size() @@ -378,57 +371,18 @@ func (m *StoreDRAutoSyncStatus) GetStateId() uint64 { } func init() { - proto.RegisterEnum("replication_modepb.ReplicationMode", ReplicationMode_name, ReplicationMode_value) - proto.RegisterEnum("replication_modepb.DRAutoSyncState", DRAutoSyncState_name, DRAutoSyncState_value) - proto.RegisterEnum("replication_modepb.RegionReplicationState", RegionReplicationState_name, RegionReplicationState_value) proto.RegisterType((*ReplicationStatus)(nil), "replication_modepb.ReplicationStatus") proto.RegisterType((*DRAutoSync)(nil), "replication_modepb.DRAutoSync") proto.RegisterType((*RegionReplicationStatus)(nil), "replication_modepb.RegionReplicationStatus") proto.RegisterType((*StoreDRAutoSyncStatus)(nil), "replication_modepb.StoreDRAutoSyncStatus") + proto.RegisterEnum("replication_modepb.ReplicationMode", ReplicationMode_name, ReplicationMode_value) + proto.RegisterEnum("replication_modepb.DRAutoSyncState", DRAutoSyncState_name, DRAutoSyncState_value) + proto.RegisterEnum("replication_modepb.RegionReplicationState", RegionReplicationState_name, RegionReplicationState_value) } - -func init() { proto.RegisterFile("replication_modepb.proto", fileDescriptor_405bb93d9863dfea) } - -var fileDescriptor_405bb93d9863dfea = []byte{ - // 501 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xcd, 0xe4, 0xa7, 0x4d, 0x6e, 0xa3, 0x66, 0xbe, 0xe9, 0x47, 0x31, 0x42, 0x8a, 0xac, 0xb0, - 0x31, 0x11, 0xaa, 0x44, 0xbb, 0x40, 0xec, 0xea, 0xb6, 0x16, 0x35, 0x4d, 0x1c, 0x34, 0x76, 0xa9, - 0xba, 0x1a, 0x4d, 0xe2, 0x11, 0x58, 0x38, 0xb6, 0x65, 0x8f, 0x8b, 0xf2, 0x10, 0xb0, 0xe6, 0x91, - 0x58, 0xf2, 0x08, 0x28, 0xbc, 0x08, 0x9a, 0x89, 0xda, 0x90, 0xd6, 0xac, 0xd8, 0xcd, 0x3d, 0x47, - 0xf7, 0xdc, 0x73, 0xcf, 0xb5, 0xc1, 0xc8, 0x45, 0x16, 0x47, 0x33, 0x2e, 0xa3, 0x34, 0x61, 0xf3, - 0x34, 0x14, 0xd9, 0xf4, 0x20, 0xcb, 0x53, 0x99, 0x12, 0xf2, 0x90, 0x19, 0x7c, 0x45, 0xf0, 0x1f, - 0x5d, 0xc3, 0xbe, 0xe4, 0xb2, 0x2c, 0xc8, 0x2b, 0x68, 0x2a, 0xde, 0x40, 0x26, 0xb2, 0x76, 0x0f, - 0x9f, 0x1d, 0x54, 0x48, 0xfe, 0xd1, 0x34, 0x4e, 0x43, 0x41, 0x75, 0x03, 0x39, 0x86, 0x6e, 0x98, - 0x33, 0x5e, 0xca, 0x94, 0x15, 0x8b, 0x64, 0x66, 0xd4, 0x4d, 0x64, 0xed, 0x1c, 0xf6, 0xab, 0x04, - 0xce, 0xa8, 0x5d, 0xca, 0xd4, 0x5f, 0x24, 0x33, 0x0a, 0x61, 0x7e, 0xfb, 0x1e, 0x7c, 0xa9, 0x03, - 0xac, 0x29, 0xf2, 0x14, 0x3a, 0x31, 0x9f, 0x8a, 0x98, 0x7d, 0x12, 0x0b, 0x6d, 0xa7, 0x43, 0xdb, - 0x1a, 0xb8, 0x10, 0x0b, 0xf2, 0x1a, 0x5a, 0x85, 0xe4, 0x52, 0xe8, 0x31, 0x7f, 0xf1, 0xb9, 0xd6, - 0x52, 0xbb, 0x09, 0xba, 0xea, 0x20, 0x4f, 0xa0, 0xad, 0x1f, 0x2c, 0x0a, 0x8d, 0x86, 0x89, 0xac, - 0x26, 0xdd, 0xd6, 0xb5, 0x1b, 0x92, 0x23, 0xd8, 0xff, 0xcc, 0x23, 0xa9, 0x17, 0x60, 0x32, 0x9a, - 0x8b, 0xb4, 0x94, 0xec, 0x63, 0x94, 0x48, 0xa3, 0x69, 0x22, 0xab, 0x45, 0xf7, 0x14, 0xab, 0x04, - 0x83, 0x15, 0x77, 0x1e, 0x25, 0x92, 0x3c, 0x07, 0xcc, 0x6f, 0x78, 0x14, 0xf3, 0x69, 0x2c, 0x58, - 0x21, 0xd3, 0x5c, 0x14, 0x46, 0xcb, 0x6c, 0x58, 0x4d, 0xda, 0xbb, 0xc3, 0x7d, 0x0d, 0x93, 0x17, - 0x40, 0x32, 0x5e, 0x16, 0x82, 0xe5, 0xe2, 0x83, 0x32, 0x5a, 0x64, 0x71, 0x24, 0x8d, 0x2d, 0x13, - 0x59, 0x6d, 0x8a, 0x35, 0x43, 0x35, 0xe1, 0x2b, 0x7c, 0x70, 0x03, 0x8f, 0x57, 0xe5, 0xc3, 0x2b, - 0x1d, 0xdf, 0xae, 0xbf, 0x3a, 0xd3, 0xb0, 0xfa, 0x4c, 0x15, 0xbd, 0x95, 0x29, 0xd4, 0x37, 0x52, - 0x18, 0xcc, 0xe1, 0x91, 0xf6, 0xbb, 0x99, 0x5f, 0x59, 0xac, 0x43, 0x47, 0xff, 0x14, 0xfa, 0xe6, - 0xb8, 0xe1, 0x4b, 0xe8, 0xdd, 0xfb, 0xa2, 0x48, 0x17, 0xda, 0x63, 0xfb, 0xed, 0x84, 0xba, 0xc1, - 0x35, 0xae, 0x11, 0x0c, 0xdd, 0x33, 0xca, 0xec, 0xcb, 0x60, 0xc2, 0xfc, 0x6b, 0xef, 0x14, 0xa3, - 0xe1, 0x39, 0xf4, 0xee, 0xcd, 0x21, 0x6d, 0x68, 0x6a, 0xb2, 0x46, 0x76, 0x01, 0x6c, 0xf5, 0x64, - 0x57, 0xb6, 0x1b, 0x60, 0x44, 0x3a, 0xd0, 0xd2, 0x35, 0xae, 0x2b, 0x25, 0xcd, 0x50, 0xe7, 0x74, - 0xf2, 0xde, 0xa1, 0xb8, 0x31, 0x0c, 0x60, 0xbf, 0x3a, 0x27, 0xb2, 0x03, 0xdb, 0x97, 0xde, 0x85, - 0x37, 0xb9, 0xf2, 0x70, 0x8d, 0xec, 0x41, 0xcf, 0x77, 0xc7, 0xef, 0x46, 0x0e, 0xbb, 0xf3, 0x85, - 0x88, 0x01, 0xff, 0xbb, 0x5e, 0xe0, 0xbc, 0x51, 0x25, 0x53, 0x7a, 0x6c, 0x64, 0x9f, 0x38, 0x23, - 0x5c, 0x3f, 0xc1, 0xdf, 0x97, 0x7d, 0xf4, 0x63, 0xd9, 0x47, 0x3f, 0x97, 0x7d, 0xf4, 0xed, 0x57, - 0xbf, 0x36, 0xdd, 0xd2, 0xff, 0xe1, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0x3f, 0x6c, - 0x86, 0xa3, 0x03, 0x00, 0x00, -} - func (m *ReplicationStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -436,43 +390,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +426,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 +463,31 @@ 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 m.PauseRegionSplit { + dAtA[i] = 0x30 + i++ + if m.PauseRegionSplit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +495,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +526,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -651,9 +572,6 @@ func (m *ReplicationStatus) Size() (n int) { } func (m *DRAutoSync) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.LabelKey) @@ -686,9 +604,6 @@ func (m *DRAutoSync) Size() (n int) { } func (m *RegionReplicationStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != 0 { @@ -704,9 +619,6 @@ func (m *RegionReplicationStatus) Size() (n int) { } func (m *StoreDRAutoSyncStatus) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.State != 0 { @@ -722,7 +634,14 @@ func (m *StoreDRAutoSyncStatus) Size() (n int) { } 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 +661,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 +689,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 +708,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 +717,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,7 +733,7 @@ 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 { @@ -848,7 +764,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 +792,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 +802,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 +821,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 +840,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 +859,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 +876,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 +893,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 +902,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 +916,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 +940,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,7 +952,7 @@ 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 { @@ -1084,7 +983,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 +1011,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 +1030,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,7 +1041,7 @@ 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 { @@ -1173,7 +1072,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 +1100,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 +1119,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,7 +1130,7 @@ 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 { @@ -1250,7 +1149,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 +1180,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 +1200,93 @@ 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", fileDescriptor_replication_modepb_160f12c257222853) +} + +var fileDescriptor_replication_modepb_160f12c257222853 = []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,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48, 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 2bfb35c285..f39eecfc6c 100644 --- a/pkg/resource_manager/resource_manager.pb.go +++ b/pkg/resource_manager/resource_manager.pb.go @@ -4,18 +4,18 @@ 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 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type RequestUnitType int32 @@ -38,7 +38,6 @@ const ( var RequestUnitType_name = map[int32]string{ 0: "RU", } - var RequestUnitType_value = map[string]int32{ "RU": 0, } @@ -46,9 +45,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 fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{0} } type RawResourceType int32 @@ -64,7 +62,6 @@ var RawResourceType_name = map[int32]string{ 1: "IOReadFlow", 2: "IOWriteFlow", } - var RawResourceType_value = map[string]int32{ "CPU": 0, "IOReadFlow": 1, @@ -74,9 +71,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 fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{1} } type GroupMode int32 @@ -92,7 +88,6 @@ var GroupMode_name = map[int32]string{ 1: "RUMode", 2: "RawMode", } - var GroupMode_value = map[string]int32{ "Unknown": 0, "RUMode": 1, @@ -102,9 +97,8 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{2} } type RunawayAction int32 @@ -122,7 +116,6 @@ var RunawayAction_name = map[int32]string{ 2: "CoolDown", 3: "Kill", } - var RunawayAction_value = map[string]int32{ "NoneAction": 0, "DryRun": 1, @@ -133,9 +126,8 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{3} } type RunawayWatchType int32 @@ -153,7 +145,6 @@ var RunawayWatchType_name = map[int32]string{ 2: "Similar", 3: "Plan", } - var RunawayWatchType_value = map[string]int32{ "NoneWatch": 0, "Exact": 1, @@ -164,9 +155,8 @@ 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 fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{4} } type ListResourceGroupsRequest struct { @@ -180,7 +170,7 @@ func (m *ListResourceGroupsRequest) Reset() { *m = ListResourceGroupsReq func (m *ListResourceGroupsRequest) String() string { return proto.CompactTextString(m) } func (*ListResourceGroupsRequest) ProtoMessage() {} func (*ListResourceGroupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{0} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{0} } func (m *ListResourceGroupsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -190,15 +180,15 @@ func (m *ListResourceGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_ListResourceGroupsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ListResourceGroupsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListResourceGroupsRequest.Merge(dst, src) } func (m *ListResourceGroupsRequest) XXX_Size() int { return m.Size() @@ -217,8 +207,8 @@ 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"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Groups []*ResourceGroup `protobuf:"bytes,2,rep,name=groups" json:"groups,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -228,7 +218,7 @@ func (m *ListResourceGroupsResponse) Reset() { *m = ListResourceGroupsRe func (m *ListResourceGroupsResponse) String() string { return proto.CompactTextString(m) } func (*ListResourceGroupsResponse) ProtoMessage() {} func (*ListResourceGroupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{1} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{1} } func (m *ListResourceGroupsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -238,15 +228,15 @@ func (m *ListResourceGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_ListResourceGroupsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ListResourceGroupsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListResourceGroupsResponse.Merge(dst, src) } func (m *ListResourceGroupsResponse) XXX_Size() int { return m.Size() @@ -283,7 +273,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{2} } func (m *GetResourceGroupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -293,15 +283,15 @@ func (m *GetResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_GetResourceGroupRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetResourceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResourceGroupRequest.Merge(dst, src) } func (m *GetResourceGroupRequest) XXX_Size() int { return m.Size() @@ -327,8 +317,8 @@ 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"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Group *ResourceGroup `protobuf:"bytes,2,opt,name=group" json:"group,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -338,7 +328,7 @@ func (m *GetResourceGroupResponse) Reset() { *m = GetResourceGroupRespon func (m *GetResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*GetResourceGroupResponse) ProtoMessage() {} func (*GetResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{3} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{3} } func (m *GetResourceGroupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -348,15 +338,15 @@ func (m *GetResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_GetResourceGroupResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetResourceGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResourceGroupResponse.Merge(dst, src) } func (m *GetResourceGroupResponse) XXX_Size() int { return m.Size() @@ -392,7 +382,7 @@ func (m *DeleteResourceGroupRequest) Reset() { *m = DeleteResourceGroupR func (m *DeleteResourceGroupRequest) String() string { return proto.CompactTextString(m) } func (*DeleteResourceGroupRequest) ProtoMessage() {} func (*DeleteResourceGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{4} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{4} } func (m *DeleteResourceGroupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -402,15 +392,15 @@ func (m *DeleteResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_DeleteResourceGroupRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteResourceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResourceGroupRequest.Merge(dst, src) } func (m *DeleteResourceGroupRequest) XXX_Size() int { return m.Size() @@ -429,7 +419,7 @@ func (m *DeleteResourceGroupRequest) GetResourceGroupName() string { } type DeleteResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -440,7 +430,7 @@ func (m *DeleteResourceGroupResponse) Reset() { *m = DeleteResourceGroup func (m *DeleteResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*DeleteResourceGroupResponse) ProtoMessage() {} func (*DeleteResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{5} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{5} } func (m *DeleteResourceGroupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -450,15 +440,15 @@ func (m *DeleteResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_DeleteResourceGroupResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *DeleteResourceGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteResourceGroupResponse.Merge(dst, src) } func (m *DeleteResourceGroupResponse) XXX_Size() int { return m.Size() @@ -484,7 +474,7 @@ func (m *DeleteResourceGroupResponse) GetBody() string { } type PutResourceGroupRequest struct { - Group *ResourceGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + Group *ResourceGroup `protobuf:"bytes,1,opt,name=group" json:"group,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -494,7 +484,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{6} } func (m *PutResourceGroupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -504,15 +494,15 @@ func (m *PutResourceGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_PutResourceGroupRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutResourceGroupRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResourceGroupRequest.Merge(dst, src) } func (m *PutResourceGroupRequest) XXX_Size() int { return m.Size() @@ -531,7 +521,7 @@ func (m *PutResourceGroupRequest) GetGroup() *ResourceGroup { } type PutResourceGroupResponse struct { - Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -542,7 +532,7 @@ func (m *PutResourceGroupResponse) Reset() { *m = PutResourceGroupRespon func (m *PutResourceGroupResponse) String() string { return proto.CompactTextString(m) } func (*PutResourceGroupResponse) ProtoMessage() {} func (*PutResourceGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{7} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{7} } func (m *PutResourceGroupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -552,15 +542,15 @@ func (m *PutResourceGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_PutResourceGroupResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *PutResourceGroupResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResourceGroupResponse.Merge(dst, src) } func (m *PutResourceGroupResponse) XXX_Size() int { return m.Size() @@ -586,7 +576,7 @@ 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:"-"` @@ -598,7 +588,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{8} } func (m *TokenBucketsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -608,15 +598,15 @@ func (m *TokenBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TokenBucketsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *TokenBucketsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenBucketsRequest.Merge(m, src) +func (dst *TokenBucketsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketsRequest.Merge(dst, src) } func (m *TokenBucketsRequest) XXX_Size() int { return m.Size() @@ -655,7 +645,7 @@ 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"` @@ -668,7 +658,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{9} } func (m *TokenBucketRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -678,15 +668,15 @@ func (m *TokenBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TokenBucketRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TokenBucketRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketRequest.Merge(dst, src) } func (m *TokenBucketRequest) XXX_Size() int { return m.Size() @@ -704,10 +694,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() {} @@ -762,16 +752,82 @@ 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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *TokenBucketRequest_RawResourceItems: + s := proto.Size(x.RawResourceItems) + n += 1 // tag and wire + 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"` + RequestRU []*RequestUnitItem `protobuf:"bytes,1,rep,name=request_r_u,json=requestRU" json:"request_r_u,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -781,7 +837,7 @@ func (m *TokenBucketRequest_RequestRU) Reset() { *m = TokenBucketRequest 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{9, 0} } func (m *TokenBucketRequest_RequestRU) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -791,15 +847,15 @@ func (m *TokenBucketRequest_RequestRU) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_TokenBucketRequest_RequestRU.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TokenBucketRequest_RequestRU) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketRequest_RequestRU.Merge(dst, src) } func (m *TokenBucketRequest_RequestRU) XXX_Size() int { return m.Size() @@ -818,7 +874,7 @@ 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"` + RequestRawResource []*RawResourceItem `protobuf:"bytes,1,rep,name=request_raw_resource,json=requestRawResource" json:"request_raw_resource,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -828,7 +884,7 @@ func (m *TokenBucketRequest_RequestRawResource) Reset() { *m = TokenBuck 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{9, 1} } func (m *TokenBucketRequest_RequestRawResource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -838,15 +894,15 @@ func (m *TokenBucketRequest_RequestRawResource) XXX_Marshal(b []byte, determinis return xxx_messageInfo_TokenBucketRequest_RequestRawResource.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TokenBucketRequest_RequestRawResource) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketRequest_RequestRawResource.Merge(dst, src) } func (m *TokenBucketRequest_RequestRawResource) XXX_Size() int { return m.Size() @@ -865,8 +921,8 @@ 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"` + Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + Responses []*TokenBucketResponse `protobuf:"bytes,2,rep,name=responses" json:"responses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -876,7 +932,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{10} } func (m *TokenBucketsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -886,15 +942,15 @@ func (m *TokenBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_TokenBucketsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TokenBucketsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketsResponse.Merge(dst, src) } func (m *TokenBucketsResponse) XXX_Size() int { return m.Size() @@ -922,9 +978,9 @@ 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"` + GrantedResourceTokens []*GrantedRawResourceTokenBucket `protobuf:"bytes,3,rep,name=granted_resource_tokens,json=grantedResourceTokens" json:"granted_resource_tokens,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -934,7 +990,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{11} } func (m *TokenBucketResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -944,15 +1000,15 @@ func (m *TokenBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TokenBucketResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TokenBucketResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucketResponse.Merge(dst, src) } func (m *TokenBucketResponse) XXX_Size() int { return m.Size() @@ -986,7 +1042,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -997,7 +1053,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{12} } func (m *GrantedRUTokenBucket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1007,15 +1063,15 @@ func (m *GrantedRUTokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_GrantedRUTokenBucket.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *GrantedRUTokenBucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantedRUTokenBucket.Merge(m, src) +func (dst *GrantedRUTokenBucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantedRUTokenBucket.Merge(dst, src) } func (m *GrantedRUTokenBucket) XXX_Size() int { return m.Size() @@ -1049,7 +1105,7 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1060,7 +1116,7 @@ func (m *GrantedRawResourceTokenBucket) Reset() { *m = GrantedRawResourc func (m *GrantedRawResourceTokenBucket) String() string { return proto.CompactTextString(m) } func (*GrantedRawResourceTokenBucket) ProtoMessage() {} func (*GrantedRawResourceTokenBucket) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{13} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{13} } func (m *GrantedRawResourceTokenBucket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1070,15 +1126,15 @@ func (m *GrantedRawResourceTokenBucket) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_GrantedRawResourceTokenBucket.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GrantedRawResourceTokenBucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_GrantedRawResourceTokenBucket.Merge(dst, src) } func (m *GrantedRawResourceTokenBucket) XXX_Size() int { return m.Size() @@ -1128,7 +1184,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{14} } func (m *Consumption) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1138,15 +1194,15 @@ func (m *Consumption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_Consumption.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Consumption) XXX_Merge(src proto.Message) { + xxx_messageInfo_Consumption.Merge(dst, src) } func (m *Consumption) XXX_Size() int { return m.Size() @@ -1225,7 +1281,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{15} } func (m *RequestUnitItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1235,15 +1291,15 @@ func (m *RequestUnitItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_RequestUnitItem.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RequestUnitItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestUnitItem.Merge(dst, src) } func (m *RequestUnitItem) XXX_Size() int { return m.Size() @@ -1280,7 +1336,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{16} } func (m *RawResourceItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1290,15 +1346,15 @@ func (m *RawResourceItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_RawResourceItem.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RawResourceItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawResourceItem.Merge(dst, src) } func (m *RawResourceItem) XXX_Size() int { return m.Size() @@ -1328,17 +1384,17 @@ 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"` + RUStats *Consumption `protobuf:"bytes,8,opt,name=RUStats" json:"RUStats,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1348,7 +1404,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{17} } func (m *ResourceGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1358,15 +1414,15 @@ func (m *ResourceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_ResourceGroup.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResourceGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceGroup.Merge(dst, src) } func (m *ResourceGroup) XXX_Size() int { return m.Size() @@ -1434,7 +1490,7 @@ func (m *ResourceGroup) GetRUStats() *Consumption { } type GroupRequestUnitSettings struct { - RU *TokenBucket `protobuf:"bytes,1,opt,name=r_u,json=rU,proto3" json:"r_u,omitempty"` + RU *TokenBucket `protobuf:"bytes,1,opt,name=r_u,json=rU" json:"r_u,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1444,7 +1500,7 @@ func (m *GroupRequestUnitSettings) Reset() { *m = GroupRequestUnitSettin func (m *GroupRequestUnitSettings) String() string { return proto.CompactTextString(m) } func (*GroupRequestUnitSettings) ProtoMessage() {} func (*GroupRequestUnitSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{18} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{18} } func (m *GroupRequestUnitSettings) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1454,15 +1510,15 @@ func (m *GroupRequestUnitSettings) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_GroupRequestUnitSettings.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GroupRequestUnitSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupRequestUnitSettings.Merge(dst, src) } func (m *GroupRequestUnitSettings) XXX_Size() int { return m.Size() @@ -1481,9 +1537,9 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1493,7 +1549,7 @@ func (m *GroupRawResourceSettings) Reset() { *m = GroupRawResourceSettin func (m *GroupRawResourceSettings) String() string { return proto.CompactTextString(m) } func (*GroupRawResourceSettings) ProtoMessage() {} func (*GroupRawResourceSettings) Descriptor() ([]byte, []int) { - return fileDescriptor_7048dd9233ee965d, []int{19} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{19} } func (m *GroupRawResourceSettings) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1503,15 +1559,15 @@ func (m *GroupRawResourceSettings) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_GroupRawResourceSettings.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GroupRawResourceSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupRawResourceSettings.Merge(dst, src) } func (m *GroupRawResourceSettings) XXX_Size() int { return m.Size() @@ -1544,7 +1600,7 @@ 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:"-"` @@ -1556,7 +1612,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{20} } func (m *TokenBucket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1566,15 +1622,15 @@ func (m *TokenBucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TokenBucket.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TokenBucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenBucket.Merge(dst, src) } func (m *TokenBucket) XXX_Size() int { return m.Size() @@ -1612,7 +1668,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{21} } func (m *TokenLimitSettings) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1622,15 +1678,15 @@ func (m *TokenLimitSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TokenLimitSettings.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TokenLimitSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenLimitSettings.Merge(dst, src) } func (m *TokenLimitSettings) XXX_Size() int { return m.Size() @@ -1673,7 +1729,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{22} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1683,15 +1739,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -1720,7 +1776,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{23} } func (m *RunawayRule) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1730,15 +1786,15 @@ func (m *RunawayRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_RunawayRule.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RunawayRule) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunawayRule.Merge(dst, src) } func (m *RunawayRule) XXX_Size() int { return m.Size() @@ -1769,7 +1825,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{24} } func (m *RunawayWatch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1779,15 +1835,15 @@ func (m *RunawayWatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_RunawayWatch.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RunawayWatch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunawayWatch.Merge(dst, src) } func (m *RunawayWatch) XXX_Size() int { return m.Size() @@ -1813,9 +1869,9 @@ 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1825,7 +1881,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{25} } func (m *RunawaySettings) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1835,15 +1891,15 @@ func (m *RunawaySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_RunawaySettings.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RunawaySettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunawaySettings.Merge(dst, src) } func (m *RunawaySettings) XXX_Size() int { return m.Size() @@ -1876,7 +1932,7 @@ func (m *RunawaySettings) GetWatch() *RunawayWatch { } type BackgroundSettings struct { - 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1886,7 +1942,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{26} } func (m *BackgroundSettings) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1896,15 +1952,15 @@ func (m *BackgroundSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_BackgroundSettings.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BackgroundSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_BackgroundSettings.Merge(dst, src) } func (m *BackgroundSettings) XXX_Size() int { return m.Size() @@ -1929,7 +1985,7 @@ 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"` + ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls" json:"listen_urls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1939,7 +1995,7 @@ 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} + return fileDescriptor_resource_manager_4345d14dc6bcf0d0, []int{27} } func (m *Participant) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1949,15 +2005,15 @@ func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_Participant.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Participant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Participant.Merge(dst, src) } func (m *Participant) XXX_Size() int { return m.Size() @@ -1990,11 +2046,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") @@ -2025,124 +2076,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{ - // 1782 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x73, 0x1b, 0x49, - 0x15, 0xd7, 0xe8, 0x5b, 0x4f, 0xb1, 0x2d, 0xb7, 0x9d, 0x8d, 0x56, 0xa9, 0x38, 0xbb, 0x03, 0xa4, - 0x1c, 0x2f, 0xeb, 0x6c, 0x0c, 0xbb, 0xa1, 0x8a, 0x2a, 0xd8, 0xd8, 0x0e, 0xd9, 0xb0, 0x76, 0xd6, - 0xd5, 0x8e, 0x6a, 0x4f, 0xec, 0xd0, 0x9a, 0xe9, 0x28, 0x1d, 0x8d, 0x66, 0xe4, 0x9e, 0x1e, 0x2b, - 0xba, 0x51, 0x05, 0x27, 0xfe, 0x02, 0xfe, 0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0x20, 0x4a, - 0xda, 0x09, 0xc8, 0x90, 0x2a, 0x87, 0x1a, 0x78, 0x95, 0x67, 0x55, 0x9e, 0x93, 0x21, 0xcd, 0x47, - 0x5d, 0xcc, 0x47, 0xfd, 0x2b, 0x0b, 0xda, 0x79, 0x7b, 0xd7, 0x8b, 0xf9, 0x53, 0xa8, 0x28, 0xb7, - 0x94, 0x9d, 0x4b, 0x84, 0xac, 0xa5, 0xed, 0x03, 0xe8, 0xec, 0x53, 0x9f, 0x0a, 0xfa, 0x2e, 0x82, - 0xb6, 0x7f, 0x09, 0xb7, 0xe7, 0xa2, 0x5d, 0x2f, 0x24, 0x04, 0xe5, 0x5e, 0xe8, 0x4d, 0x54, 0x44, - 0x0d, 0xac, 0xbe, 0xed, 0x23, 0xb8, 0x75, 0x14, 0xcf, 0xdf, 0xa1, 0x34, 0x03, 0xd6, 0x95, 0x32, - 0xf0, 0x0b, 0x68, 0xe7, 0x11, 0xdf, 0x9d, 0xc3, 0x7f, 0xb6, 0x60, 0xed, 0x45, 0x38, 0xa0, 0xc1, - 0x6e, 0xec, 0x0e, 0xa8, 0x48, 0xbb, 0xe2, 0x73, 0xa8, 0x73, 0xfd, 0x29, 0x1b, 0x42, 0x56, 0xe9, - 0x77, 0xf3, 0xe8, 0x19, 0x45, 0xa3, 0x87, 0x53, 0x2d, 0xf4, 0x08, 0xda, 0x82, 0xf0, 0x3e, 0x15, - 0x8e, 0x21, 0x39, 0x23, 0xca, 0x59, 0xe8, 0x39, 0x43, 0x5d, 0x6c, 0x65, 0x7c, 0x53, 0xf3, 0x8d, - 0xea, 0x91, 0xe2, 0x1e, 0x46, 0x68, 0x13, 0x5a, 0xae, 0xcf, 0x68, 0x20, 0x9c, 0x38, 0x60, 0x27, - 0x31, 0x75, 0x98, 0xd7, 0x2e, 0x29, 0x85, 0x65, 0x4d, 0xef, 0x2a, 0xf2, 0x33, 0xcf, 0xfe, 0x4f, - 0x19, 0x50, 0xde, 0x87, 0x2b, 0xf7, 0xc2, 0x97, 0x50, 0xe7, 0xb1, 0xc3, 0x04, 0x35, 0x9e, 0x35, - 0x77, 0xb6, 0x2f, 0x13, 0xeb, 0x76, 0x12, 0x73, 0xf7, 0x8b, 0x02, 0xae, 0xf1, 0xf8, 0x99, 0x04, - 0x40, 0x7d, 0x40, 0x9c, 0x8c, 0x9d, 0x54, 0x5f, 0xc3, 0x96, 0x14, 0xec, 0xa3, 0x2b, 0xc1, 0x92, - 0x71, 0xb2, 0xeb, 0x5f, 0x14, 0x70, 0x8b, 0x4f, 0x97, 0xda, 0x50, 0x0f, 0x36, 0xdc, 0x30, 0x88, - 0xe2, 0xe1, 0x48, 0xb0, 0x30, 0x70, 0x22, 0x16, 0xb8, 0xd4, 0xf1, 0x49, 0x94, 0xe6, 0xbb, 0x5d, - 0x56, 0x46, 0xef, 0xe4, 0x8d, 0xee, 0x4d, 0xf5, 0xf0, 0xed, 0x0c, 0xc8, 0xb1, 0xc4, 0x38, 0x20, - 0x51, 0x9a, 0xc9, 0xef, 0xc0, 0x12, 0x8b, 0x9c, 0x1e, 0x71, 0x07, 0x32, 0x8f, 0x81, 0xd7, 0xae, - 0xa8, 0x29, 0x71, 0x83, 0x45, 0xbb, 0x29, 0x0d, 0xdd, 0x01, 0x60, 0x91, 0x23, 0xd8, 0x4b, 0x9f, - 0x44, 0xaf, 0xda, 0x55, 0x25, 0xd1, 0x60, 0xd1, 0x0b, 0x4d, 0xe8, 0x3c, 0x87, 0x46, 0x9a, 0x28, - 0xf4, 0x18, 0x9a, 0x49, 0x35, 0x70, 0x27, 0x36, 0x95, 0xf5, 0xe1, 0xbc, 0x56, 0x50, 0x42, 0xdd, - 0x80, 0x09, 0x19, 0x2d, 0x6e, 0xf0, 0x04, 0xa2, 0xc3, 0x00, 0xe5, 0x33, 0x84, 0x8e, 0x61, 0x3d, - 0x05, 0xce, 0xa4, 0xff, 0x1c, 0x0b, 0xb3, 0xf9, 0xc4, 0x88, 0xe7, 0x40, 0x77, 0x1b, 0x50, 0x33, - 0x54, 0xfb, 0xb7, 0x16, 0xac, 0xcf, 0xf6, 0xc9, 0xf5, 0x7a, 0x70, 0x0f, 0x1a, 0xdc, 0xa8, 0x26, - 0xe3, 0xff, 0x7b, 0x17, 0x54, 0x85, 0x96, 0xc6, 0x53, 0x3d, 0xfb, 0xd7, 0xc5, 0x99, 0xa6, 0x4d, - 0x7d, 0xb9, 0x6a, 0xe1, 0x1f, 0x03, 0xea, 0x73, 0x12, 0x08, 0xea, 0xc9, 0xdd, 0x70, 0x84, 0x84, - 0x4c, 0xbc, 0xba, 0x97, 0xf7, 0xea, 0xa9, 0x96, 0xc5, 0xdd, 0xac, 0xed, 0x95, 0xfe, 0x0c, 0x55, - 0x36, 0xc0, 0xad, 0x14, 0x34, 0x41, 0x30, 0xc8, 0x25, 0x85, 0xfc, 0x60, 0x31, 0xf2, 0x34, 0xf7, - 0x59, 0x13, 0x37, 0x13, 0x13, 0x59, 0x5e, 0x64, 0xff, 0xc5, 0x82, 0xf5, 0x79, 0x2e, 0xa1, 0x4f, - 0xa1, 0x2c, 0x26, 0x23, 0x1d, 0xf7, 0xf2, 0x05, 0xd5, 0xf5, 0x62, 0x32, 0xa2, 0x58, 0x89, 0xa3, - 0x7d, 0x58, 0x4e, 0x1c, 0x4f, 0x33, 0xb1, 0xa0, 0x81, 0xb2, 0xde, 0x2d, 0x19, 0x25, 0x13, 0xfe, - 0x3d, 0x58, 0x11, 0x9c, 0xb9, 0x03, 0x9f, 0x3a, 0x82, 0x0d, 0xa9, 0x63, 0x9a, 0xbf, 0x84, 0x97, - 0x0c, 0xf9, 0x05, 0x1b, 0xd2, 0xc3, 0xc8, 0xfe, 0x9b, 0x05, 0x77, 0xce, 0x0d, 0xfb, 0x12, 0x61, - 0x64, 0xf4, 0xbe, 0xad, 0x30, 0xfe, 0x50, 0x84, 0x66, 0x66, 0x9c, 0x20, 0x04, 0x15, 0x6e, 0x5a, - 0xdb, 0xda, 0xb4, 0x70, 0x89, 0xe3, 0xae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, 0x27, 0x31, 0xe3, 0xd9, 0x5f, 0x80, 0x08, 0x9d, 0xff, 0x6f, 0x98, - 0x56, 0xcb, 0xbd, 0x8b, 0xc4, 0x12, 0x3b, 0x9b, 0xd6, 0x27, 0xd6, 0xee, 0xfa, 0x3f, 0x7f, 0x5f, - 0xb7, 0xfe, 0xfe, 0x76, 0xc3, 0xfa, 0xc7, 0xdb, 0x0d, 0xeb, 0x5f, 0x6f, 0x37, 0xac, 0xdf, 0xfd, - 0x7b, 0xa3, 0xd0, 0xab, 0xaa, 0xb7, 0xd2, 0x1f, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x17, 0xdf, - 0xf0, 0xa9, 0x7e, 0x15, 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. @@ -2153,9 +2091,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) @@ -2249,7 +2186,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) @@ -2259,29 +2197,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) } @@ -2441,7 +2356,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 } @@ -2449,36 +2364,30 @@ 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *ListResourceGroupsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -2486,52 +2395,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -2539,43 +2438,36 @@ 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 + 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2583,50 +2475,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -2634,33 +2516,26 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2668,45 +2543,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2714,38 +2580,30 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2753,45 +2611,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2799,50 +2648,42 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2850,116 +2691,91 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -2967,40 +2783,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3008,40 +2816,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3049,52 +2849,42 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3102,61 +2892,50 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3164,48 +2943,40 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3213,48 +2984,40 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3262,74 +3025,68 @@ 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.SqlLayerCpuTimeMs != 0 { + dAtA[i] = 0x31 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SqlLayerCpuTimeMs)))) + i += 8 } - if m.ReadBytes != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ReadBytes)))) - i-- - dAtA[i] = 0x19 + if m.KvReadRpcCount != 0 { + dAtA[i] = 0x39 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvReadRpcCount)))) + 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.KvWriteRpcCount != 0 { + dAtA[i] = 0x41 + i++ + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.KvWriteRpcCount)))) + 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3337,37 +3094,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3375,37 +3126,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3413,103 +3158,86 @@ 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 + i += n17 } - if m.Mode != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x10 + 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 } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3517,38 +3245,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3556,62 +3276,50 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3619,44 +3327,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3664,42 +3364,36 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3707,33 +3401,26 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3741,31 +3428,25 @@ func (m *RunawayRule) Marshal() (dAtA []byte, err error) { } func (m *RunawayRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunawayRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if m.ExecElapsedTimeMs != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.ExecElapsedTimeMs)) - i-- dAtA[i] = 0x8 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.ExecElapsedTimeMs)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3773,36 +3454,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -3810,55 +3485,45 @@ func (m *RunawaySettings) Marshal() (dAtA []byte, err error) { } func (m *RunawaySettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunawaySettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Watch != nil { - { - size, err := m.Watch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintResourceManager(dAtA, i, uint64(size)) + if m.Rule != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Rule.Size())) + 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + return i, nil } func (m *BackgroundSettings) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) + n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } @@ -3866,35 +3531,35 @@ func (m *BackgroundSettings) Marshal() (dAtA []byte, err error) { } func (m *BackgroundSettings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BackgroundSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) + var i int _ = i var l int _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } if len(m.JobTypes) > 0 { - for iNdEx := len(m.JobTypes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.JobTypes[iNdEx]) - copy(dAtA[i:], m.JobTypes[iNdEx]) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.JobTypes[iNdEx]))) - i-- + for _, s := range m.JobTypes { dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -3902,58 +3567,52 @@ 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.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if m.Id != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintResourceManager(dAtA, i, uint64(m.Id)) } if 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-- + 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) } } - if m.Id != 0 { - i = encodeVarintResourceManager(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintResourceManager(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -3966,9 +3625,6 @@ func (m *ListResourceGroupsRequest) Size() (n int) { } func (m *ListResourceGroupsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -3988,9 +3644,6 @@ func (m *ListResourceGroupsResponse) Size() (n int) { } func (m *GetResourceGroupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -4007,9 +3660,6 @@ func (m *GetResourceGroupRequest) Size() (n int) { } func (m *GetResourceGroupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -4027,9 +3677,6 @@ func (m *GetResourceGroupResponse) Size() (n int) { } func (m *DeleteResourceGroupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -4043,9 +3690,6 @@ func (m *DeleteResourceGroupRequest) Size() (n int) { } func (m *DeleteResourceGroupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -4063,9 +3707,6 @@ func (m *DeleteResourceGroupResponse) Size() (n int) { } func (m *PutResourceGroupRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Group != nil { @@ -4079,9 +3720,6 @@ func (m *PutResourceGroupRequest) Size() (n int) { } func (m *PutResourceGroupResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -4099,9 +3737,6 @@ func (m *PutResourceGroupResponse) Size() (n int) { } func (m *TokenBucketsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.Requests) > 0 { @@ -4123,9 +3758,6 @@ func (m *TokenBucketsRequest) Size() (n int) { } func (m *TokenBucketRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -4152,9 +3784,6 @@ func (m *TokenBucketRequest) Size() (n int) { } func (m *TokenBucketRequest_RuItems) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RuItems != nil { @@ -4164,9 +3793,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 { @@ -4176,9 +3802,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 { @@ -4194,9 +3817,6 @@ func (m *TokenBucketRequest_RequestRU) Size() (n int) { } func (m *TokenBucketRequest_RequestRawResource) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.RequestRawResource) > 0 { @@ -4212,9 +3832,6 @@ func (m *TokenBucketRequest_RequestRawResource) Size() (n int) { } func (m *TokenBucketsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Error != nil { @@ -4234,9 +3851,6 @@ func (m *TokenBucketsResponse) Size() (n int) { } func (m *TokenBucketResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.ResourceGroupName) @@ -4262,9 +3876,6 @@ func (m *TokenBucketResponse) Size() (n int) { } func (m *GrantedRUTokenBucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4284,9 +3895,6 @@ func (m *GrantedRUTokenBucket) Size() (n int) { } func (m *GrantedRawResourceTokenBucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4306,9 +3914,6 @@ func (m *GrantedRawResourceTokenBucket) Size() (n int) { } func (m *Consumption) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RRU != 0 { @@ -4342,9 +3947,6 @@ func (m *Consumption) Size() (n int) { } func (m *RequestUnitItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4360,9 +3962,6 @@ func (m *RequestUnitItem) Size() (n int) { } func (m *RawResourceItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -4378,9 +3977,6 @@ func (m *RawResourceItem) Size() (n int) { } func (m *ResourceGroup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -4420,9 +4016,6 @@ func (m *ResourceGroup) Size() (n int) { } func (m *GroupRequestUnitSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RU != nil { @@ -4436,9 +4029,6 @@ func (m *GroupRequestUnitSettings) Size() (n int) { } func (m *GroupRawResourceSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cpu != nil { @@ -4460,9 +4050,6 @@ func (m *GroupRawResourceSettings) Size() (n int) { } func (m *TokenBucket) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Settings != nil { @@ -4479,9 +4066,6 @@ func (m *TokenBucket) Size() (n int) { } func (m *TokenLimitSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.FillRate != 0 { @@ -4500,9 +4084,6 @@ func (m *TokenLimitSettings) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Message) @@ -4516,9 +4097,6 @@ func (m *Error) Size() (n int) { } func (m *RunawayRule) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ExecElapsedTimeMs != 0 { @@ -4531,9 +4109,6 @@ func (m *RunawayRule) Size() (n int) { } func (m *RunawayWatch) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.LastingDurationMs != 0 { @@ -4549,9 +4124,6 @@ func (m *RunawayWatch) Size() (n int) { } func (m *RunawaySettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Rule != nil { @@ -4572,9 +4144,6 @@ func (m *RunawaySettings) Size() (n int) { } func (m *BackgroundSettings) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.JobTypes) > 0 { @@ -4590,9 +4159,6 @@ func (m *BackgroundSettings) Size() (n int) { } func (m *Participant) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -4615,7 +4181,14 @@ func (m *Participant) Size() (n int) { } 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)))) @@ -4635,7 +4208,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 } @@ -4663,7 +4236,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 } @@ -4675,7 +4248,7 @@ 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 { @@ -4706,7 +4279,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 } @@ -4734,7 +4307,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 } @@ -4743,9 +4316,6 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4770,7 +4340,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 } @@ -4779,9 +4349,6 @@ func (m *ListResourceGroupsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4796,7 +4363,7 @@ 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 { @@ -4827,7 +4394,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 } @@ -4855,7 +4422,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 } @@ -4865,9 +4432,6 @@ func (m *GetResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4887,7 +4451,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 } @@ -4899,7 +4463,7 @@ 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 { @@ -4930,7 +4494,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 } @@ -4958,7 +4522,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 } @@ -4967,9 +4531,6 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4994,7 +4555,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 } @@ -5003,9 +4564,6 @@ func (m *GetResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5022,7 +4580,7 @@ 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 { @@ -5053,7 +4611,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 } @@ -5081,7 +4639,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 } @@ -5091,9 +4649,6 @@ func (m *DeleteResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5105,7 +4660,7 @@ 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 { @@ -5136,7 +4691,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 } @@ -5164,7 +4719,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 } @@ -5173,9 +4728,6 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5200,7 +4752,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 } @@ -5210,9 +4762,6 @@ func (m *DeleteResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5224,7 +4773,7 @@ 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 { @@ -5255,7 +4804,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 } @@ -5283,7 +4832,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 } @@ -5292,9 +4841,6 @@ func (m *PutResourceGroupRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5311,7 +4857,7 @@ 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 { @@ -5342,7 +4888,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 } @@ -5370,7 +4916,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 } @@ -5379,9 +4925,6 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5406,7 +4949,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 } @@ -5416,9 +4959,6 @@ func (m *PutResourceGroupResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5430,7 +4970,7 @@ 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 { @@ -5461,7 +5001,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 } @@ -5489,7 +5029,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 } @@ -5498,9 +5038,6 @@ func (m *TokenBucketsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5523,7 +5060,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 } @@ -5542,7 +5079,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 } @@ -5553,7 +5090,7 @@ 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 { @@ -5584,7 +5121,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 } @@ -5612,7 +5149,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 } @@ -5622,9 +5159,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5644,7 +5178,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 } @@ -5653,9 +5187,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5679,7 +5210,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 } @@ -5688,9 +5219,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5714,7 +5242,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 } @@ -5723,9 +5251,6 @@ func (m *TokenBucketRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5750,7 +5275,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 } @@ -5770,7 +5295,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 } @@ -5782,7 +5307,7 @@ 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 { @@ -5813,7 +5338,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 } @@ -5841,7 +5366,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 } @@ -5850,9 +5375,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 } @@ -5867,7 +5389,7 @@ 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 { @@ -5898,7 +5420,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 } @@ -5926,7 +5448,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 } @@ -5935,9 +5457,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 } @@ -5952,7 +5471,7 @@ 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 { @@ -5983,7 +5502,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 } @@ -6011,7 +5530,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 } @@ -6020,9 +5539,6 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6047,7 +5563,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 } @@ -6056,9 +5572,6 @@ func (m *TokenBucketsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6073,7 +5586,7 @@ 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 { @@ -6104,7 +5617,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 } @@ -6132,7 +5645,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 } @@ -6142,9 +5655,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6164,7 +5674,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 } @@ -6173,9 +5683,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6198,7 +5705,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 } @@ -6207,9 +5714,6 @@ func (m *TokenBucketResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6224,7 +5728,7 @@ 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 { @@ -6255,7 +5759,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 } @@ -6283,7 +5787,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 } @@ -6302,7 +5806,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 } @@ -6311,9 +5815,6 @@ func (m *GrantedRUTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6338,7 +5839,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 } @@ -6349,7 +5850,7 @@ 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 { @@ -6380,7 +5881,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 } @@ -6408,7 +5909,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 } @@ -6427,7 +5928,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 } @@ -6436,9 +5937,6 @@ func (m *GrantedRawResourceTokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6463,7 +5961,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 } @@ -6474,7 +5972,7 @@ 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 { @@ -6505,7 +6003,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 } @@ -6613,7 +6111,7 @@ 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 { @@ -6644,7 +6142,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 } @@ -6672,7 +6170,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 } @@ -6694,7 +6192,7 @@ 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 { @@ -6725,7 +6223,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 } @@ -6753,7 +6251,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 } @@ -6775,7 +6273,7 @@ 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 { @@ -6806,7 +6304,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 } @@ -6834,7 +6332,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 } @@ -6844,9 +6342,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6866,7 +6361,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 } @@ -6885,7 +6380,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 } @@ -6894,9 +6389,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6921,7 +6413,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 } @@ -6930,9 +6422,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6957,7 +6446,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 } @@ -6976,7 +6465,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 } @@ -6985,9 +6474,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7012,7 +6498,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 } @@ -7021,9 +6507,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7048,7 +6531,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 } @@ -7057,9 +6540,6 @@ func (m *ResourceGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7076,7 +6556,7 @@ 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 { @@ -7107,7 +6587,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 } @@ -7135,7 +6615,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 } @@ -7144,9 +6624,6 @@ func (m *GroupRequestUnitSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7163,7 +6640,7 @@ 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 { @@ -7194,7 +6671,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 } @@ -7222,7 +6699,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 } @@ -7231,9 +6708,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7258,7 +6732,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 } @@ -7267,9 +6741,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7294,7 +6765,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 } @@ -7303,9 +6774,6 @@ func (m *GroupRawResourceSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7322,7 +6790,7 @@ 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 { @@ -7353,7 +6821,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 } @@ -7381,7 +6849,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 } @@ -7390,9 +6858,6 @@ func (m *TokenBucket) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7420,7 +6885,7 @@ 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 { @@ -7451,7 +6916,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 } @@ -7479,7 +6944,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 } @@ -7498,7 +6963,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 } @@ -7520,7 +6985,7 @@ 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 { @@ -7551,7 +7016,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 } @@ -7579,7 +7044,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 } @@ -7589,9 +7054,6 @@ func (m *Error) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7603,7 +7065,7 @@ 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 { @@ -7634,7 +7096,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 } @@ -7662,7 +7124,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 } @@ -7673,7 +7135,7 @@ 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 { @@ -7704,7 +7166,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 } @@ -7732,7 +7194,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 } @@ -7751,7 +7213,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 } @@ -7762,7 +7224,7 @@ 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 { @@ -7793,7 +7255,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 } @@ -7821,7 +7283,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 } @@ -7830,9 +7292,6 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7857,7 +7316,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 } @@ -7876,7 +7335,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 } @@ -7885,9 +7344,6 @@ func (m *RunawaySettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7904,7 +7360,7 @@ 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 { @@ -7935,7 +7391,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 } @@ -7963,7 +7419,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 } @@ -7973,9 +7429,6 @@ func (m *BackgroundSettings) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7987,7 +7440,7 @@ 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 { @@ -8018,7 +7471,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 } @@ -8046,7 +7499,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 } @@ -8056,9 +7509,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8078,7 +7528,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 } @@ -8097,7 +7547,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 } @@ -8107,9 +7557,6 @@ func (m *Participant) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceManager } postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthResourceManager - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8121,7 +7568,7 @@ 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 { @@ -8140,7 +7587,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 { @@ -8172,8 +7618,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 { @@ -8190,34 +7638,173 @@ 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", fileDescriptor_resource_manager_4345d14dc6bcf0d0) +} + +var fileDescriptor_resource_manager_4345d14dc6bcf0d0 = []byte{ + // 1782 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 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45, 0xa3, 0x87, 0x53, 0x2d, 0xf4, 0x08, 0xda, 0x82, 0xf0, 0x3e, 0x15, + 0x8e, 0x21, 0x39, 0x23, 0xca, 0x59, 0xe8, 0x39, 0x43, 0x5d, 0x6c, 0x65, 0x7c, 0x53, 0xf3, 0x8d, + 0xea, 0x91, 0xe2, 0x1e, 0x46, 0x68, 0x13, 0x5a, 0xae, 0xcf, 0x68, 0x20, 0x9c, 0x38, 0x60, 0x27, + 0x31, 0x75, 0x98, 0xd7, 0x2e, 0x29, 0x85, 0x65, 0x4d, 0xef, 0x2a, 0xf2, 0x33, 0xcf, 0xfe, 0x4f, + 0x19, 0x50, 0xde, 0x87, 0x2b, 0xf7, 0xc2, 0x97, 0x50, 0xe7, 0xb1, 0xc3, 0x04, 0x35, 0x9e, 0x35, + 0x77, 0xb6, 0x2f, 0x13, 0xeb, 0x76, 0x12, 0x73, 0xf7, 0x8b, 0x02, 0xae, 0xf1, 0xf8, 0x99, 0x04, + 0x40, 0x7d, 0x40, 0x9c, 0x8c, 0x9d, 0x54, 0x5f, 0xc3, 0x96, 0x14, 0xec, 0xa3, 0x2b, 0xc1, 0x92, + 0x71, 0xb2, 0xeb, 0x5f, 0x14, 0x70, 0x8b, 0x4f, 0x97, 0xda, 0x50, 0x0f, 0x36, 0xdc, 0x30, 0x88, + 0xe2, 0xe1, 0x48, 0xb0, 0x30, 0x70, 0x22, 0x16, 0xb8, 0xd4, 0xf1, 0x49, 0x94, 0xe6, 0xbb, 0x5d, + 0x56, 0x46, 0xef, 0xe4, 0x8d, 0xee, 0x4d, 0xf5, 0xf0, 0xed, 0x0c, 0xc8, 0xb1, 0xc4, 0x38, 0x20, + 0x51, 0x9a, 0xc9, 0xef, 0xc0, 0x12, 0x8b, 0x9c, 0x1e, 0x71, 0x07, 0x32, 0x8f, 0x81, 0xd7, 0xae, + 0xa8, 0x29, 0x71, 0x83, 0x45, 0xbb, 0x29, 0x0d, 0xdd, 0x01, 0x60, 0x91, 0x23, 0xd8, 0x4b, 0x9f, + 0x44, 0xaf, 0xda, 0x55, 0x25, 0xd1, 0x60, 0xd1, 0x0b, 0x4d, 0xe8, 0x3c, 0x87, 0x46, 0x9a, 0x28, + 0xf4, 0x18, 0x9a, 0x49, 0x35, 0x70, 0x27, 0x36, 0x95, 0xf5, 0xe1, 0xbc, 0x56, 0x50, 0x42, 0xdd, + 0x80, 0x09, 0x19, 0x2d, 0x6e, 0xf0, 0x04, 0xa2, 0xc3, 0x00, 0xe5, 0x33, 0x84, 0x8e, 0x61, 0x3d, + 0x05, 0xce, 0xa4, 0xff, 0x1c, 0x0b, 0xb3, 0xf9, 0xc4, 0x88, 0xe7, 0x40, 0x77, 0x1b, 0x50, 0x33, + 0x54, 0xfb, 0xb7, 0x16, 0xac, 0xcf, 0xf6, 0xc9, 0xf5, 0x7a, 0x70, 0x0f, 0x1a, 0xdc, 0xa8, 0x26, + 0xe3, 0xff, 0x7b, 0x17, 0x54, 0x85, 0x96, 0xc6, 0x53, 0x3d, 0xfb, 0xd7, 0xc5, 0x99, 0xa6, 0x4d, + 0x7d, 0xb9, 0x6a, 0xe1, 0x1f, 0x03, 0xea, 0x73, 0x12, 0x08, 0xea, 0xc9, 0xdd, 0x70, 0x84, 0x84, + 0x4c, 0xbc, 0xba, 0x97, 0xf7, 0xea, 0xa9, 0x96, 0xc5, 0xdd, 0xac, 0xed, 0x95, 0xfe, 0x0c, 0x55, + 0x36, 0xc0, 0xad, 0x14, 0x34, 0x41, 0x30, 0xc8, 0x25, 0x85, 0xfc, 0x60, 0x31, 0xf2, 0x34, 0xf7, + 0x59, 0x13, 0x37, 0x13, 0x13, 0x59, 0x5e, 0x64, 0xff, 0xc5, 0x82, 0xf5, 0x79, 0x2e, 0xa1, 0x4f, + 0xa1, 0x2c, 0x26, 0x23, 0x1d, 0xf7, 0xf2, 0x05, 0xd5, 0xf5, 0x62, 0x32, 0xa2, 0x58, 0x89, 0xa3, + 0x7d, 0x58, 0x4e, 0x1c, 0x4f, 0x33, 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 0x41, 0xf7, 0xe7, 0x1c, 0x75, 0xf3, 0x9f, 0x8f, 0x3a, 0x5b, + 0x97, 0x11, 0xcd, 0x1a, 0x7b, 0xec, 0x79, 0x17, 0x1a, 0x5b, 0xf0, 0x12, 0x32, 0xcf, 0xd8, 0xa2, + 0x27, 0x0e, 0xbb, 0x80, 0x02, 0x58, 0x3b, 0x0c, 0x3d, 0xf6, 0x72, 0xf2, 0x7f, 0xb2, 0x27, 0x60, + 0x6d, 0xce, 0x23, 0x11, 0x9a, 0xb3, 0x21, 0x8b, 0x5f, 0xa6, 0x3a, 0x1f, 0x5f, 0x52, 0x3a, 0xb5, + 0xfa, 0x1a, 0xd6, 0x1e, 0xbb, 0x27, 0x31, 0xe3, 0xd9, 0x5f, 0x80, 0x08, 0x9d, 0xff, 0x6f, 0x98, + 0x56, 0xcb, 0xbd, 0x8b, 0xc4, 0x12, 0x3b, 0x9b, 0xd6, 0x27, 0xd6, 0xee, 0xfa, 0x3f, 0x7f, 0x5f, + 0xb7, 0xfe, 0xfe, 0x76, 0xc3, 0xfa, 0xc7, 0xdb, 0x0d, 0xeb, 0x5f, 0x6f, 0x37, 0xac, 0xdf, 0xfd, + 0x7b, 0xa3, 0xd0, 0xab, 0xaa, 0xb7, 0xd2, 0x1f, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x17, 0xdf, + 0xf0, 0xa9, 0x7e, 0x15, 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 7512e4f150..cad0266863 100644 --- a/pkg/resource_usage_agent/resource_usage_agent.pb.go +++ b/pkg/resource_usage_agent/resource_usage_agent.pb.go @@ -4,17 +4,16 @@ 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,7 +25,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ResourceMeteringRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -38,7 +37,7 @@ 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} + return fileDescriptor_resource_usage_agent_8426a9d1c2864a7c, []int{0} } func (m *ResourceMeteringRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -48,15 +47,15 @@ func (m *ResourceMeteringRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_ResourceMeteringRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResourceMeteringRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceMeteringRequest.Merge(dst, src) } func (m *ResourceMeteringRequest) XXX_Size() int { return m.Size() @@ -77,7 +76,7 @@ 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} + return fileDescriptor_resource_usage_agent_8426a9d1c2864a7c, []int{1} } func (m *EmptyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -87,15 +86,15 @@ func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_EmptyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *EmptyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmptyResponse.Merge(dst, src) } func (m *EmptyResponse) XXX_Size() int { return m.Size() @@ -119,7 +118,7 @@ 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} + return fileDescriptor_resource_usage_agent_8426a9d1c2864a7c, []int{2} } func (m *ResourceUsageRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,15 +128,15 @@ func (m *ResourceUsageRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ResourceUsageRecord.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *ResourceUsageRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceUsageRecord.Merge(m, src) +func (dst *ResourceUsageRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceUsageRecord.Merge(dst, src) } func (m *ResourceUsageRecord) XXX_Size() int { return m.Size() @@ -155,7 +154,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,17 +173,65 @@ 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 += 1 // tag and wire + 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"` + Items []*GroupTagRecordItem `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -194,7 +241,7 @@ 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} + return fileDescriptor_resource_usage_agent_8426a9d1c2864a7c, []int{3} } func (m *GroupTagRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -204,15 +251,15 @@ func (m *GroupTagRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_GroupTagRecord.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *GroupTagRecord) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupTagRecord.Merge(m, src) +func (dst *GroupTagRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupTagRecord.Merge(dst, src) } func (m *GroupTagRecord) XXX_Size() int { return m.Size() @@ -251,7 +298,7 @@ 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} + return fileDescriptor_resource_usage_agent_8426a9d1c2864a7c, []int{4} } func (m *GroupTagRecordItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -261,15 +308,15 @@ func (m *GroupTagRecordItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GroupTagRecordItem.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GroupTagRecordItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupTagRecordItem.Merge(dst, src) } func (m *GroupTagRecordItem) XXX_Size() int { return m.Size() @@ -316,39 +363,6 @@ func init() { proto.RegisterType((*GroupTagRecordItem)(nil), "resource_usage_agent.GroupTagRecordItem") } -func init() { proto.RegisterFile("resource_usage_agent.proto", fileDescriptor_14aca67aa7bfb0f2) } - -var fileDescriptor_14aca67aa7bfb0f2 = []byte{ - // 432 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xd4, 0x40, - 0x18, 0xde, 0xb1, 0x75, 0xe9, 0xbe, 0xbb, 0xdb, 0x96, 0xb1, 0xe8, 0x1a, 0x31, 0x94, 0x54, 0x24, - 0x82, 0xae, 0x12, 0xef, 0x05, 0x0b, 0xa2, 0x22, 0x05, 0x99, 0xad, 0x37, 0x61, 0x48, 0xd2, 0xd7, - 0x61, 0x58, 0x92, 0x19, 0xe7, 0xa3, 0xb2, 0x17, 0x2f, 0xfe, 0x06, 0xc1, 0x9f, 0xe0, 0x4f, 0xf1, - 0xe8, 0xd1, 0xa3, 0xac, 0x7f, 0x44, 0x32, 0xe9, 0x16, 0xb6, 0x86, 0xd2, 0x53, 0x5e, 0x9e, 0x8f, - 0x3c, 0xcf, 0xcc, 0xbc, 0x10, 0x19, 0xb4, 0xca, 0x9b, 0x12, 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7, - 0x0d, 0xc6, 0x43, 0x03, 0x92, 0x8e, 0xd9, 0xa0, 0xd4, 0xfe, 0x44, 0x56, 0x78, 0x6c, 0xe9, 0x3d, - 0x18, 0x18, 0xcc, 0x4f, 0xf9, 0x1c, 0x17, 0x76, 0xb2, 0x11, 0xd8, 0xad, 0x06, 0x78, 0x8b, 0x0b, - 0x4b, 0xef, 0x03, 0x7c, 0x36, 0xd2, 0x61, 0xcb, 0x6e, 0xb6, 0xde, 0x80, 0x34, 0x74, 0x66, 0x80, - 0xae, 0x5d, 0xff, 0x8b, 0xe6, 0x1c, 0xf4, 0x03, 0xf4, 0x19, 0x6a, 0x65, 0x1c, 0x7d, 0xd4, 0x7d, - 0xd0, 0x8e, 0x27, 0x8b, 0x0e, 0xba, 0xa5, 0xeb, 0xcf, 0xdd, 0x4b, 0x49, 0xf6, 0x95, 0xc0, 0xed, - 0xcb, 0xfb, 0xf1, 0xce, 0x17, 0x33, 0x5f, 0x50, 0x09, 0x83, 0x99, 0x2f, 0x6c, 0x69, 0x64, 0x81, - 0xf4, 0xc9, 0xd5, 0xd9, 0x97, 0x56, 0x2b, 0xba, 0x7e, 0xd5, 0xa4, 0xf7, 0x8c, 0x1c, 0x3d, 0xfc, - 0xfd, 0x63, 0x8b, 0xfc, 0x5c, 0xc6, 0xe4, 0xd7, 0x32, 0x26, 0x7f, 0x96, 0x31, 0xf9, 0xfe, 0x37, - 0xee, 0xc1, 0xae, 0x32, 0x62, 0xea, 0xe4, 0xfc, 0x6c, 0x3a, 0x3f, 0x0b, 0xcb, 0x5c, 0xf4, 0xc3, - 0xe7, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0xb8, 0xf4, 0x12, 0x2e, 0x03, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -357,9 +371,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. @@ -408,21 +421,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 +473,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. @@ -516,21 +521,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 +571,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 +579,20 @@ 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) + i += 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 +600,20 @@ 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) + i += 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 +621,41 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +663,38 @@ 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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,57 +702,46 @@ 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.WriteKeys != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.WriteKeys)) } - if m.TimestampSec != 0 { - i = encodeVarintResourceUsageAgent(dAtA, i, uint64(m.TimestampSec)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -800,9 +751,6 @@ func (m *ResourceMeteringRequest) Size() (n int) { } func (m *EmptyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.XXX_unrecognized != nil { @@ -812,9 +760,6 @@ func (m *EmptyResponse) Size() (n int) { } func (m *ResourceUsageRecord) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RecordOneof != nil { @@ -827,9 +772,6 @@ func (m *ResourceUsageRecord) Size() (n int) { } func (m *ResourceUsageRecord_Record) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Record != nil { @@ -839,9 +781,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) @@ -861,9 +800,6 @@ func (m *GroupTagRecord) Size() (n int) { } func (m *GroupTagRecordItem) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TimestampSec != 0 { @@ -885,7 +821,14 @@ func (m *GroupTagRecordItem) Size() (n int) { } 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 +848,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,7 +868,7 @@ 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 { @@ -956,7 +899,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,7 +919,7 @@ 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 { @@ -1007,7 +950,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 +978,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 +987,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,7 +1002,7 @@ 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 { @@ -1093,7 +1033,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 +1061,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 +1070,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 +1092,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 +1101,6 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { return ErrInvalidLengthResourceUsageAgent } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthResourceUsageAgent - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1181,7 +1115,7 @@ func (m *GroupTagRecord) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthResourceUsageAgent } if (iNdEx + skippy) > l { @@ -1212,7 +1146,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 +1174,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 +1193,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 +1212,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 +1231,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,7 +1242,7 @@ 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 { @@ -1327,7 +1261,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 +1292,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 +1312,88 @@ 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", fileDescriptor_resource_usage_agent_8426a9d1c2864a7c) +} + +var fileDescriptor_resource_usage_agent_8426a9d1c2864a7c = []byte{ + // 432 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xd4, 0x40, + 0x18, 0xde, 0xb1, 0x75, 0xe9, 0xbe, 0xbb, 0xdb, 0x96, 0xb1, 0xe8, 0x1a, 0x31, 0x94, 0x54, 0x24, + 0x82, 0xae, 0x12, 0xef, 0x05, 0x0b, 0xa2, 0x22, 0x05, 0x99, 0xad, 0x37, 0x61, 0x48, 0xd2, 0xd7, + 0x61, 0x58, 0x92, 0x19, 0xe7, 0xa3, 0xb2, 0x17, 0x2f, 0xfe, 0x06, 0xc1, 0x9f, 0xe0, 0x4f, 0xf1, + 0xe8, 0xd1, 0xa3, 0xac, 0x7f, 0x44, 0x32, 0xe9, 0x16, 0xb6, 0x86, 0xd2, 0x53, 0x5e, 0x9e, 0x8f, + 0x3c, 0xcf, 0xcc, 0xbc, 0x10, 0x19, 0xb4, 0xca, 0x9b, 0x12, 0xb9, 0xb7, 0xb9, 0x40, 0x9e, 0x0b, + 0xac, 0xdd, 0x54, 0x1b, 0xe5, 0x14, 0xdd, 0xeb, 0xe2, 0xa2, 0x3d, 0xa1, 0x84, 0x0a, 0x82, 0xa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x1c, 0x17, 0x76, 0xb2, 0x11, 0xd8, 0xad, 0x06, 0x78, 0x8b, 0x0b, + 0x4b, 0xef, 0x03, 0x7c, 0x36, 0xd2, 0x61, 0xcb, 0x6e, 0xb6, 0xde, 0x80, 0x34, 0x74, 0x66, 0x80, + 0xae, 0x5d, 0xff, 0x8b, 0xe6, 0x1c, 0xf4, 0x03, 0xf4, 0x19, 0x6a, 0x65, 0x1c, 0x7d, 0xd4, 0x7d, + 0xd0, 0x8e, 0x27, 0x8b, 0x0e, 0xba, 0xa5, 0xeb, 0xcf, 0xdd, 0x4b, 0x49, 0xf6, 0x95, 0xc0, 0xed, + 0xcb, 0xfb, 0xf1, 0xce, 0x17, 0x33, 0x5f, 0x50, 0x09, 0x83, 0x99, 0x2f, 0x6c, 0x69, 0x64, 0x81, + 0xf4, 0xc9, 0xd5, 0xd9, 0x97, 0x56, 0x2b, 0xba, 0x7e, 0xd5, 0xa4, 0xf7, 0x8c, 0x1c, 0x3d, 0xfc, + 0xfd, 0x63, 0x8b, 0xfc, 0x5c, 0xc6, 0xe4, 0xd7, 0x32, 0x26, 0x7f, 0x96, 0x31, 0xf9, 0xfe, 0x37, + 0xee, 0xc1, 0xae, 0x32, 0x62, 0xea, 0xe4, 0xfc, 0x6c, 0x3a, 0x3f, 0x0b, 0xcb, 0x5c, 0xf4, 0xc3, + 0xe7, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0xb8, 0xf4, 0x12, 0x2e, 0x03, 0x00, 0x00, +} diff --git a/pkg/schedulingpb/schedulingpb.pb.go b/pkg/schedulingpb/schedulingpb.pb.go index df23490098..d816bbd013 100644 --- a/pkg/schedulingpb/schedulingpb.pb.go +++ b/pkg/schedulingpb/schedulingpb.pb.go @@ -4,19 +4,20 @@ 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" + + 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 +29,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ErrorType int32 @@ -49,7 +50,6 @@ var ErrorType_name = map[int32]string{ 4: "INVALID_VALUE", 5: "CLUSTER_MISMATCHED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -62,9 +62,8 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{0} } type RequestHeader struct { @@ -81,7 +80,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{0} } func (m *RequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,15 +90,15 @@ func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(dst, src) } func (m *RequestHeader) XXX_Size() int { return m.Size() @@ -127,7 +126,7 @@ 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"` + Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -137,7 +136,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{1} } func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -147,15 +146,15 @@ func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(dst, src) } func (m *ResponseHeader) XXX_Size() int { return m.Size() @@ -192,7 +191,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{2} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -202,15 +201,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -242,7 +241,7 @@ 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"` + ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls" json:"listen_urls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -252,7 +251,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{3} } func (m *Participant) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -262,15 +261,15 @@ func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_Participant.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Participant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Participant.Merge(dst, src) } func (m *Participant) XXX_Size() int { return m.Size() @@ -303,8 +302,8 @@ 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"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Stats *pdpb.StoreStats `protobuf:"bytes,2,opt,name=stats" json:"stats,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -314,7 +313,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{4} } func (m *StoreHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -324,15 +323,15 @@ func (m *StoreHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_StoreHeartbeatRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatRequest.Merge(dst, src) } func (m *StoreHeartbeatRequest) XXX_Size() int { return m.Size() @@ -358,7 +357,7 @@ func (m *StoreHeartbeatRequest) GetStats() *pdpb.StoreStats { } type StoreHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -369,7 +368,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{5} } func (m *StoreHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -379,15 +378,15 @@ func (m *StoreHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_StoreHeartbeatResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *StoreHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreHeartbeatResponse.Merge(dst, src) } func (m *StoreHeartbeatResponse) XXX_Size() int { return m.Size() @@ -413,17 +412,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,9 +434,9 @@ 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"` + Interval *pdpb.TimeInterval `protobuf:"bytes,14,opt,name=interval" json:"interval,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -447,7 +446,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{6} } func (m *RegionHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -457,15 +456,15 @@ func (m *RegionHeartbeatRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_RegionHeartbeatRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionHeartbeatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatRequest.Merge(dst, src) } func (m *RegionHeartbeatRequest) XXX_Size() int { return m.Size() @@ -575,12 +574,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,20 +594,20 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -618,7 +617,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{7} } func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -628,15 +627,15 @@ func (m *RegionHeartbeatResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_RegionHeartbeatResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RegionHeartbeatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionHeartbeatResponse.Merge(dst, src) } func (m *RegionHeartbeatResponse) XXX_Size() int { return m.Size() @@ -718,12 +717,12 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -735,7 +734,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{8} } func (m *ScatterRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -745,15 +744,15 @@ func (m *ScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_ScatterRegionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScatterRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScatterRegionsRequest.Merge(dst, src) } func (m *ScatterRegionsRequest) XXX_Size() int { return m.Size() @@ -800,7 +799,7 @@ func (m *ScatterRegionsRequest) GetSkipStoreLimit() bool { } type ScatterRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -811,7 +810,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{9} } func (m *ScatterRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -821,15 +820,15 @@ func (m *ScatterRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_ScatterRegionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ScatterRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScatterRegionsResponse.Merge(dst, src) } func (m *ScatterRegionsResponse) XXX_Size() int { return m.Size() @@ -855,8 +854,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -867,7 +866,7 @@ func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitRegionsRequest) ProtoMessage() {} func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b4bfd49510230d67, []int{10} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{10} } func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -877,15 +876,15 @@ func (m *SplitRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_SplitRegionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsRequest.Merge(dst, src) } func (m *SplitRegionsRequest) XXX_Size() int { return m.Size() @@ -918,9 +917,9 @@ func (m *SplitRegionsRequest) GetRetryLimit() uint64 { } type SplitRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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,proto3" json:"regions_id,omitempty"` + RegionsId []uint64 `protobuf:"varint,3,rep,packed,name=regions_id,json=regionsId" json:"regions_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -930,7 +929,7 @@ func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitRegionsResponse) ProtoMessage() {} func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4bfd49510230d67, []int{11} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{11} } func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -940,15 +939,15 @@ func (m *SplitRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_SplitRegionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsResponse.Merge(dst, src) } func (m *SplitRegionsResponse) XXX_Size() int { return m.Size() @@ -981,7 +980,7 @@ func (m *SplitRegionsResponse) GetRegionsId() []uint64 { } type GetOperatorRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -992,7 +991,7 @@ func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } func (*GetOperatorRequest) ProtoMessage() {} func (*GetOperatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b4bfd49510230d67, []int{12} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{12} } func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1002,15 +1001,15 @@ func (m *GetOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetOperatorRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetOperatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorRequest.Merge(dst, src) } func (m *GetOperatorRequest) XXX_Size() int { return m.Size() @@ -1036,7 +1035,7 @@ func (m *GetOperatorRequest) GetRegionId() uint64 { } type GetOperatorResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` @@ -1050,7 +1049,7 @@ func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } func (*GetOperatorResponse) ProtoMessage() {} func (*GetOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b4bfd49510230d67, []int{13} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{13} } func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1060,15 +1059,15 @@ func (m *GetOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_GetOperatorResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorResponse.Merge(dst, src) } func (m *GetOperatorResponse) XXX_Size() int { return m.Size() @@ -1115,8 +1114,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1127,7 +1126,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{14} } func (m *AskBatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1137,15 +1136,15 @@ func (m *AskBatchSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_AskBatchSplitRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AskBatchSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitRequest.Merge(dst, src) } func (m *AskBatchSplitRequest) XXX_Size() int { return m.Size() @@ -1178,8 +1177,8 @@ 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"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + Ids []*pdpb.SplitID `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1189,7 +1188,7 @@ 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} + return fileDescriptor_schedulingpb_dfae2ccf413e2c1b, []int{15} } func (m *AskBatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1199,15 +1198,15 @@ func (m *AskBatchSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_AskBatchSplitResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *AskBatchSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AskBatchSplitResponse.Merge(dst, src) } func (m *AskBatchSplitResponse) XXX_Size() int { return m.Size() @@ -1233,7 +1232,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 +1248,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, 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,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x15, 0xe8, 0x4b, 0x28, - 0xc4, 0x3f, 0x11, 0xd1, 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, + proto.RegisterEnum("schedulingpb.ErrorType", ErrorType_name, ErrorType_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1352,9 +1259,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) @@ -1448,7 +1354,8 @@ func (c *schedulingClient) AskBatchSplit(ctx context.Context, in *AskBatchSplitR 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 +1365,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 +1524,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 +1532,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1563,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1599,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1631,46 @@ 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.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if m.Id != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Id)) } if 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-- + 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) } } - if m.Id != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSchedulingpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1678,40 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1719,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1756,129 @@ 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 m.KeysWritten != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysWritten)) } - 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.KeysRead != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.KeysRead)) } - 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.ApproximateSize != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.ApproximateSize)) } - if m.Term != 0 { - i = encodeVarintSchedulingpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x20 + if m.ApproximateKeys != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintSchedulingpb(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 = 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] = 0x1a + i += n8 } - 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.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] = 0x12 + i += n9 } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1886,115 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2002,68 @@ 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++ + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2071,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2107,43 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2151,52 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2204,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +2240,52 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2293,45 @@ 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 + } + if m.SplitCount != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSchedulingpb(dAtA, i, uint64(m.SplitCount)) } - return len(dAtA) - i, nil + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +2339,48 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 { @@ -2676,9 +2396,6 @@ func (m *RequestHeader) Size() (n int) { } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -2695,9 +2412,6 @@ func (m *ResponseHeader) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -2714,9 +2428,6 @@ func (m *Error) Size() (n int) { } func (m *Participant) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -2739,9 +2450,6 @@ func (m *Participant) Size() (n int) { } func (m *StoreHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2759,9 +2467,6 @@ func (m *StoreHeartbeatRequest) Size() (n int) { } func (m *StoreHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2779,9 +2484,6 @@ func (m *StoreHeartbeatResponse) Size() (n int) { } func (m *RegionHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2844,9 +2546,6 @@ func (m *RegionHeartbeatRequest) Size() (n int) { } func (m *RegionHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2895,9 +2594,6 @@ func (m *RegionHeartbeatResponse) Size() (n int) { } func (m *ScatterRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2928,9 +2624,6 @@ func (m *ScatterRegionsRequest) Size() (n int) { } func (m *ScatterRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2947,9 +2640,6 @@ func (m *ScatterRegionsResponse) Size() (n int) { } func (m *SplitRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2972,9 +2662,6 @@ func (m *SplitRegionsRequest) Size() (n int) { } func (m *SplitRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2998,9 +2685,6 @@ func (m *SplitRegionsResponse) Size() (n int) { } func (m *GetOperatorRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -3017,9 +2701,6 @@ func (m *GetOperatorRequest) Size() (n int) { } func (m *GetOperatorResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -3047,9 +2728,6 @@ func (m *GetOperatorResponse) Size() (n int) { } func (m *AskBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -3070,9 +2748,6 @@ func (m *AskBatchSplitRequest) Size() (n int) { } func (m *AskBatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -3092,7 +2767,14 @@ func (m *AskBatchSplitResponse) Size() (n int) { } 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 +2794,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 +2822,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 +2841,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,7 +2852,7 @@ 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 { @@ -3201,7 +2883,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 +2911,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 +2930,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 +2939,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,7 +2955,7 @@ 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 { @@ -3307,7 +2986,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 +3014,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 +3033,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 +3043,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,7 +3054,7 @@ 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 { @@ -3409,7 +3085,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 +3113,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 +3123,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 +3142,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 +3161,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 +3171,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,7 +3182,7 @@ 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 { @@ -3543,7 +3213,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 +3241,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 +3250,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 +3274,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 +3283,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,7 +3299,7 @@ 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 { @@ -3666,7 +3330,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 +3358,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 +3367,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 +3391,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 +3401,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,7 +3412,7 @@ 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 { @@ -3785,7 +3443,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 +3471,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 +3480,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 +3504,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 +3513,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 +3537,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 +3546,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 +3570,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 +3589,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 +3598,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 +3620,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 +3629,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 +3651,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 +3670,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 +3689,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 +3708,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 +3727,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 +3746,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 +3765,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 +3774,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 +3798,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 +3807,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,7 +3823,7 @@ 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 { @@ -4217,7 +3854,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 +3882,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 +3891,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 +3915,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 +3934,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 +3943,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 +3967,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 +3976,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 +4000,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 +4009,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 +4033,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 +4042,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 +4066,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 +4075,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 +4099,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 +4108,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 +4132,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 +4141,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 +4165,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 +4174,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,7 +4190,7 @@ 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 { @@ -4611,7 +4221,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 +4249,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 +4258,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 +4282,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 +4292,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 +4309,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 +4326,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 +4335,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 +4349,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 +4373,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 +4392,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,7 +4404,7 @@ 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 { @@ -4845,7 +4435,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 +4463,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 +4472,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 +4496,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,7 +4507,7 @@ 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 { @@ -4951,7 +4538,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 +4566,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 +4575,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 +4599,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 +4608,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 +4628,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,7 +4639,7 @@ 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 { @@ -5089,7 +4670,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 +4698,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 +4707,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 +4731,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 +4748,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 +4765,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 +4774,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 +4788,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,7 +4804,7 @@ 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 { @@ -5271,7 +4835,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 +4863,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 +4872,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 +4896,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,7 +4907,7 @@ 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 { @@ -5377,7 +4938,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 +4966,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 +4975,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 +4999,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 +5018,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 +5027,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 +5049,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 +5068,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 +5077,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,7 +5091,7 @@ 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 { @@ -5570,7 +5122,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 +5150,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 +5159,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 +5183,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 +5192,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 +5216,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,7 +5227,7 @@ 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 { @@ -5712,7 +5258,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 +5286,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 +5295,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 +5319,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 +5328,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,7 +5342,7 @@ 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 { @@ -5821,7 +5361,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 +5392,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 +5412,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", fileDescriptor_schedulingpb_dfae2ccf413e2c1b) } + +var fileDescriptor_schedulingpb_dfae2ccf413e2c1b = []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, 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xac, 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, 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,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xd5, 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 03b0c0793b..672917d301 100644 --- a/pkg/tikvpb/tikvpb.pb.go +++ b/pkg/tikvpb/tikvpb.pb.go @@ -4,22 +4,26 @@ 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" + + 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,11 +35,11 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -45,7 +49,7 @@ 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} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{0} } func (m *BatchCommandsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -55,15 +59,15 @@ func (m *BatchCommandsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_BatchCommandsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchCommandsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsRequest.Merge(dst, src) } func (m *BatchCommandsRequest) XXX_Size() int { return m.Size() @@ -133,7 +137,7 @@ func (m *BatchCommandsRequest_Request) Reset() { *m = BatchCommandsReque 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} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{0, 0} } func (m *BatchCommandsRequest_Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -143,15 +147,15 @@ func (m *BatchCommandsRequest_Request) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_BatchCommandsRequest_Request.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchCommandsRequest_Request) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsRequest_Request.Merge(dst, src) } func (m *BatchCommandsRequest_Request) XXX_Size() int { return m.Size() @@ -169,103 +173,103 @@ 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_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() {} @@ -540,9 +544,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), @@ -579,12 +583,636 @@ func (*BatchCommandsRequest_Request) XXX_OneofWrappers() []interface{} { } } +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 + } + 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 _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 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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Scan: + s := proto.Size(x.Scan) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Prewrite: + s := proto.Size(x.Prewrite) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Commit: + s := proto.Size(x.Commit) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Import: + s := proto.Size(x.Import) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Cleanup: + s := proto.Size(x.Cleanup) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_BatchGet: + s := proto.Size(x.BatchGet) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_BatchRollback: + s := proto.Size(x.BatchRollback) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_ScanLock: + s := proto.Size(x.ScanLock) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_ResolveLock: + s := proto.Size(x.ResolveLock) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_GC: + s := proto.Size(x.GC) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_DeleteRange: + s := proto.Size(x.DeleteRange) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawGet: + s := proto.Size(x.RawGet) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchGet: + s := proto.Size(x.RawBatchGet) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawPut: + s := proto.Size(x.RawPut) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchPut: + s := proto.Size(x.RawBatchPut) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawDelete: + s := proto.Size(x.RawDelete) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchDelete: + s := proto.Size(x.RawBatchDelete) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawScan: + s := proto.Size(x.RawScan) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawDeleteRange: + s := proto.Size(x.RawDeleteRange) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawBatchScan: + s := proto.Size(x.RawBatchScan) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Coprocessor: + s := proto.Size(x.Coprocessor) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_PessimisticLock: + s := proto.Size(x.PessimisticLock) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_PessimisticRollback: + s := proto.Size(x.PessimisticRollback) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_CheckTxnStatus: + s := proto.Size(x.CheckTxnStatus) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_TxnHeartBeat: + s := proto.Size(x.TxnHeartBeat) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_CheckSecondaryLocks: + s := proto.Size(x.CheckSecondaryLocks) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_RawCoprocessor: + s := proto.Size(x.RawCoprocessor) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_FlashbackToVersion: + s := proto.Size(x.FlashbackToVersion) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_PrepareFlashbackToVersion: + s := proto.Size(x.PrepareFlashbackToVersion) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Flush: + s := proto.Size(x.Flush) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_BufferBatchGet: + s := proto.Size(x.BufferBatchGet) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsRequest_Request_Empty: + s := proto.Size(x.Empty) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + 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"` + 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 *HealthFeedback `protobuf:"bytes,4,opt,name=health_feedback,json=healthFeedback,proto3" json:"health_feedback,omitempty"` + HealthFeedback *HealthFeedback `protobuf:"bytes,4,opt,name=health_feedback,json=healthFeedback" json:"health_feedback,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -594,7 +1222,7 @@ 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} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{1} } func (m *BatchCommandsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -604,15 +1232,15 @@ func (m *BatchCommandsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_BatchCommandsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *BatchCommandsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchCommandsResponse.Merge(m, src) +func (dst *BatchCommandsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsResponse.Merge(dst, src) } func (m *BatchCommandsResponse) XXX_Size() int { return m.Size() @@ -696,7 +1324,7 @@ func (m *BatchCommandsResponse_Response) Reset() { *m = BatchCommandsRes 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} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{1, 0} } func (m *BatchCommandsResponse_Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -706,15 +1334,15 @@ func (m *BatchCommandsResponse_Response) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_BatchCommandsResponse_Response.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchCommandsResponse_Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsResponse_Response.Merge(dst, src) } func (m *BatchCommandsResponse_Response) XXX_Size() int { return m.Size() @@ -732,103 +1360,103 @@ 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_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() {} @@ -1104,9 +1732,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), @@ -1143,8 +1771,632 @@ func (*BatchCommandsResponse_Response) XXX_OneofWrappers() []interface{} { } } +func _BatchCommandsResponse_Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*BatchCommandsResponse_Response) + // cmd + switch x := m.Cmd.(type) { + case *BatchCommandsResponse_Response_Get: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Get); err != nil { + return err + } + case *BatchCommandsResponse_Response_Scan: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Scan); err != nil { + return err + } + case *BatchCommandsResponse_Response_Prewrite: + _ = b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Prewrite); err != nil { + return err + } + case *BatchCommandsResponse_Response_Commit: + _ = b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Commit); err != nil { + return err + } + case *BatchCommandsResponse_Response_Import: + _ = b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Import); err != nil { + return err + } + case *BatchCommandsResponse_Response_Cleanup: + _ = b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Cleanup); err != nil { + return err + } + case *BatchCommandsResponse_Response_BatchGet: + _ = b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BatchGet); err != nil { + return err + } + case *BatchCommandsResponse_Response_BatchRollback: + _ = b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BatchRollback); err != nil { + return err + } + case *BatchCommandsResponse_Response_ScanLock: + _ = b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ScanLock); err != nil { + return err + } + case *BatchCommandsResponse_Response_ResolveLock: + _ = b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ResolveLock); err != nil { + return err + } + case *BatchCommandsResponse_Response_GC: + _ = b.EncodeVarint(11<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GC); err != nil { + return err + } + case *BatchCommandsResponse_Response_DeleteRange: + _ = b.EncodeVarint(12<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.DeleteRange); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawGet: + _ = b.EncodeVarint(13<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawGet); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchGet: + _ = b.EncodeVarint(14<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchGet); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawPut: + _ = b.EncodeVarint(15<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawPut); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchPut: + _ = b.EncodeVarint(16<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchPut); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawDelete: + _ = b.EncodeVarint(17<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawDelete); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchDelete: + _ = b.EncodeVarint(18<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchDelete); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawScan: + _ = b.EncodeVarint(19<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawScan); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawDeleteRange: + _ = b.EncodeVarint(20<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawDeleteRange); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawBatchScan: + _ = b.EncodeVarint(21<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawBatchScan); err != nil { + return err + } + case *BatchCommandsResponse_Response_Coprocessor: + _ = b.EncodeVarint(22<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Coprocessor); err != nil { + return err + } + case *BatchCommandsResponse_Response_PessimisticLock: + _ = b.EncodeVarint(23<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PessimisticLock); err != nil { + return err + } + case *BatchCommandsResponse_Response_PessimisticRollback: + _ = b.EncodeVarint(24<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PessimisticRollback); err != nil { + return err + } + case *BatchCommandsResponse_Response_CheckTxnStatus: + _ = b.EncodeVarint(25<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CheckTxnStatus); err != nil { + return err + } + case *BatchCommandsResponse_Response_TxnHeartBeat: + _ = b.EncodeVarint(26<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TxnHeartBeat); err != nil { + return err + } + case *BatchCommandsResponse_Response_CheckSecondaryLocks: + _ = b.EncodeVarint(33<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CheckSecondaryLocks); err != nil { + return err + } + case *BatchCommandsResponse_Response_RawCoprocessor: + _ = b.EncodeVarint(34<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RawCoprocessor); err != nil { + return err + } + case *BatchCommandsResponse_Response_FlashbackToVersion: + _ = b.EncodeVarint(35<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.FlashbackToVersion); err != nil { + return err + } + case *BatchCommandsResponse_Response_PrepareFlashbackToVersion: + _ = b.EncodeVarint(36<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PrepareFlashbackToVersion); err != nil { + return err + } + case *BatchCommandsResponse_Response_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_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 _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 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 += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Scan: + s := proto.Size(x.Scan) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Prewrite: + s := proto.Size(x.Prewrite) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Commit: + s := proto.Size(x.Commit) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Import: + s := proto.Size(x.Import) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Cleanup: + s := proto.Size(x.Cleanup) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_BatchGet: + s := proto.Size(x.BatchGet) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_BatchRollback: + s := proto.Size(x.BatchRollback) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_ScanLock: + s := proto.Size(x.ScanLock) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_ResolveLock: + s := proto.Size(x.ResolveLock) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_GC: + s := proto.Size(x.GC) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_DeleteRange: + s := proto.Size(x.DeleteRange) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawGet: + s := proto.Size(x.RawGet) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchGet: + s := proto.Size(x.RawBatchGet) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawPut: + s := proto.Size(x.RawPut) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchPut: + s := proto.Size(x.RawBatchPut) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawDelete: + s := proto.Size(x.RawDelete) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchDelete: + s := proto.Size(x.RawBatchDelete) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawScan: + s := proto.Size(x.RawScan) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawDeleteRange: + s := proto.Size(x.RawDeleteRange) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawBatchScan: + s := proto.Size(x.RawBatchScan) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Coprocessor: + s := proto.Size(x.Coprocessor) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_PessimisticLock: + s := proto.Size(x.PessimisticLock) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_PessimisticRollback: + s := proto.Size(x.PessimisticRollback) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_CheckTxnStatus: + s := proto.Size(x.CheckTxnStatus) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_TxnHeartBeat: + s := proto.Size(x.TxnHeartBeat) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_CheckSecondaryLocks: + s := proto.Size(x.CheckSecondaryLocks) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_RawCoprocessor: + s := proto.Size(x.RawCoprocessor) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_FlashbackToVersion: + s := proto.Size(x.FlashbackToVersion) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_PrepareFlashbackToVersion: + s := proto.Size(x.PrepareFlashbackToVersion) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Flush: + s := proto.Size(x.Flush) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_BufferBatchGet: + s := proto.Size(x.BufferBatchGet) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BatchCommandsResponse_Response_Empty: + s := proto.Size(x.Empty) + n += 2 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type BatchRaftMessage struct { - Msgs []*raft_serverpb.RaftMessage `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"` + Msgs []*raft_serverpb.RaftMessage `protobuf:"bytes,1,rep,name=msgs" json:"msgs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1154,7 +2406,7 @@ 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} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{2} } func (m *BatchRaftMessage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1164,15 +2416,15 @@ func (m *BatchRaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_BatchRaftMessage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *BatchRaftMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_BatchRaftMessage.Merge(m, src) +func (dst *BatchRaftMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchRaftMessage.Merge(dst, src) } func (m *BatchRaftMessage) XXX_Size() int { return m.Size() @@ -1204,7 +2456,7 @@ func (m *BatchCommandsEmptyRequest) Reset() { *m = BatchCommandsEmptyReq func (m *BatchCommandsEmptyRequest) String() string { return proto.CompactTextString(m) } func (*BatchCommandsEmptyRequest) ProtoMessage() {} func (*BatchCommandsEmptyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{3} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{3} } func (m *BatchCommandsEmptyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1214,15 +2466,15 @@ func (m *BatchCommandsEmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_BatchCommandsEmptyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchCommandsEmptyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsEmptyRequest.Merge(dst, src) } func (m *BatchCommandsEmptyRequest) XXX_Size() int { return m.Size() @@ -1259,7 +2511,7 @@ func (m *BatchCommandsEmptyResponse) Reset() { *m = BatchCommandsEmptyRe func (m *BatchCommandsEmptyResponse) String() string { return proto.CompactTextString(m) } func (*BatchCommandsEmptyResponse) ProtoMessage() {} func (*BatchCommandsEmptyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_274fe050f0c997b3, []int{4} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{4} } func (m *BatchCommandsEmptyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1269,15 +2521,15 @@ func (m *BatchCommandsEmptyResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_BatchCommandsEmptyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *BatchCommandsEmptyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchCommandsEmptyResponse.Merge(dst, src) } func (m *BatchCommandsEmptyResponse) XXX_Size() int { return m.Size() @@ -1316,7 +2568,7 @@ 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_274fe050f0c997b3, []int{5} + return fileDescriptor_tikvpb_3be4280c83c09621, []int{5} } func (m *HealthFeedback) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1326,15 +2578,15 @@ func (m *HealthFeedback) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_HealthFeedback.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *HealthFeedback) XXX_Merge(src proto.Message) { + xxx_messageInfo_HealthFeedback.Merge(dst, src) } func (m *HealthFeedback) XXX_Size() int { return m.Size() @@ -1377,193 +2629,16 @@ func init() { proto.RegisterType((*HealthFeedback)(nil), "tikvpb.HealthFeedback") } -func init() { proto.RegisterFile("tikvpb.proto", fileDescriptor_274fe050f0c997b3) } - -var fileDescriptor_274fe050f0c997b3 = []byte{ - // 2719 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x9a, 0xdb, 0x72, 0xdb, 0xc6, - 0x19, 0x80, 0x21, 0x5b, 0xc7, 0x55, 0x74, 0x5a, 0x49, 0x16, 0x84, 0xc8, 0x92, 0x0d, 0xcb, 0x8a, - 0x92, 0x4e, 0x55, 0x3b, 0x49, 0xe3, 0xe6, 0xd0, 0x44, 0x16, 0x15, 0x1d, 0x42, 0xa9, 0xe1, 0x90, - 0x74, 0xe2, 0x76, 0xda, 0xd1, 0xac, 0xc8, 0x15, 0xc5, 0x8a, 0x04, 0x68, 0xec, 0x92, 0x32, 0xdf, - 0xa4, 0x8f, 0xd0, 0xc7, 0xe8, 0x65, 0x2f, 0x7a, 0x91, 0xcb, 0x5e, 0x76, 0xdc, 0x99, 0x3e, 0x40, - 0x5f, 0xa0, 0x9d, 0x5d, 0x00, 0x7b, 0xc2, 0x02, 0x54, 0xae, 0x0c, 0xfe, 0xc7, 0xdd, 0x05, 0xf6, - 0xdf, 0xef, 0x5f, 0x0b, 0xbc, 0x47, 0xdb, 0x37, 0x83, 0xde, 0xe5, 0x5e, 0x2f, 0x0a, 0x69, 0x08, - 0x27, 0xe3, 0x5f, 0xde, 0x52, 0x23, 0xec, 0x45, 0x61, 0x03, 0x13, 0x12, 0x46, 0xb1, 0xca, 0x9b, - 0xbb, 0x19, 0x44, 0xbd, 0x46, 0x6a, 0xe9, 0xcd, 0x74, 0x7b, 0xbd, 0xe4, 0x71, 0x39, 0x42, 0x57, - 0xf4, 0x82, 0xe0, 0x68, 0x80, 0x23, 0xa1, 0x5f, 0x6e, 0xb6, 0x09, 0x6a, 0xb5, 0x22, 0xdc, 0x42, - 0x14, 0x37, 0x13, 0xe1, 0x4a, 0x2b, 0x6c, 0x85, 0xfc, 0xf1, 0x57, 0xec, 0x29, 0x91, 0x2e, 0x44, - 0x7d, 0x42, 0xf9, 0x63, 0x2c, 0xf0, 0xff, 0xb1, 0x04, 0x56, 0x0e, 0x10, 0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, 0xa7, 0x3d, 0xc0, 0x70, 0x99, 0x9b, 0x24, 0xbf, 0xe4, 0xad, 0x83, 0x26, - 0x54, 0x46, 0xb3, 0x5c, 0xc5, 0xac, 0x7f, 0x4b, 0x66, 0x94, 0x74, 0xba, 0x1b, 0xdc, 0x3c, 0xd6, - 0x48, 0xb1, 0x5c, 0x75, 0xbb, 0x56, 0x44, 0x3d, 0x01, 0xb3, 0xf1, 0x49, 0x81, 0x51, 0x13, 0x47, - 0xca, 0x0e, 0x50, 0xa4, 0xd9, 0x1d, 0xa0, 0x29, 0x93, 0x1b, 0x9e, 0x32, 0x98, 0x3f, 0xc6, 0xb4, - 0x46, 0xc3, 0x08, 0xd7, 0xd0, 0x15, 0xae, 0xd7, 0xd4, 0xed, 0x24, 0xa5, 0x96, 0xed, 0xa4, 0x2a, - 0x93, 0x60, 0x75, 0xb0, 0x70, 0x8c, 0x29, 0x2b, 0xfd, 0x3f, 0xa2, 0x36, 0x3d, 0x0d, 0xae, 0x42, - 0xe5, 0x8a, 0xc3, 0xd0, 0x64, 0xaf, 0x38, 0x32, 0x06, 0x49, 0xd4, 0xaf, 0xc0, 0x14, 0xc7, 0x95, - 0x06, 0x85, 0x5a, 0x4f, 0xcd, 0x24, 0x96, 0x66, 0x37, 0x55, 0x24, 0xde, 0x7f, 0x02, 0x50, 0x09, - 0x7c, 0xd2, 0x26, 0x34, 0x8c, 0x86, 0xca, 0xa9, 0x99, 0x55, 0x66, 0x4f, 0x4d, 0x9b, 0x4d, 0x12, - 0xfe, 0x12, 0xac, 0x1e, 0x63, 0x5a, 0x6f, 0xf3, 0x36, 0xa7, 0x36, 0x24, 0x14, 0x77, 0x79, 0xed, - 0x52, 0x32, 0x64, 0x95, 0xd9, 0x0c, 0x36, 0x1b, 0x85, 0x52, 0x01, 0x8d, 0x86, 0x2f, 0x9b, 0xcd, - 0xe4, 0x44, 0xd6, 0xff, 0x7e, 0xad, 0x2e, 0x54, 0xb2, 0x10, 0xe4, 0x5b, 0x28, 0xac, 0x32, 0x47, - 0xa3, 0xe1, 0x39, 0x8a, 0x6e, 0x12, 0x1c, 0x7f, 0x92, 0xf5, 0x92, 0x5a, 0x79, 0x41, 0x52, 0x68, - 0x24, 0xa2, 0x07, 0x60, 0x59, 0xec, 0xb3, 0x43, 0xee, 0xc1, 0xb7, 0xf3, 0x87, 0x86, 0xbb, 0xc5, - 0x46, 0xf6, 0xaa, 0x77, 0x30, 0x55, 0x00, 0x6f, 0x31, 0x2e, 0x06, 0x4a, 0xb2, 0x1d, 0x23, 0x82, - 0x69, 0x90, 0x66, 0xfa, 0x60, 0xa4, 0x9d, 0x48, 0xf3, 0x07, 0xb0, 0x78, 0x84, 0x59, 0x23, 0xc2, - 0x95, 0x15, 0xd4, 0xc2, 0x24, 0x93, 0xc6, 0x34, 0x90, 0x27, 0x88, 0x6e, 0xc7, 0x95, 0x4a, 0x85, - 0xb9, 0xe4, 0x9b, 0x27, 0x76, 0x2c, 0x85, 0xc1, 0x55, 0xbb, 0x05, 0x9f, 0x1a, 0x2e, 0x86, 0x3e, - 0x8d, 0xbc, 0x33, 0xca, 0x2c, 0x1d, 0xff, 0xc1, 0xce, 0x3f, 0xff, 0x3a, 0x3d, 0xf6, 0xf7, 0x77, - 0x9b, 0x63, 0x3f, 0xbd, 0xdb, 0x1c, 0xfb, 0xd7, 0xbb, 0xcd, 0xb1, 0xbf, 0xfc, 0x7b, 0xd3, 0x01, - 0x8b, 0x61, 0xd4, 0xe2, 0x75, 0x7e, 0xef, 0x66, 0xc0, 0xff, 0xcc, 0xf1, 0x72, 0x92, 0xff, 0xf3, - 0xc9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x2c, 0x72, 0x91, 0x83, 0x29, 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) @@ -1635,37 +2710,37 @@ type TikvClient interface { EstablishMPPConnection(ctx context.Context, in *mpp.EstablishMPPConnectionRequest, opts ...grpc.CallOption) (Tikv_EstablishMPPConnectionClient, error) IsAlive(ctx context.Context, in *mpp.IsAliveRequest, opts ...grpc.CallOption) (*mpp.IsAliveResponse, error) ReportMPPTaskStatus(ctx context.Context, in *mpp.ReportTaskStatusRequest, opts ...grpc.CallOption) (*mpp.ReportTaskStatusResponse, error) - /// CheckLeader sends all information (includes region term and epoch) to other stores. - /// Once a store receives a request, it checks term and epoch for each region, and sends the regions whose - /// term and epoch match with local information in the store. - /// After the client collected all responses from all stores, it checks if got a quorum of responses from - /// other stores for every region, and decides to advance resolved ts from these regions. + // / CheckLeader sends all information (includes region term and epoch) to other stores. + // / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose + // / term and epoch match with local information in the store. + // / After the client collected all responses from all stores, it checks if got a quorum of responses from + // / other stores for every region, and decides to advance watermark 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) } @@ -2500,7 +3575,8 @@ func (c *tikvClient) GetDisaggConfig(ctx context.Context, in *disaggregated.GetD 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) @@ -2572,249 +3648,40 @@ type TikvServer interface { EstablishMPPConnection(*mpp.EstablishMPPConnectionRequest, Tikv_EstablishMPPConnectionServer) error IsAlive(context.Context, *mpp.IsAliveRequest) (*mpp.IsAliveResponse, error) ReportMPPTaskStatus(context.Context, *mpp.ReportTaskStatusRequest) (*mpp.ReportTaskStatusResponse, error) - /// CheckLeader sends all information (includes region term and epoch) to other stores. - /// Once a store receives a request, it checks term and epoch for each region, and sends the regions whose - /// term and epoch match with local information in the store. - /// After the client collected all responses from all stores, it checks if got a quorum of responses from - /// other stores for every region, and decides to advance resolved ts from these regions. + // / CheckLeader sends all information (includes region term and epoch) to other stores. + // / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose + // / term and epoch match with local information in the store. + // / After the client collected all responses from all stores, it checks if got a quorum of responses from + // / other stores for every region, and decides to advance watermark from these regions. CheckLeader(context.Context, *kvrpcpb.CheckLeaderRequest) (*kvrpcpb.CheckLeaderResponse, error) - /// Get the minimal `safe_ts` from regions at the store + // / Get the minimal `safe_ts` from regions at the store GetStoreSafeTS(context.Context, *kvrpcpb.StoreSafeTSRequest) (*kvrpcpb.StoreSafeTSResponse, error) - /// Get the information about lock waiting from TiKV. + // / Get the information about lock waiting from TiKV. GetLockWaitInfo(context.Context, *kvrpcpb.GetLockWaitInfoRequest) (*kvrpcpb.GetLockWaitInfoResponse, error) - /// Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. - /// It only compacts data on this node. - /// TODO: Currently this RPC is designed to be only compatible with TiFlash. - /// Shall be move out in https://github.com/pingcap/kvproto/issues/912 + // / Compact a specified key range. This request is not restricted to raft leaders and will not be replicated. + // / It only compacts data on this node. + // / TODO: Currently this RPC is designed to be only compatible with TiFlash. + // / Shall be move out in https://github.com/pingcap/kvproto/issues/912 Compact(context.Context, *kvrpcpb.CompactRequest) (*kvrpcpb.CompactResponse, error) - /// Get the information about history lock waiting from TiKV. + // / Get the information about history lock waiting from TiKV. GetLockWaitHistory(context.Context, *kvrpcpb.GetLockWaitHistoryRequest) (*kvrpcpb.GetLockWaitHistoryResponse, error) - /// Get system table from TiFlash + // / Get system table from TiFlash GetTiFlashSystemTable(context.Context, *kvrpcpb.TiFlashSystemTableRequest) (*kvrpcpb.TiFlashSystemTableResponse, error) // These are for TiFlash disaggregated architecture - /// Try to lock a S3 object, atomically + // / Try to lock a S3 object, atomically TryAddLock(context.Context, *disaggregated.TryAddLockRequest) (*disaggregated.TryAddLockResponse, error) - /// Try to delete a S3 object, atomically + // / Try to delete a S3 object, atomically TryMarkDelete(context.Context, *disaggregated.TryMarkDeleteRequest) (*disaggregated.TryMarkDeleteResponse, error) - /// Build the disaggregated task on TiFlash write node + // / Build the disaggregated task on TiFlash write node EstablishDisaggTask(context.Context, *disaggregated.EstablishDisaggTaskRequest) (*disaggregated.EstablishDisaggTaskResponse, error) - /// Cancel the disaggregated task on TiFlash write node + // / Cancel the disaggregated task on TiFlash write node CancelDisaggTask(context.Context, *disaggregated.CancelDisaggTaskRequest) (*disaggregated.CancelDisaggTaskResponse, error) - /// Exchange page data between TiFlash write node and compute node + // / Exchange page data between TiFlash write node and compute node FetchDisaggPages(*disaggregated.FetchDisaggPagesRequest, Tikv_FetchDisaggPagesServer) error - /// Compute node get configuration from Write node + // / Compute node get configuration from Write node GetDisaggConfig(context.Context, *disaggregated.GetDisaggConfigRequest) (*disaggregated.GetDisaggConfigResponse, error) } -// UnimplementedTikvServer can be embedded to have forward compatible implementations. -type UnimplementedTikvServer struct { -} - -func (*UnimplementedTikvServer) KvGet(ctx context.Context, req *kvrpcpb.GetRequest) (*kvrpcpb.GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvGet not implemented") -} -func (*UnimplementedTikvServer) KvScan(ctx context.Context, req *kvrpcpb.ScanRequest) (*kvrpcpb.ScanResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvScan not implemented") -} -func (*UnimplementedTikvServer) KvPrewrite(ctx context.Context, req *kvrpcpb.PrewriteRequest) (*kvrpcpb.PrewriteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvPrewrite not implemented") -} -func (*UnimplementedTikvServer) KvPessimisticLock(ctx context.Context, req *kvrpcpb.PessimisticLockRequest) (*kvrpcpb.PessimisticLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvPessimisticLock not implemented") -} -func (*UnimplementedTikvServer) KVPessimisticRollback(ctx context.Context, req *kvrpcpb.PessimisticRollbackRequest) (*kvrpcpb.PessimisticRollbackResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KVPessimisticRollback not implemented") -} -func (*UnimplementedTikvServer) KvTxnHeartBeat(ctx context.Context, req *kvrpcpb.TxnHeartBeatRequest) (*kvrpcpb.TxnHeartBeatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvTxnHeartBeat not implemented") -} -func (*UnimplementedTikvServer) KvCheckTxnStatus(ctx context.Context, req *kvrpcpb.CheckTxnStatusRequest) (*kvrpcpb.CheckTxnStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCheckTxnStatus not implemented") -} -func (*UnimplementedTikvServer) KvCheckSecondaryLocks(ctx context.Context, req *kvrpcpb.CheckSecondaryLocksRequest) (*kvrpcpb.CheckSecondaryLocksResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCheckSecondaryLocks not implemented") -} -func (*UnimplementedTikvServer) KvCommit(ctx context.Context, req *kvrpcpb.CommitRequest) (*kvrpcpb.CommitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCommit not implemented") -} -func (*UnimplementedTikvServer) KvImport(ctx context.Context, req *kvrpcpb.ImportRequest) (*kvrpcpb.ImportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvImport not implemented") -} -func (*UnimplementedTikvServer) KvCleanup(ctx context.Context, req *kvrpcpb.CleanupRequest) (*kvrpcpb.CleanupResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvCleanup not implemented") -} -func (*UnimplementedTikvServer) KvBatchGet(ctx context.Context, req *kvrpcpb.BatchGetRequest) (*kvrpcpb.BatchGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvBatchGet not implemented") -} -func (*UnimplementedTikvServer) KvBatchRollback(ctx context.Context, req *kvrpcpb.BatchRollbackRequest) (*kvrpcpb.BatchRollbackResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvBatchRollback not implemented") -} -func (*UnimplementedTikvServer) KvScanLock(ctx context.Context, req *kvrpcpb.ScanLockRequest) (*kvrpcpb.ScanLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvScanLock not implemented") -} -func (*UnimplementedTikvServer) KvResolveLock(ctx context.Context, req *kvrpcpb.ResolveLockRequest) (*kvrpcpb.ResolveLockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvResolveLock not implemented") -} -func (*UnimplementedTikvServer) KvGC(ctx context.Context, req *kvrpcpb.GCRequest) (*kvrpcpb.GCResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvGC not implemented") -} -func (*UnimplementedTikvServer) KvDeleteRange(ctx context.Context, req *kvrpcpb.DeleteRangeRequest) (*kvrpcpb.DeleteRangeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvDeleteRange not implemented") -} -func (*UnimplementedTikvServer) KvPrepareFlashbackToVersion(ctx context.Context, req *kvrpcpb.PrepareFlashbackToVersionRequest) (*kvrpcpb.PrepareFlashbackToVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvPrepareFlashbackToVersion not implemented") -} -func (*UnimplementedTikvServer) KvFlashbackToVersion(ctx context.Context, req *kvrpcpb.FlashbackToVersionRequest) (*kvrpcpb.FlashbackToVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KvFlashbackToVersion not implemented") -} -func (*UnimplementedTikvServer) 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 RegisterTikvServer(s *grpc.Server, srv TikvServer) { s.RegisterService(&_Tikv_serviceDesc, srv) } @@ -4391,7 +5258,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 } @@ -4399,18 +5266,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) @@ -4424,33 +5294,21 @@ 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 - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -4458,764 +5316,525 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 - } - return len(dAtA) - i, nil -} -func (m *BatchCommandsRequest_Request_Flush) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + 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 i, nil } - -func (m *BatchCommandsRequest_Request_Flush) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) +func (m *BatchCommandsRequest_Request_Flush) MarshalTo(dAtA []byte) (int, error) { + 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_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())) + n36, err := m.Empty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 } - 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 } @@ -5223,35 +5842,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 { dAtA38 := make([]byte, len(m.RequestIds)*10) @@ -5265,33 +5870,36 @@ func (m *BatchCommandsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA38[j37] = uint8(num) j37++ } - i -= j37 - copy(dAtA[i:], dAtA38[:j37]) - i = encodeVarintTikvpb(dAtA, i, uint64(j37)) - i-- dAtA[i] = 0x12 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(j37)) + i += copy(dAtA[i:], dAtA38[:j37]) } - 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())) + n39, err := m.HealthFeedback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n39 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -5299,764 +5907,525 @@ 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 - } + nn40, err := m.Cmd.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += nn40 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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())) + n41, err := m.Get.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n41 } - 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())) + n42, err := m.Scan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 } - 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())) + n43, err := m.Prewrite.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n43 } - 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())) + n44, err := m.Commit.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n44 } - 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())) + n45, err := m.Import.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 } - 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())) + n46, err := m.Cleanup.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n46 } - 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())) + n47, err := m.BatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 } - 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())) + n48, err := m.BatchRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 } - 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())) + n49, err := m.ScanLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n49 } - 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())) + n50, err := m.ResolveLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 } - 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())) + n51, err := m.GC.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n51 } - 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())) + n52, err := m.DeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n52 } - 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())) + n53, err := m.RawGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n53 } - 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())) + n54, err := m.RawBatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 } - 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())) + n55, err := m.RawPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n55 } - 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())) + n56, err := m.RawBatchPut.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 } - 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())) + n57, err := m.RawDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 } - 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())) + n58, err := m.RawBatchDelete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n58 } - 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())) + n59, err := m.RawScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 } - 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())) + n60, err := m.RawDeleteRange.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n60 } - 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())) + n61, err := m.RawBatchScan.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n61 } - 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())) + n62, err := m.Coprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n62 } - 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())) + n63, err := m.PessimisticLock.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n63 } - 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())) + n64, err := m.PessimisticRollback.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n64 } - 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())) + n65, err := m.CheckTxnStatus.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n65 } - 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())) + n66, err := m.TxnHeartBeat.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n66 } - 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())) + n67, err := m.CheckSecondaryLocks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n67 } - 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())) + n68, err := m.RawCoprocessor.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n68 } - 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())) + n69, err := m.FlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n69 } - 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())) + n70, err := m.PrepareFlashbackToVersion.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n70 } - 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 + i++ + dAtA[i] = 0x2 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.Flush.Size())) + n71, err := m.Flush.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n71 } - return len(dAtA) - i, nil + return 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) + 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())) + n72, err := m.BufferBatchGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n72 } - 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())) + n73, err := m.Empty.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n73 } - 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 } @@ -6064,40 +6433,32 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 } @@ -6105,36 +6466,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6142,31 +6497,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 } @@ -6174,52 +6523,41 @@ 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 = encodeVarintTikvpb(dAtA, i, uint64(m.SlowScore)) - i-- - dAtA[i] = 0x18 + if m.StoreId != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.StoreId)) } if m.FeedbackSeqNo != 0 { - i = encodeVarintTikvpb(dAtA, i, uint64(m.FeedbackSeqNo)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.FeedbackSeqNo)) } - if m.StoreId != 0 { - i = encodeVarintTikvpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x8 + if m.SlowScore != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintTikvpb(dAtA, i, uint64(m.SlowScore)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -6242,9 +6580,6 @@ func (m *BatchCommandsRequest) Size() (n int) { } func (m *BatchCommandsRequest_Request) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cmd != nil { @@ -6257,9 +6592,6 @@ func (m *BatchCommandsRequest_Request) Size() (n int) { } func (m *BatchCommandsRequest_Request_Get) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Get != nil { @@ -6269,9 +6601,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 { @@ -6281,9 +6610,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 { @@ -6293,9 +6619,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 { @@ -6305,9 +6628,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 { @@ -6317,9 +6637,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 { @@ -6329,9 +6646,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 { @@ -6341,9 +6655,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 { @@ -6353,9 +6664,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 { @@ -6365,9 +6673,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 { @@ -6377,9 +6682,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 { @@ -6389,9 +6691,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 { @@ -6401,9 +6700,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 { @@ -6413,9 +6709,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 { @@ -6425,9 +6718,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 { @@ -6437,9 +6727,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 { @@ -6449,9 +6736,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 { @@ -6461,9 +6745,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 { @@ -6473,9 +6754,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 { @@ -6485,9 +6763,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 { @@ -6497,9 +6772,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 { @@ -6509,9 +6781,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 { @@ -6521,9 +6790,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 { @@ -6533,9 +6799,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 { @@ -6545,9 +6808,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 { @@ -6557,9 +6817,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 { @@ -6569,9 +6826,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 { @@ -6581,9 +6835,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 { @@ -6593,9 +6844,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 { @@ -6605,9 +6853,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 { @@ -6617,9 +6862,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 { @@ -6629,9 +6871,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 { @@ -6641,9 +6880,6 @@ func (m *BatchCommandsRequest_Request_BufferBatchGet) 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 { @@ -6653,9 +6889,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,9 +6918,6 @@ func (m *BatchCommandsResponse) Size() (n int) { } func (m *BatchCommandsResponse_Response) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Cmd != nil { @@ -6700,9 +6930,6 @@ func (m *BatchCommandsResponse_Response) Size() (n int) { } func (m *BatchCommandsResponse_Response_Get) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Get != nil { @@ -6712,9 +6939,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 { @@ -6724,9 +6948,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 { @@ -6736,9 +6957,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 { @@ -6748,9 +6966,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 { @@ -6760,9 +6975,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 { @@ -6772,9 +6984,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 { @@ -6784,9 +6993,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 { @@ -6796,9 +7002,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 { @@ -6808,9 +7011,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 { @@ -6820,9 +7020,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 { @@ -6832,9 +7029,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 { @@ -6844,9 +7038,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 { @@ -6856,9 +7047,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 { @@ -6868,9 +7056,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 { @@ -6880,9 +7065,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 { @@ -6892,9 +7074,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 { @@ -6904,9 +7083,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 { @@ -6916,9 +7092,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 { @@ -6928,9 +7101,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 { @@ -6940,9 +7110,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 { @@ -6952,9 +7119,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 { @@ -6964,9 +7128,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 { @@ -6976,9 +7137,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 { @@ -6988,9 +7146,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 { @@ -7000,9 +7155,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 { @@ -7012,9 +7164,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 { @@ -7024,9 +7173,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 { @@ -7036,9 +7182,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 { @@ -7048,9 +7191,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 { @@ -7060,9 +7200,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 { @@ -7072,9 +7209,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 { @@ -7084,9 +7218,6 @@ func (m *BatchCommandsResponse_Response_BufferBatchGet) 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 { @@ -7096,9 +7227,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 { @@ -7114,9 +7242,6 @@ func (m *BatchRaftMessage) Size() (n int) { } func (m *BatchCommandsEmptyRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TestId != 0 { @@ -7132,9 +7257,6 @@ func (m *BatchCommandsEmptyRequest) Size() (n int) { } func (m *BatchCommandsEmptyResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TestId != 0 { @@ -7147,9 +7269,6 @@ func (m *BatchCommandsEmptyResponse) Size() (n int) { } func (m *HealthFeedback) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.StoreId != 0 { @@ -7168,7 +7287,14 @@ func (m *HealthFeedback) Size() (n int) { } 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)))) @@ -7188,7 +7314,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 } @@ -7216,7 +7342,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 } @@ -7225,9 +7351,6 @@ func (m *BatchCommandsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7248,7 +7371,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 } @@ -7265,7 +7388,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 } @@ -7274,23 +7397,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 { @@ -7302,7 +7411,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 } @@ -7318,7 +7427,7 @@ 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 { @@ -7349,7 +7458,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 } @@ -7377,7 +7486,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 } @@ -7386,9 +7495,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 } @@ -7412,7 +7518,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 } @@ -7421,9 +7527,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 } @@ -7447,7 +7550,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 } @@ -7456,9 +7559,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 } @@ -7482,7 +7582,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 } @@ -7491,9 +7591,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 } @@ -7517,7 +7614,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 } @@ -7526,9 +7623,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 } @@ -7552,7 +7646,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 } @@ -7561,9 +7655,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 } @@ -7587,7 +7678,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 } @@ -7596,9 +7687,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 } @@ -7622,7 +7710,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 } @@ -7631,9 +7719,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 } @@ -7657,7 +7742,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 } @@ -7666,9 +7751,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 } @@ -7692,7 +7774,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 } @@ -7701,9 +7783,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 } @@ -7727,7 +7806,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 } @@ -7736,9 +7815,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 } @@ -7762,7 +7838,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 } @@ -7771,9 +7847,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 } @@ -7797,7 +7870,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 } @@ -7806,9 +7879,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 } @@ -7832,7 +7902,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 } @@ -7841,9 +7911,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 } @@ -7867,7 +7934,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 } @@ -7876,9 +7943,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 } @@ -7902,7 +7966,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 } @@ -7911,9 +7975,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 } @@ -7937,7 +7998,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 } @@ -7946,9 +8007,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 } @@ -7972,7 +8030,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 } @@ -7981,9 +8039,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 } @@ -8007,7 +8062,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 } @@ -8016,9 +8071,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 } @@ -8042,7 +8094,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 } @@ -8051,9 +8103,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 } @@ -8077,7 +8126,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 } @@ -8086,9 +8135,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 } @@ -8112,7 +8158,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 } @@ -8121,9 +8167,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 } @@ -8147,7 +8190,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 } @@ -8156,9 +8199,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 } @@ -8182,7 +8222,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 } @@ -8191,9 +8231,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 } @@ -8217,7 +8254,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 } @@ -8226,9 +8263,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 } @@ -8252,7 +8286,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 } @@ -8261,9 +8295,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 } @@ -8287,7 +8318,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 } @@ -8296,9 +8327,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 } @@ -8322,7 +8350,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 } @@ -8331,9 +8359,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 } @@ -8357,7 +8382,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 } @@ -8366,9 +8391,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 } @@ -8392,7 +8414,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 } @@ -8401,9 +8423,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 } @@ -8427,7 +8446,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 } @@ -8436,9 +8455,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 } @@ -8462,7 +8478,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 } @@ -8471,9 +8487,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 } @@ -8497,7 +8510,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 } @@ -8506,9 +8519,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 } @@ -8524,7 +8534,7 @@ 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 { @@ -8555,7 +8565,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 } @@ -8583,7 +8593,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 } @@ -8592,9 +8602,6 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8615,7 +8622,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 } @@ -8632,7 +8639,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 } @@ -8641,23 +8648,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 { @@ -8669,7 +8662,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 } @@ -8693,7 +8686,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 } @@ -8712,7 +8705,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 } @@ -8721,9 +8714,6 @@ func (m *BatchCommandsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8740,7 +8730,7 @@ 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 { @@ -8771,7 +8761,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 } @@ -8799,7 +8789,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 } @@ -8808,9 +8798,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 } @@ -8834,7 +8821,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 } @@ -8843,9 +8830,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 } @@ -8869,7 +8853,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 } @@ -8878,9 +8862,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 } @@ -8904,7 +8885,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 } @@ -8913,9 +8894,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 } @@ -8939,7 +8917,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 } @@ -8948,9 +8926,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 } @@ -8974,7 +8949,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 } @@ -8983,9 +8958,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 } @@ -9009,7 +8981,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 } @@ -9018,9 +8990,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 } @@ -9044,7 +9013,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 } @@ -9053,9 +9022,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 } @@ -9079,7 +9045,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 } @@ -9088,9 +9054,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 } @@ -9114,7 +9077,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 } @@ -9122,10 +9085,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 } @@ -9149,7 +9109,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 } @@ -9158,9 +9118,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 } @@ -9184,7 +9141,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 } @@ -9193,9 +9150,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 } @@ -9219,7 +9173,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 } @@ -9228,9 +9182,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 } @@ -9254,7 +9205,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 } @@ -9263,9 +9214,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 } @@ -9289,7 +9237,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 } @@ -9298,9 +9246,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 } @@ -9324,7 +9269,7 @@ func (m *BatchCommandsResponse_Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } @@ -9333,9 +9278,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 } @@ -9359,7 +9301,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 } @@ -9368,9 +9310,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 } @@ -9394,7 +9333,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 } @@ -9403,9 +9342,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 } @@ -9429,7 +9365,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 } @@ -9438,9 +9374,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 } @@ -9464,7 +9397,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 } @@ -9473,9 +9406,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 } @@ -9499,7 +9429,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 } @@ -9508,9 +9438,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 } @@ -9534,7 +9461,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 } @@ -9543,9 +9470,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 } @@ -9569,7 +9493,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 } @@ -9578,9 +9502,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 } @@ -9604,7 +9525,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 } @@ -9613,9 +9534,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 } @@ -9639,7 +9557,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 } @@ -9648,9 +9566,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 } @@ -9674,7 +9589,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 } @@ -9683,9 +9598,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 } @@ -9709,7 +9621,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 } @@ -9718,9 +9630,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 } @@ -9744,7 +9653,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 } @@ -9753,9 +9662,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 } @@ -9779,7 +9685,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 } @@ -9788,9 +9694,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 } @@ -9814,7 +9717,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 } @@ -9823,9 +9726,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 } @@ -9849,7 +9749,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 } @@ -9858,9 +9758,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 } @@ -9884,7 +9781,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 } @@ -9893,9 +9790,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 } @@ -9919,7 +9813,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 } @@ -9928,9 +9822,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 } @@ -9946,7 +9837,7 @@ 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 { @@ -9977,7 +9868,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 } @@ -10005,7 +9896,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 } @@ -10014,9 +9905,6 @@ func (m *BatchRaftMessage) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTikvpb } postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTikvpb - } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10031,7 +9919,7 @@ 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 { @@ -10062,7 +9950,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 } @@ -10090,7 +9978,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 } @@ -10109,7 +9997,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 } @@ -10120,7 +10008,7 @@ 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 { @@ -10151,7 +10039,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 } @@ -10179,7 +10067,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 } @@ -10190,7 +10078,7 @@ 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 { @@ -10221,7 +10109,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 } @@ -10249,7 +10137,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 } @@ -10268,7 +10156,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 } @@ -10287,7 +10175,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 } @@ -10298,7 +10186,7 @@ func (m *HealthFeedback) Unmarshal(dAtA []byte) error { if err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if skippy < 0 { return ErrInvalidLengthTikvpb } if (iNdEx + skippy) > l { @@ -10317,7 +10205,6 @@ func (m *HealthFeedback) 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 { @@ -10349,8 +10236,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 { @@ -10367,34 +10256,229 @@ 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", fileDescriptor_tikvpb_3be4280c83c09621) } + +var fileDescriptor_tikvpb_3be4280c83c09621 = []byte{ + // 2719 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff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 0x60, 0xac, 0x27, 0x85, 0x8c, 0x25, 0x42, 0xda, 0x20, 0xeb, + 0xcf, 0xa3, 0x21, 0xeb, 0xa3, 0xbb, 0x40, 0x96, 0x48, 0x52, 0x40, 0x59, 0x7b, 0x3a, 0x65, 0x3d, + 0x30, 0x29, 0x4b, 0xc4, 0x48, 0x30, 0xeb, 0x34, 0x07, 0xb3, 0xb6, 0x72, 0x31, 0x4b, 0xae, 0x9e, + 0xc1, 0x59, 0x5f, 0x1a, 0x9c, 0xe5, 0x17, 0x71, 0x96, 0x1c, 0x87, 0x05, 0xb4, 0x0e, 0xc0, 0x62, + 0x7c, 0x96, 0xa1, 0x2b, 0x7a, 0x8e, 0x09, 0x41, 0x2d, 0x0c, 0xf7, 0xc0, 0x78, 0x97, 0xb4, 0x52, + 0xba, 0xf2, 0xf6, 0xf4, 0xbb, 0x2a, 0xc5, 0xb2, 0xca, 0xed, 0xfc, 0x1a, 0x58, 0xcf, 0xe5, 0x3b, + 0xb8, 0x06, 0xa6, 0x68, 0x8c, 0x59, 0x1c, 0x66, 0xc6, 0xab, 0x93, 0x94, 0x23, 0x16, 0x7c, 0x08, + 0x40, 0x13, 0x77, 0xd0, 0xf0, 0x82, 0xb6, 0xbb, 0x98, 0xd3, 0xcb, 0x78, 0x75, 0x86, 0x4b, 0xea, + 0xed, 0x2e, 0xf6, 0x7f, 0x0d, 0xbc, 0xfc, 0xc9, 0xe4, 0x46, 0xf5, 0x23, 0x30, 0xaf, 0x63, 0x16, + 0x5c, 0x07, 0xd3, 0x84, 0x86, 0x11, 0x96, 0xb6, 0x53, 0xfc, 0xf7, 0x69, 0x13, 0xee, 0x80, 0x85, + 0x94, 0xd5, 0x2e, 0x08, 0x7e, 0x73, 0x11, 0x84, 0xc9, 0x38, 0xe6, 0x52, 0x71, 0x0d, 0xbf, 0xf9, + 0x5d, 0xc8, 0x86, 0x4a, 0x3a, 0xe1, 0xed, 0x05, 0x69, 0x84, 0x51, 0xcc, 0x4d, 0x13, 0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0x9b, 0x24, 0xbf, 0xe4, 0xad, 0x83, 0x26, + 0x54, 0x46, 0xb3, 0x5c, 0xc5, 0xac, 0x7f, 0x4b, 0x66, 0x94, 0x74, 0xba, 0x1b, 0xdc, 0x3c, 0xd6, + 0x48, 0xb1, 0x5c, 0x75, 0xbb, 0x56, 0x44, 0x3d, 0x01, 0xb3, 0xf1, 0x49, 0x81, 0x51, 0x13, 0x47, + 0xca, 0x0e, 0x50, 0xa4, 0xd9, 0x1d, 0xa0, 0x29, 0x93, 0x1b, 0x9e, 0x32, 0x98, 0x3f, 0xc6, 0xb4, + 0x46, 0xc3, 0x08, 0xd7, 0xd0, 0x15, 0xae, 0xd7, 0xd4, 0xed, 0x24, 0xa5, 0x96, 0xed, 0xa4, 0x2a, + 0x93, 0x60, 0x75, 0xb0, 0x70, 0x8c, 0x29, 0x2b, 0xfd, 0x3f, 0xa2, 0x36, 0x3d, 0x0d, 0xae, 0x42, + 0xe5, 0x8a, 0xc3, 0xd0, 0x64, 0xaf, 0x38, 0x32, 0x06, 0x49, 0xd4, 0xaf, 0xc0, 0x14, 0xc7, 0x95, + 0x06, 0x85, 0x5a, 0x4f, 0xcd, 0x24, 0x96, 0x66, 0x37, 0x55, 0x24, 0xde, 0x7f, 0x02, 0x50, 0x09, + 0x7c, 0xd2, 0x26, 0x34, 0x8c, 0x86, 0xca, 0xa9, 0x99, 0x55, 0x66, 0x4f, 0x4d, 0x9b, 0x4d, 0x12, + 0xfe, 0x12, 0xac, 0x1e, 0x63, 0x5a, 0x6f, 0xf3, 0x36, 0xa7, 0x36, 0x24, 0x14, 0x77, 0x79, 0xed, + 0x52, 0x32, 0x64, 0x95, 0xd9, 0x0c, 0x36, 0x1b, 0x85, 0x52, 0x01, 0x8d, 0x86, 0x2f, 0x9b, 0xcd, + 0xe4, 0x44, 0xd6, 0xff, 0x7e, 0xad, 0x2e, 0x54, 0xb2, 0x10, 0xe4, 0x5b, 0x28, 0xac, 0x32, 0x47, + 0xa3, 0xe1, 0x39, 0x8a, 0x6e, 0x12, 0x1c, 0x7f, 0x92, 0xf5, 0x92, 0x5a, 0x79, 0x41, 0x52, 0x68, + 0x24, 0xa2, 0x07, 0x60, 0x59, 0xec, 0xb3, 0x43, 0xee, 0xc1, 0xb7, 0xf3, 0x87, 0x86, 0xbb, 0xc5, + 0x46, 0xf6, 0xaa, 0x77, 0x30, 0x55, 0x00, 0x6f, 0x31, 0x2e, 0x06, 0x4a, 0xb2, 0x1d, 0x23, 0x82, + 0x69, 0x90, 0x66, 0xfa, 0x60, 0xa4, 0x9d, 0x48, 0xf3, 0x07, 0xb0, 0x78, 0x84, 0x59, 0x23, 0xc2, + 0x95, 0x15, 0xd4, 0xc2, 0x24, 0x93, 0xc6, 0x34, 0x90, 0x27, 0x88, 0x6e, 0xc7, 0x95, 0x4a, 0x85, + 0xb9, 0xe4, 0x9b, 0x27, 0x76, 0x2c, 0x85, 0xc1, 0x55, 0xbb, 0x05, 0x9f, 0x1a, 0x2e, 0x86, 0x3e, + 0x8d, 0xbc, 0x33, 0xca, 0x2c, 0x1d, 0xff, 0xc1, 0xce, 0x3f, 0xff, 0x3a, 0x3d, 0xf6, 0xf7, 0x77, + 0x9b, 0x63, 0x3f, 0xbd, 0xdb, 0x1c, 0xfb, 0xd7, 0xbb, 0xcd, 0xb1, 0xbf, 0xfc, 0x7b, 0xd3, 0x01, + 0x8b, 0x61, 0xd4, 0xe2, 0x75, 0x7e, 0xef, 0x66, 0xc0, 0xff, 0xcc, 0xf1, 0x72, 0x92, 0xff, 0xf3, + 0xc9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x2c, 0x72, 0x91, 0x83, 0x29, 0x00, 0x00, +} diff --git a/pkg/tracepb/tracepb.pb.go b/pkg/tracepb/tracepb.pb.go index 55cf091a7d..e48b2d51bb 100644 --- a/pkg/tracepb/tracepb.pb.go +++ b/pkg/tracepb/tracepb.pb.go @@ -4,16 +4,15 @@ 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,7 +24,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 TraceRecordRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -37,7 +36,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{0} } func (m *TraceRecordRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -47,15 +46,15 @@ func (m *TraceRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_TraceRecordRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TraceRecordRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceRecordRequest.Merge(dst, src) } func (m *TraceRecordRequest) XXX_Size() int { return m.Size() @@ -68,7 +67,6 @@ var xxx_messageInfo_TraceRecordRequest proto.InternalMessageInfo type TraceRecord struct { // Types that are valid to be assigned to RecordOneof: - // // *TraceRecord_Report // *TraceRecord_NotifyCollect RecordOneof isTraceRecord_RecordOneof `protobuf_oneof:"record_oneof"` @@ -81,7 +79,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{1} } func (m *TraceRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,15 +89,15 @@ func (m *TraceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TraceRecord.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TraceRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceRecord.Merge(dst, src) } func (m *TraceRecord) XXX_Size() int { return m.Size() @@ -117,10 +115,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,14 +145,80 @@ 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), } } +func _TraceRecord_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TraceRecord) + // record_oneof + switch x := m.RecordOneof.(type) { + case *TraceRecord_Report: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Report); err != nil { + return err + } + case *TraceRecord_NotifyCollect: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NotifyCollect); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TraceRecord.RecordOneof has unexpected type %T", x) + } + return nil +} + +func _TraceRecord_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TraceRecord) + switch tag { + case 1: // record_oneof.report + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Report) + err := b.DecodeMessage(msg) + m.RecordOneof = &TraceRecord_Report{msg} + return true, err + case 2: // record_oneof.notify_collect + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(NotifyCollect) + err := b.DecodeMessage(msg) + m.RecordOneof = &TraceRecord_NotifyCollect{msg} + return true, err + default: + return false, nil + } +} + +func _TraceRecord_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TraceRecord) + // record_oneof + switch x := m.RecordOneof.(type) { + case *TraceRecord_Report: + s := proto.Size(x.Report) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *TraceRecord_NotifyCollect: + s := proto.Size(x.NotifyCollect) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type RemoteParentSpan struct { // A unique id to identify the request. It's usually a UUID. TraceId uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` @@ -169,7 +233,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{2} } func (m *RemoteParentSpan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -179,15 +243,15 @@ func (m *RemoteParentSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_RemoteParentSpan.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } -func (m *RemoteParentSpan) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteParentSpan.Merge(m, src) +func (dst *RemoteParentSpan) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoteParentSpan.Merge(dst, src) } func (m *RemoteParentSpan) XXX_Size() int { return m.Size() @@ -214,7 +278,7 @@ 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:"-"` @@ -226,7 +290,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{3} } func (m *TraceContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -236,15 +300,15 @@ func (m *TraceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TraceContext.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TraceContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_TraceContext.Merge(dst, src) } func (m *TraceContext) XXX_Size() int { return m.Size() @@ -271,8 +335,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -282,7 +346,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{4} } func (m *Report) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -292,15 +356,15 @@ func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Report.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Report) XXX_Merge(src proto.Message) { + xxx_messageInfo_Report.Merge(dst, src) } func (m *Report) XXX_Size() int { return m.Size() @@ -337,7 +401,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{5} } func (m *NotifyCollect) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -347,15 +411,15 @@ func (m *NotifyCollect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_NotifyCollect.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *NotifyCollect) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotifyCollect.Merge(dst, src) } func (m *NotifyCollect) XXX_Size() int { return m.Size() @@ -381,7 +445,7 @@ type Span struct { 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"` + Properties []*Property `protobuf:"bytes,6,rep,name=properties" json:"properties,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -391,7 +455,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{6} } func (m *Span) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -401,15 +465,15 @@ func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Span.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Span) XXX_Merge(src proto.Message) { + xxx_messageInfo_Span.Merge(dst, src) } func (m *Span) XXX_Size() int { return m.Size() @@ -474,7 +538,7 @@ 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} + return fileDescriptor_tracepb_e95ec523a1669bb5, []int{7} } func (m *Property) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -484,15 +548,15 @@ func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Property.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Property) XXX_Merge(src proto.Message) { + xxx_messageInfo_Property.Merge(dst, src) } func (m *Property) XXX_Size() int { return m.Size() @@ -528,44 +592,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, 0xd7, 0x89, 0xe5, 0x02, 0x62, 0xc5, 0xca, 0x73, 0xcf, 0xb9, 0xaf, - 0x73, 0xac, 0x0b, 0x8e, 0xd5, 0xfe, 0x42, 0xc4, 0xc1, 0x30, 0xd6, 0xca, 0x2a, 0x7a, 0xb4, 0x0f, - 0x59, 0x17, 0xe8, 0x55, 0xfa, 0xe4, 0x62, 0xa1, 0x74, 0xc8, 0xc5, 0xc7, 0x44, 0x18, 0xcb, 0x3e, - 0x11, 0x68, 0x15, 0x60, 0xfa, 0x1c, 0xea, 0x5a, 0xc4, 0x4a, 0x5b, 0x97, 0xf4, 0xc9, 0xa0, 0x35, - 0x7a, 0x30, 0x3c, 0xb4, 0xe3, 0x08, 0x5f, 0x96, 0xf8, 0x3e, 0x81, 0xbe, 0x81, 0x13, 0xa9, 0x6c, - 0x74, 0xbd, 0xf5, 0x16, 0x6a, 0xb5, 0x12, 0x0b, 0xeb, 0x96, 0xb1, 0xe4, 0x51, 0x5e, 0x32, 0x45, - 0xfa, 0x22, 0x63, 0x2f, 0x4b, 0xdc, 0x91,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0x4c, 0x68, - 0x21, 0xf8, 0x5e, 0x46, 0x9b, 0xa9, 0xa1, 0x4f, 0xa1, 0x95, 0x9b, 0x27, 0x8d, 0x5b, 0xc5, 0x0c, - 0x38, 0x40, 0x53, 0x43, 0xbb, 0x50, 0x13, 0x6b, 0x21, 0xad, 0x5b, 0xeb, 0x93, 0x41, 0x93, 0x67, - 0x01, 0x7d, 0x05, 0x10, 0x6b, 0x15, 0x0b, 0x6d, 0x23, 0x61, 0xdc, 0x3a, 0xea, 0xed, 0xe4, 0x7a, - 0x67, 0x19, 0xb5, 0xe5, 0x85, 0x24, 0x36, 0x82, 0xc6, 0x01, 0xa7, 0x6d, 0xa8, 0x2c, 0xc5, 0x16, - 0xb5, 0x34, 0x79, 0xfa, 0x4c, 0xc7, 0xac, 0xfd, 0x55, 0x22, 0x50, 0x44, 0x93, 0x67, 0xc1, 0xe8, - 0x03, 0x74, 0x0a, 0x97, 0x30, 0x4b, 0x82, 0x79, 0x12, 0xd0, 0x31, 0x34, 0xe7, 0x49, 0x60, 0x16, - 0x3a, 0x0a, 0x04, 0x3d, 0xcf, 0x87, 0xfe, 0x79, 0x49, 0x4f, 0xba, 0x7f, 0x23, 0x59, 0xe9, 0x25, - 0x19, 0xb3, 0xaf, 0xbb, 0x1e, 0xf9, 0xbe, 0xeb, 0x91, 0x1f, 0xbb, 0x1e, 0xf9, 0xf2, 0xb3, 0x57, - 0x82, 0xb6, 0xd2, 0x37, 0x43, 0x1b, 0x2d, 0xd7, 0xc3, 0xe5, 0x1a, 0xcf, 0x34, 0xa8, 0xe3, 0xe7, - 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x50, 0x65, 0xbd, 0xbe, 0x03, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -574,9 +600,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. @@ -623,21 +648,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 +698,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 +706,20 @@ 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) + i += 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 +727,55 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +783,30 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +814,37 @@ 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 len(m.RemoteParentSpans) > 0 { + for _, msg := range m.RemoteParentSpans { + dAtA[i] = 0xa + i++ + i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } if m.DurationThresholdMs != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.DurationThresholdMs)) - i-- dAtA[i] = 0x10 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(m.DurationThresholdMs)) } - if len(m.RemoteParentSpans) > 0 { - for iNdEx := len(m.RemoteParentSpans) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RemoteParentSpans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTracepb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - return len(dAtA) - i, nil + 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 +852,44 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +897,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +923,58 @@ 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 len(m.Event) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintTracepb(dAtA, i, uint64(len(m.Event))) + i += copy(dAtA[i:], m.Event) } - if m.ParentId != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.ParentId)) - i-- - dAtA[i] = 0x10 + if len(m.Properties) > 0 { + for _, msg := range m.Properties { + dAtA[i] = 0x32 + i++ + i = encodeVarintTracepb(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if m.SpanId != 0 { - i = encodeVarintTracepb(dAtA, i, uint64(m.SpanId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += 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 } @@ -1031,51 +982,38 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -1085,9 +1023,6 @@ func (m *TraceRecordRequest) Size() (n int) { } func (m *TraceRecord) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.RecordOneof != nil { @@ -1100,9 +1035,6 @@ func (m *TraceRecord) Size() (n int) { } func (m *TraceRecord_Report) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Report != nil { @@ -1112,9 +1044,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 +1053,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 { @@ -1142,9 +1068,6 @@ func (m *RemoteParentSpan) Size() (n int) { } func (m *TraceContext) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.RemoteParentSpans) > 0 { @@ -1163,9 +1086,6 @@ func (m *TraceContext) Size() (n int) { } func (m *Report) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if len(m.RemoteParentSpans) > 0 { @@ -1187,9 +1107,6 @@ func (m *Report) Size() (n int) { } func (m *NotifyCollect) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.TraceId != 0 { @@ -1202,9 +1119,6 @@ func (m *NotifyCollect) Size() (n int) { } func (m *Span) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SpanId != 0 { @@ -1236,9 +1150,6 @@ func (m *Span) Size() (n int) { } func (m *Property) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Key) @@ -1256,7 +1167,14 @@ func (m *Property) Size() (n int) { } 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 +1194,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,7 +1214,7 @@ 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 { @@ -1327,7 +1245,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 +1273,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 +1282,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 +1305,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 +1314,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,7 +1329,7 @@ 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 { @@ -1448,7 +1360,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 +1388,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 +1407,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,7 +1418,7 @@ 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 { @@ -1537,7 +1449,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 +1477,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 +1486,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 +1508,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,7 +1519,7 @@ 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 { @@ -1641,7 +1550,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 +1578,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 +1587,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 +1609,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 +1618,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,7 +1632,7 @@ 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 { @@ -1760,7 +1663,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 +1691,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,7 +1702,7 @@ 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 { @@ -1830,7 +1733,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 +1761,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 +1780,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 +1799,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 +1818,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 +1837,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 +1847,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 +1866,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 +1875,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,7 +1889,7 @@ 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 { @@ -2023,7 +1920,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 +1948,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 +1958,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 +1977,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 +1987,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,7 +1998,7 @@ 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 { @@ -2126,7 +2017,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 +2048,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 +2068,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", fileDescriptor_tracepb_e95ec523a1669bb5) } + +var fileDescriptor_tracepb_e95ec523a1669bb5 = []byte{ + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcb, 0x6e, 0xd3, 0x40, + 0x14, 0xcd, 0xe4, 0xd5, 0xe4, 0xa6, 0x2e, 0xc9, 0x34, 0x80, 0x4b, 0xa5, 0x10, 0x0d, 0x9b, 0xc0, + 0x22, 0x82, 0xf0, 0x01, 0x48, 0xa9, 0x84, 0x9a, 0x05, 0x51, 0x34, 0x29, 0x62, 0x69, 0xd9, 0xf1, + 0xb4, 0xb5, 0x92, 0xce, 0x98, 0x99, 0x71, 0x94, 0x7c, 0x02, 0x0b, 0xf6, 0x7c, 0x12, 0x62, 0xc5, + 0x27, 0xa0, 0xf0, 0x23, 0xc8, 0xd7, 0x89, 0xe5, 0x02, 0x62, 0xc5, 0xca, 0x73, 0xcf, 0xb9, 0xaf, + 0x73, 0xac, 0x0b, 0x8e, 0xd5, 0xfe, 0x42, 0xc4, 0xc1, 0x30, 0xd6, 0xca, 0x2a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x9d, 0xc1, 0x15, 0x1c, 0x7e, 0x7a, 0x20, 0xaf, 0x0e, 0xdc, 0x3b, 0xc3, 0x36, + 0x50, 0xcf, 0xcc, 0xfb, 0x9f, 0x8b, 0x3c, 0x83, 0x5a, 0x56, 0x5c, 0xc6, 0x62, 0x27, 0x2f, 0xc6, + 0x82, 0x8c, 0x63, 0x2f, 0xc0, 0xb9, 0xf7, 0x0f, 0xfe, 0x61, 0x27, 0xfb, 0x46, 0xa0, 0x8a, 0x96, + 0x17, 0x7c, 0x25, 0x45, 0x5f, 0xe9, 0x39, 0x34, 0xf7, 0x6b, 0xe7, 0x96, 0x37, 0x32, 0x60, 0x12, + 0x52, 0x06, 0x4e, 0x20, 0x6e, 0x22, 0xe9, 0x25, 0x32, 0xda, 0x78, 0xd2, 0xb8, 0x15, 0x4c, 0x68, + 0x21, 0xf8, 0x5e, 0x46, 0x9b, 0xa9, 0xa1, 0x4f, 0xa1, 0x95, 0x9b, 0x27, 0x8d, 0x5b, 0xc5, 0x0c, + 0x38, 0x40, 0x53, 0x43, 0xbb, 0x50, 0x13, 0x6b, 0x21, 0xad, 0x5b, 0xeb, 0x93, 0x41, 0x93, 0x67, + 0x01, 0x7d, 0x05, 0x10, 0x6b, 0x15, 0x0b, 0x6d, 0x23, 0x61, 0xdc, 0x3a, 0xea, 0xed, 0xe4, 0x7a, + 0x67, 0x19, 0xb5, 0xe5, 0x85, 0x24, 0x36, 0x82, 0xc6, 0x01, 0xa7, 0x6d, 0xa8, 0x2c, 0xc5, 0x16, + 0xb5, 0x34, 0x79, 0xfa, 0x4c, 0xc7, 0xac, 0xfd, 0x55, 0x22, 0x50, 0x44, 0x93, 0x67, 0xc1, 0xe8, + 0x03, 0x74, 0x0a, 0x97, 0x30, 0x4b, 0x82, 0x79, 0x12, 0xd0, 0x31, 0x34, 0xe7, 0x49, 0x60, 0x16, + 0x3a, 0x0a, 0x04, 0x3d, 0xcf, 0x87, 0xfe, 0x79, 0x49, 0x4f, 0xba, 0x7f, 0x23, 0x59, 0xe9, 0x25, + 0x19, 0xb3, 0xaf, 0xbb, 0x1e, 0xf9, 0xbe, 0xeb, 0x91, 0x1f, 0xbb, 0x1e, 0xf9, 0xf2, 0xb3, 0x57, + 0x82, 0xb6, 0xd2, 0x37, 0x43, 0x1b, 0x2d, 0xd7, 0xc3, 0xe5, 0x1a, 0xcf, 0x34, 0xa8, 0xe3, 0xe7, + 0xf5, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x50, 0x65, 0xbd, 0xbe, 0x03, 0x00, 0x00, +} diff --git a/pkg/tsopb/tsopb.pb.go b/pkg/tsopb/tsopb.pb.go index c093253be9..2cbc93562f 100644 --- a/pkg/tsopb/tsopb.pb.go +++ b/pkg/tsopb/tsopb.pb.go @@ -4,18 +4,18 @@ 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" + + 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 +27,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type ErrorType int32 @@ -48,7 +48,6 @@ var ErrorType_name = map[int32]string{ 4: "INVALID_VALUE", 5: "CLUSTER_MISMATCHED", } - var ErrorType_value = map[string]int32{ "OK": 0, "UNKNOWN": 1, @@ -61,9 +60,8 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{0} } type RequestHeader struct { @@ -84,7 +82,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{0} } func (m *RequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -94,15 +92,15 @@ func (m *RequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_RequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *RequestHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestHeader.Merge(dst, src) } func (m *RequestHeader) XXX_Size() int { return m.Size() @@ -144,7 +142,7 @@ 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. @@ -158,7 +156,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{1} } func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -168,15 +166,15 @@ func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *ResponseHeader) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResponseHeader.Merge(dst, src) } func (m *ResponseHeader) XXX_Size() int { return m.Size() @@ -227,7 +225,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{2} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -237,15 +235,15 @@ func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Error.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) } func (m *Error) XXX_Size() int { return m.Size() @@ -271,7 +269,7 @@ func (m *Error) GetMessage() string { } type TsoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -283,7 +281,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{3} } func (m *TsoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -293,15 +291,15 @@ func (m *TsoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TsoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TsoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoRequest.Merge(dst, src) } func (m *TsoRequest) XXX_Size() int { return m.Size() @@ -334,9 +332,9 @@ func (m *TsoRequest) GetDcLocation() string { } type TsoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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,proto3" json:"timestamp,omitempty"` + Timestamp *pdpb.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -346,7 +344,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{4} } func (m *TsoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -356,15 +354,15 @@ func (m *TsoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_TsoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *TsoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TsoResponse.Merge(dst, src) } func (m *TsoResponse) XXX_Size() int { return m.Size() @@ -403,7 +401,7 @@ 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"` + ListenUrls []string `protobuf:"bytes,3,rep,name=listen_urls,json=listenUrls" json:"listen_urls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -413,7 +411,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{5} } func (m *Participant) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -423,15 +421,15 @@ func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_Participant.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *Participant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Participant.Merge(dst, src) } func (m *Participant) XXX_Size() int { return m.Size() @@ -475,7 +473,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{6} } func (m *KeyspaceGroupMember) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -485,15 +483,15 @@ func (m *KeyspaceGroupMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_KeyspaceGroupMember.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyspaceGroupMember) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyspaceGroupMember.Merge(dst, src) } func (m *KeyspaceGroupMember) XXX_Size() int { return m.Size() @@ -529,7 +527,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{7} } func (m *SplitState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -539,15 +537,15 @@ func (m *SplitState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SplitState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *SplitState) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitState.Merge(dst, src) } func (m *SplitState) XXX_Size() int { return m.Size() @@ -568,8 +566,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -579,7 +577,7 @@ 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} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{8} } func (m *KeyspaceGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -589,15 +587,15 @@ func (m *KeyspaceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_KeyspaceGroup.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *KeyspaceGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyspaceGroup.Merge(dst, src) } func (m *KeyspaceGroup) XXX_Size() int { return m.Size() @@ -637,7 +635,7 @@ func (m *KeyspaceGroup) GetMembers() []*KeyspaceGroupMember { } type FindGroupByKeyspaceIDRequest 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -648,7 +646,7 @@ func (m *FindGroupByKeyspaceIDRequest) Reset() { *m = FindGroupByKeyspac func (m *FindGroupByKeyspaceIDRequest) String() string { return proto.CompactTextString(m) } func (*FindGroupByKeyspaceIDRequest) ProtoMessage() {} func (*FindGroupByKeyspaceIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{9} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{9} } func (m *FindGroupByKeyspaceIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -658,15 +656,15 @@ func (m *FindGroupByKeyspaceIDRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_FindGroupByKeyspaceIDRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FindGroupByKeyspaceIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindGroupByKeyspaceIDRequest.Merge(dst, src) } func (m *FindGroupByKeyspaceIDRequest) XXX_Size() int { return m.Size() @@ -692,8 +690,8 @@ 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"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -703,7 +701,7 @@ func (m *FindGroupByKeyspaceIDResponse) Reset() { *m = FindGroupByKeyspa func (m *FindGroupByKeyspaceIDResponse) String() string { return proto.CompactTextString(m) } func (*FindGroupByKeyspaceIDResponse) ProtoMessage() {} func (*FindGroupByKeyspaceIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{10} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{10} } func (m *FindGroupByKeyspaceIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -713,15 +711,15 @@ func (m *FindGroupByKeyspaceIDResponse) XXX_Marshal(b []byte, deterministic bool return xxx_messageInfo_FindGroupByKeyspaceIDResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *FindGroupByKeyspaceIDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindGroupByKeyspaceIDResponse.Merge(dst, src) } func (m *FindGroupByKeyspaceIDResponse) XXX_Size() int { return m.Size() @@ -747,7 +745,7 @@ func (m *FindGroupByKeyspaceIDResponse) GetKeyspaceGroup() *KeyspaceGroup { } type GetMinTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -758,7 +756,7 @@ func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } func (*GetMinTSRequest) ProtoMessage() {} func (*GetMinTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{11} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{11} } func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -768,15 +766,15 @@ func (m *GetMinTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return xxx_messageInfo_GetMinTSRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMinTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSRequest.Merge(dst, src) } func (m *GetMinTSRequest) XXX_Size() int { return m.Size() @@ -802,8 +800,8 @@ 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 @@ -817,7 +815,7 @@ func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } func (*GetMinTSResponse) ProtoMessage() {} func (*GetMinTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad96434e4f0d3c2b, []int{12} + return fileDescriptor_tsopb_0b69da5f364eb8e3, []int{12} } func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -827,15 +825,15 @@ func (m *GetMinTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_GetMinTSResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) + n, err := m.MarshalTo(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 (dst *GetMinTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSResponse.Merge(dst, src) } func (m *GetMinTSResponse) XXX_Size() int { return m.Size() @@ -875,7 +873,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 +886,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, 0xf6, 0xee, 0x76, 0x66, 0x1c, 0xc9, 0xe2, 0xc4, - 0x99, 0x3f, 0xd0, 0x23, 0x27, 0xc4, 0x4f, 0xe1, 0xc8, 0x91, 0x03, 0x42, 0x28, 0xfc, 0x11, 0xb4, - 0xb3, 0xb3, 0xb1, 0xd7, 0x0d, 0x2d, 0x8a, 0x38, 0xed, 0xcc, 0xf3, 0xbe, 0x33, 0xcf, 0xfb, 0xf5, - 0xcc, 0x82, 0x29, 0x45, 0x9c, 0x9c, 0xb7, 0x13, 0x1e, 0xcb, 0x18, 0x57, 0xd5, 0xa6, 0x05, 0x49, - 0x98, 0x43, 0xad, 0xc6, 0x24, 0x9e, 0xc4, 0x6a, 0xf9, 0x2c, 0x5d, 0x69, 0x74, 0x9b, 0xcf, 0x85, - 0x54, 0xcb, 0x0c, 0xb0, 0x5f, 0x23, 0xa8, 0x13, 0xfa, 0x6a, 0x4e, 0x85, 0x7c, 0x41, 0x83, 0x90, - 0x72, 0xfc, 0x08, 0x60, 0x3c, 0x9d, 0x0b, 0x49, 0xb9, 0xcf, 0xc2, 0x26, 0xda, 0x47, 0x07, 0x15, - 0x62, 0x68, 0xa4, 0x1f, 0xe2, 0x87, 0x60, 0x08, 0x1a, 0x85, 0x99, 0xb5, 0xa4, 0xac, 0xb5, 0x0c, - 0xe8, 0x87, 0xf8, 0x7d, 0x30, 0x2f, 0xe8, 0x42, 0x24, 0xc1, 0x98, 0xa6, 0xe6, 0xf2, 0x3e, 0x3a, - 0xa8, 0x13, 0xc8, 0xa1, 0x7e, 0x88, 0x9f, 0xc0, 0xce, 0xb5, 0xc3, 0x84, 0xc7, 0xf3, 0x24, 0x75, - 0xab, 0x28, 0xb7, 0xed, 0xdc, 0x70, 0x94, 0xe2, 0xfd, 0xd0, 0xfe, 0x09, 0xc1, 0x16, 0xa1, 0x22, - 0x89, 0x23, 0x41, 0xff, 0x5b, 0x6c, 0x36, 0x54, 0x29, 0xe7, 0x31, 0x57, 0x71, 0x99, 0xce, 0xdd, - 0x76, 0x56, 0xa3, 0x5e, 0x8a, 0x91, 0xcc, 0xf4, 0xff, 0x86, 0x78, 0x04, 0x55, 0x75, 0x39, 0x7e, - 0x0c, 0x15, 0xb9, 0x48, 0xa8, 0x0a, 0x69, 0xcb, 0xb1, 0x56, 0x89, 0xbd, 0x45, 0x42, 0x89, 0xb2, - 0xe2, 0x26, 0xdc, 0x99, 0x51, 0x21, 0x82, 0x09, 0x55, 0x11, 0x1a, 0x24, 0xdf, 0xda, 0xaf, 0x00, - 0x3c, 0x11, 0xeb, 0x46, 0xe0, 0x8f, 0x61, 0xf3, 0x3b, 0x95, 0xb0, 0xba, 0xcf, 0x74, 0x1a, 0xfa, - 0xbe, 0x42, 0xa3, 0x88, 0xf6, 0xc1, 0x0d, 0xa8, 0x8e, 0xe3, 0x79, 0x24, 0xd5, 0x9d, 0x75, 0x92, - 0x6d, 0xd2, 0x3c, 0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, 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 +897,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. @@ -1032,7 +967,8 @@ func (c *tSOClient) GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...g 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 +980,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 +1073,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 +1081,40 @@ 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.KeyspaceGroupId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) } - if m.ClusterId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1122,45 @@ 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.KeyspaceGroupId != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupId)) } - if m.ClusterId != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1168,31 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1200,41 @@ 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) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1242,45 @@ 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 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1288,46 @@ 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.Name) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintTsopb(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + } + if m.Id != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) } if 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-- + 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) } } - if m.Id != 0 { - i = encodeVarintTsopb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTsopb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1335,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1372,25 @@ 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)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1398,53 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1452,35 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1488,40 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + 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 +1529,36 @@ 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 + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 +1566,56 @@ 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.KeyspaceGroupsTotal != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintTsopb(dAtA, i, uint64(m.KeyspaceGroupsTotal)) } - 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.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) } - 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 { @@ -1822,9 +1637,6 @@ func (m *RequestHeader) Size() (n int) { } func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.ClusterId != 0 { @@ -1847,9 +1659,6 @@ func (m *ResponseHeader) Size() (n int) { } func (m *Error) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Type != 0 { @@ -1866,9 +1675,6 @@ func (m *Error) Size() (n int) { } func (m *TsoRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1889,9 +1695,6 @@ func (m *TsoRequest) Size() (n int) { } func (m *TsoResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -1912,9 +1715,6 @@ func (m *TsoResponse) Size() (n int) { } func (m *Participant) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Name) @@ -1937,9 +1737,6 @@ func (m *Participant) Size() (n int) { } func (m *KeyspaceGroupMember) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l l = len(m.Address) @@ -1956,9 +1753,6 @@ func (m *KeyspaceGroupMember) Size() (n int) { } func (m *SplitState) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.SplitSource != 0 { @@ -1971,9 +1765,6 @@ func (m *SplitState) Size() (n int) { } func (m *KeyspaceGroup) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Id != 0 { @@ -2000,9 +1791,6 @@ func (m *KeyspaceGroup) Size() (n int) { } func (m *FindGroupByKeyspaceIDRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2019,9 +1807,6 @@ func (m *FindGroupByKeyspaceIDRequest) Size() (n int) { } func (m *FindGroupByKeyspaceIDResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2039,9 +1824,6 @@ func (m *FindGroupByKeyspaceIDResponse) Size() (n int) { } func (m *GetMinTSRequest) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2059,9 +1841,6 @@ func (m *GetMinTSRequest) Size() (n int) { } func (m *GetMinTSResponse) Size() (n int) { - if m == nil { - return 0 - } var l int _ = l if m.Header != nil { @@ -2085,7 +1864,14 @@ func (m *GetMinTSResponse) Size() (n int) { } 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 +1891,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 +1919,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 +1938,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 +1957,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 +1976,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,7 +1987,7 @@ 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 { @@ -2232,7 +2018,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 +2046,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 +2065,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 +2074,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 +2098,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 +2117,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,7 +2128,7 @@ 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 { @@ -2376,7 +2159,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 +2187,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 +2206,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 +2216,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,7 +2227,7 @@ 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 { @@ -2478,7 +2258,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 +2286,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 +2295,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 +2319,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 +2338,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 +2348,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,7 +2359,7 @@ 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 { @@ -2616,7 +2390,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 +2418,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 +2427,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 +2451,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 +2470,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 +2479,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,7 +2495,7 @@ 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 { @@ -2758,7 +2526,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 +2554,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 +2564,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 +2583,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 +2602,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 +2612,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,7 +2623,7 @@ 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 { @@ -2892,7 +2654,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 +2682,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 +2692,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 +2711,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,7 +2723,7 @@ 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 { @@ -2995,7 +2754,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 +2782,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,7 +2793,7 @@ 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 { @@ -3065,7 +2824,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 +2852,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 +2871,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 +2881,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 +2900,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 +2909,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 +2933,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 +2942,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,7 +2956,7 @@ 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 { @@ -3237,7 +2987,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 +3015,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 +3024,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 +3048,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,7 +3059,7 @@ 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 { @@ -3343,7 +3090,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 +3118,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 +3127,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 +3151,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 +3160,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,7 +3176,7 @@ 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 { @@ -3466,7 +3207,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 +3235,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 +3244,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 +3268,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 +3278,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,7 +3289,7 @@ 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 { @@ -3585,7 +3320,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 +3348,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 +3357,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 +3381,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 +3390,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 +3414,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 +3433,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,7 +3444,7 @@ 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 { @@ -3734,7 +3463,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 +3494,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 +3514,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", fileDescriptor_tsopb_0b69da5f364eb8e3) } + +var fileDescriptor_tsopb_0b69da5f364eb8e3 = []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, 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0x75, + 0xab, 0x28, 0xb7, 0xed, 0xdc, 0x70, 0x94, 0xe2, 0xfd, 0xd0, 0xfe, 0x09, 0xc1, 0x16, 0xa1, 0x22, + 0x89, 0x23, 0x41, 0xff, 0x5b, 0x6c, 0x36, 0x54, 0x29, 0xe7, 0x31, 0x57, 0x71, 0x99, 0xce, 0xdd, + 0x76, 0x56, 0xa3, 0x5e, 0x8a, 0x91, 0xcc, 0xf4, 0xff, 0x86, 0x78, 0x04, 0x55, 0x75, 0x39, 0x7e, + 0x0c, 0x15, 0xb9, 0x48, 0xa8, 0x0a, 0x69, 0xcb, 0xb1, 0x56, 0x89, 0xbd, 0x45, 0x42, 0x89, 0xb2, + 0xe2, 0x26, 0xdc, 0x99, 0x51, 0x21, 0x82, 0x09, 0x55, 0x11, 0x1a, 0x24, 0xdf, 0xda, 0xaf, 0x00, + 0x3c, 0x11, 0xeb, 0x46, 0xe0, 0x8f, 0x61, 0xf3, 0x3b, 0x95, 0xb0, 0xba, 0xcf, 0x74, 0x1a, 0xfa, + 0xbe, 0x42, 0xa3, 0x88, 0xf6, 0xc1, 0x0d, 0xa8, 0x8e, 0xe3, 0x79, 0x24, 0xd5, 0x9d, 0x75, 0x92, + 0x6d, 0xd2, 0x3c, 0xc3, 0xb1, 0x3f, 0x8d, 0xc7, 0x81, 0x64, 0x71, 0xa4, 0xf2, 0x34, 0x08, 0x84, + 0xe3, 0x81, 0x46, 0xec, 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, 0x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dd, 0x93, 0x8e, 0xf7, 0xfc, 0x45, 0xaf, 0x6b, 0x55, 0x9d, 0x3f, 0x11, 0x94, + 0x3d, 0x77, 0x84, 0x1d, 0x28, 0x7b, 0x22, 0xc6, 0xb9, 0x3c, 0x96, 0x6f, 0x68, 0x0b, 0xaf, 0x42, + 0x59, 0x6d, 0xed, 0x8d, 0x03, 0xf4, 0x09, 0xc2, 0x21, 0xec, 0xde, 0x38, 0x86, 0xf8, 0x43, 0x7d, + 0xe4, 0x6d, 0xa2, 0x68, 0x3d, 0x7e, 0xbb, 0x53, 0xce, 0x84, 0xbf, 0x84, 0x5a, 0xde, 0x7c, 0x7c, + 0x5f, 0x9f, 0x59, 0x1b, 0xb8, 0xd6, 0x83, 0x37, 0xf0, 0xfc, 0xf8, 0xe1, 0x47, 0xbf, 0xff, 0x52, + 0x43, 0xbf, 0x5e, 0xed, 0xa1, 0xdf, 0xae, 0xf6, 0xd0, 0x5f, 0x57, 0x7b, 0xe8, 0xf5, 0xdf, 0x7b, + 0x1b, 0x60, 0xc5, 0x7c, 0xd2, 0x96, 0xec, 0xe2, 0xb2, 0x7d, 0x71, 0xa9, 0xfe, 0xdf, 0xe7, 0x9b, + 0xea, 0xf3, 0xe9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x47, 0xfb, 0x84, 0xaf, 0x0f, 0x08, 0x00, + 0x00, +} diff --git a/proto/brpb.proto b/proto/brpb.proto index 447ee3541c..09f05d1e25 100644 --- a/proto/brpb.proto +++ b/proto/brpb.proto @@ -633,7 +633,7 @@ message Metadata { repeated DataFileInfo files = 1; repeated DataFileGroup file_groups = 6; int64 store_id = 2; - uint64 resolved_ts = 3; + uint64 watermark = 3; uint64 max_ts = 4; uint64 min_ts = 5; MetaVersion meta_version = 7; @@ -657,8 +657,8 @@ message DataFileGroup { uint64 min_ts = 3; // The max ts of the keys in the file. uint64 max_ts = 4; - // The resolved ts of the region when saving the file. - uint64 min_resolved_ts = 5; + // The watermark of the region when saving the file. + uint64 min_watermark = 5; // The file length after compressed. uint64 length = 6; @@ -676,8 +676,8 @@ message DataFileInfo { uint64 min_ts = 4; // The max ts of the keys in the file. uint64 max_ts = 5; - // The resolved ts of the region when saving the file. - uint64 resolved_ts = 6; + // The watermark of the region when saving the file. + uint64 watermark = 6; // The region of the file. int64 region_id = 7; // The key range of the file. diff --git a/proto/cdcpb.proto b/proto/cdcpb.proto index 6d27130f1b..a52d316be1 100644 --- a/proto/cdcpb.proto +++ b/proto/cdcpb.proto @@ -112,21 +112,21 @@ message Event { Entries entries = 3; Admin admin = 4; Error error = 5; - uint64 resolved_ts = 6 [deprecated=true]; + uint64 watermark = 6 [deprecated=true]; // Note that field 7 is taken by request_id. LongTxn long_txn = 8; // More region level events ... } } -// NOTE: events and resolved_ts won't appear simultaneously in one ChangeDataEvent. +// NOTE: events and watermark won't appear simultaneously in one ChangeDataEvent. message ChangeDataEvent { repeated Event events = 1; - ResolvedTs resolved_ts = 2; + Watermark watermark = 2; // More store level events ... } -message ResolvedTs { +message Watermark { repeated uint64 regions = 1; uint64 ts = 2; uint64 request_id = 3; @@ -160,7 +160,7 @@ message ChangeDataRequest { Register register = 9; // Notify the region that some of the running transactions on the region has a pushed - // min_commit_ts so that the resolved_ts can be advanced. + // min_commit_ts so that the watermark can be advanced. NotifyTxnStatus notify_txn_status = 10; Deregister deregister = 13; diff --git a/proto/debugpb.proto b/proto/debugpb.proto index dc612d14a8..a18c5b3aa0 100644 --- a/proto/debugpb.proto +++ b/proto/debugpb.proto @@ -329,8 +329,8 @@ message GetRegionReadProgressResponse { uint64 read_state_apply_index = 19; bool discard = 20; - // below are from resolved-ts module - uint64 resolved_ts = 11; + // below are from watermark module + uint64 watermark = 11; uint64 resolver_tracked_index = 12; bool resolver_exist = 13; bool resolver_stopped = 14; @@ -338,4 +338,4 @@ message GetRegionReadProgressResponse { uint64 num_transactions = 17; string error = 15; -} \ No newline at end of file +} diff --git a/proto/import_sstpb.proto b/proto/import_sstpb.proto index 089dd35f4e..0e1aec059d 100644 --- a/proto/import_sstpb.proto +++ b/proto/import_sstpb.proto @@ -178,8 +178,8 @@ message DownloadRequest { // Map represents the map of . // We'll generate all SSTMeta into one SST File. map ssts = 1; - // resolved_ts is used to merge related SST Files. - uint64 resolved_ts = 3; + // watermark is used to merge related SST Files. + uint64 watermark = 3; // The SST meta used to identify the downloaded file. // Must be the same among all nodes in the same Raft group. diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index bdd6680ab7..120304c6ae 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -542,7 +542,7 @@ message PrepareFlashbackToVersionRequest { bytes start_key = 2; bytes end_key = 3; // The `start_ts` which we will use to write a lock to prevent - // the `resolved_ts` from advancing during the whole process. + // the `watermark` from advancing during the whole process. uint64 start_ts = 4; // The TS version which the data will flashback to later. uint64 version = 5; diff --git a/proto/pdpb.proto b/proto/pdpb.proto index c8fec8497f..6ddd8cd3ae 100644 --- a/proto/pdpb.proto +++ b/proto/pdpb.proto @@ -109,8 +109,11 @@ service PD { rpc ReportBuckets(stream ReportBucketsRequest) returns (ReportBucketsResponse) {} + // Will be replaced by ReportMinWatermark. rpc ReportMinResolvedTS(ReportMinResolvedTsRequest) returns (ReportMinResolvedTsResponse) {} + rpc ReportMinWatermark(ReportMinWatermarkRequest) returns (ReportMinWatermarkResponse) {} + rpc SetExternalTimestamp(SetExternalTimestampRequest) returns (SetExternalTimestampResponse) {} rpc GetExternalTimestamp(GetExternalTimestampRequest) returns (GetExternalTimestampResponse) {} @@ -1089,13 +1092,25 @@ message ReportMinResolvedTsRequest { uint64 store_id = 2; - uint64 min_resolved_ts = 3; + uint64 min_watermark = 3; } message ReportMinResolvedTsResponse { ResponseHeader header = 1; } +message ReportMinWatermarkRequest { + RequestHeader header = 1; + + uint64 store_id = 2; + + uint64 min_watermark = 3; +} + +message ReportMinWatermarkResponse { + ResponseHeader header = 1; +} + message SetExternalTimestampRequest { RequestHeader header = 1; diff --git a/proto/recoverdatapb.proto b/proto/recoverdatapb.proto index de7a1b542c..50a8da9317 100644 --- a/proto/recoverdatapb.proto +++ b/proto/recoverdatapb.proto @@ -51,9 +51,9 @@ message RecoverRegionResponse { Error error = 1; } -// resolve data by resolved_ts +// resolve data by watermark message ResolveKvDataRequest { - uint64 resolved_ts = 1; + uint64 watermark = 1; } message ResolveKvDataResponse { @@ -61,7 +61,7 @@ message ResolveKvDataResponse { uint64 store_id = 2; uint64 resolved_key_count = 3; // reserved for summary of restore // cursor of delete key.commit_ts, reserved for progress of restore - // progress is (current_commit_ts - resolved_ts) / (backup_ts - resolved_ts) x 100% + // progress is (current_commit_ts - watermark) / (backup_ts - watermark) x 100% uint64 current_commit_ts = 4; } @@ -79,4 +79,4 @@ service RecoverData { rpc WaitApply(WaitApplyRequest) returns (WaitApplyResponse) {} // execute delete data from kv db rpc ResolveKvData(ResolveKvDataRequest) returns (stream ResolveKvDataResponse) {} -} \ No newline at end of file +} diff --git a/proto/tikvpb.proto b/proto/tikvpb.proto index 3aec79dc63..5535faef3e 100644 --- a/proto/tikvpb.proto +++ b/proto/tikvpb.proto @@ -103,7 +103,7 @@ service Tikv { /// 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. + /// other stores for every region, and decides to advance watermark from these regions. rpc CheckLeader(kvrpcpb.CheckLeaderRequest) returns (kvrpcpb.CheckLeaderResponse); /// Get the minimal `safe_ts` from regions at the store diff --git a/scripts/proto.lock b/scripts/proto.lock index 2c6cce1a58..cdd1470a80 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -1459,7 +1459,7 @@ }, { "id": 3, - "name": "resolved_ts", + "name": "watermark", "type": "uint64" }, { @@ -1505,7 +1505,7 @@ }, { "id": 5, - "name": "min_resolved_ts", + "name": "min_watermark", "type": "uint64" }, { @@ -1545,7 +1545,7 @@ }, { "id": 6, - "name": "resolved_ts", + "name": "watermark", "type": "uint64" }, { @@ -1971,7 +1971,7 @@ }, { "id": 6, - "name": "resolved_ts", + "name": "watermark", "type": "uint64", "options": [ { @@ -2089,13 +2089,13 @@ }, { "id": 2, - "name": "resolved_ts", - "type": "ResolvedTs" + "name": "watermark", + "type": "Watermark" } ] }, { - "name": "ResolvedTs", + "name": "Watermark", "fields": [ { "id": 1, @@ -4037,7 +4037,7 @@ }, { "id": 11, - "name": "resolved_ts", + "name": "watermark", "type": "uint64" }, { @@ -6835,7 +6835,7 @@ "fields": [ { "id": 3, - "name": "resolved_ts", + "name": "watermark", "type": "uint64" }, { @@ -15591,7 +15591,7 @@ }, { "id": 3, - "name": "min_resolved_ts", + "name": "min_watermark", "type": "uint64" } ] @@ -15606,6 +15606,36 @@ } ] }, + { + "name": "ReportMinWatermarkRequest", + "fields": [ + { + "id": 1, + "name": "header", + "type": "RequestHeader" + }, + { + "id": 2, + "name": "store_id", + "type": "uint64" + }, + { + "id": 3, + "name": "min_watermark", + "type": "uint64" + } + ] + }, + { + "name": "ReportMinWatermarkResponse", + "fields": [ + { + "id": 1, + "name": "header", + "type": "ResponseHeader" + } + ] + }, { "name": "SetExternalTimestampRequest", "fields": [ @@ -15917,6 +15947,11 @@ "in_type": "ReportMinResolvedTsRequest", "out_type": "ReportMinResolvedTsResponse" }, + { + "name": "ReportMinWatermark", + "in_type": "ReportMinWatermarkRequest", + "out_type": "ReportMinWatermarkResponse" + }, { "name": "SetExternalTimestamp", "in_type": "SetExternalTimestampRequest", @@ -18317,7 +18352,7 @@ "fields": [ { "id": 1, - "name": "resolved_ts", + "name": "watermark", "type": "uint64" } ] diff --git a/src/lib.rs b/src/lib.rs index 23fd556b71..c6dbde4be4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -196,8 +196,8 @@ pub mod cdc_adapt { crate::cdcpb::Event_oneof_event::Error(v) => { ::protobuf::PbPrint::fmt(v, "Error", &mut buf) } - crate::cdcpb::Event_oneof_event::ResolvedTs(v) => { - ::protobuf::PbPrint::fmt(v, "ResolvedTs", &mut buf) + crate::cdcpb::Event_oneof_event::Watermark(v) => { + ::protobuf::PbPrint::fmt(v, "Watermark", &mut buf) } crate::cdcpb::Event_oneof_event::LongTxn(v) => { ::protobuf::PbPrint::fmt(v, "Long", &mut buf)