|
@@ -749,13 +749,21 @@ func (m *HashRequest) String() string { return proto.CompactTextString(m) }
|
|
|
func (*HashRequest) ProtoMessage() {}
|
|
func (*HashRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
type HashResponse struct {
|
|
type HashResponse struct {
|
|
|
- Hash uint32 `protobuf:"varint,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
|
|
|
+ Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
|
|
|
|
|
+ Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (m *HashResponse) Reset() { *m = HashResponse{} }
|
|
func (m *HashResponse) Reset() { *m = HashResponse{} }
|
|
|
func (m *HashResponse) String() string { return proto.CompactTextString(m) }
|
|
func (m *HashResponse) String() string { return proto.CompactTextString(m) }
|
|
|
func (*HashResponse) ProtoMessage() {}
|
|
func (*HashResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
+func (m *HashResponse) GetHeader() *ResponseHeader {
|
|
|
|
|
+ if m != nil {
|
|
|
|
|
+ return m.Header
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type WatchRequest struct {
|
|
type WatchRequest struct {
|
|
|
// Types that are valid to be assigned to RequestUnion:
|
|
// Types that are valid to be assigned to RequestUnion:
|
|
|
// *WatchRequest_CreateRequest
|
|
// *WatchRequest_CreateRequest
|
|
@@ -2478,8 +2486,18 @@ func (m *HashResponse) MarshalTo(data []byte) (int, error) {
|
|
|
_ = i
|
|
_ = i
|
|
|
var l int
|
|
var l int
|
|
|
_ = l
|
|
_ = l
|
|
|
|
|
+ if m.Header != nil {
|
|
|
|
|
+ data[i] = 0xa
|
|
|
|
|
+ i++
|
|
|
|
|
+ i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
|
|
+ n15, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return 0, err
|
|
|
|
|
+ }
|
|
|
|
|
+ i += n15
|
|
|
|
|
+ }
|
|
|
if m.Hash != 0 {
|
|
if m.Hash != 0 {
|
|
|
- data[i] = 0x8
|
|
|
|
|
|
|
+ data[i] = 0x10
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Hash))
|
|
i = encodeVarintRpc(data, i, uint64(m.Hash))
|
|
|
}
|
|
}
|
|
@@ -2502,11 +2520,11 @@ func (m *WatchRequest) MarshalTo(data []byte) (int, error) {
|
|
|
var l int
|
|
var l int
|
|
|
_ = l
|
|
_ = l
|
|
|
if m.RequestUnion != nil {
|
|
if m.RequestUnion != nil {
|
|
|
- nn15, err := m.RequestUnion.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ nn16, err := m.RequestUnion.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += nn15
|
|
|
|
|
|
|
+ i += nn16
|
|
|
}
|
|
}
|
|
|
return i, nil
|
|
return i, nil
|
|
|
}
|
|
}
|
|
@@ -2517,11 +2535,11 @@ func (m *WatchRequest_CreateRequest) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.CreateRequest.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.CreateRequest.Size()))
|
|
|
- n16, err := m.CreateRequest.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n17, err := m.CreateRequest.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n16
|
|
|
|
|
|
|
+ i += n17
|
|
|
}
|
|
}
|
|
|
return i, nil
|
|
return i, nil
|
|
|
}
|
|
}
|
|
@@ -2531,11 +2549,11 @@ func (m *WatchRequest_CancelRequest) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0x12
|
|
data[i] = 0x12
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.CancelRequest.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.CancelRequest.Size()))
|
|
|
- n17, err := m.CancelRequest.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n18, err := m.CancelRequest.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n17
|
|
|
|
|
|
|
+ i += n18
|
|
|
}
|
|
}
|
|
|
return i, nil
|
|
return i, nil
|
|
|
}
|
|
}
|
|
@@ -2620,11 +2638,11 @@ func (m *WatchResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n18, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n19, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n18
|
|
|
|
|
|
|
+ i += n19
|
|
|
}
|
|
}
|
|
|
if m.WatchId != 0 {
|
|
if m.WatchId != 0 {
|
|
|
data[i] = 0x10
|
|
data[i] = 0x10
|
|
@@ -2723,11 +2741,11 @@ func (m *LeaseCreateResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n19, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n20, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n19
|
|
|
|
|
|
|
+ i += n20
|
|
|
}
|
|
}
|
|
|
if m.ID != 0 {
|
|
if m.ID != 0 {
|
|
|
data[i] = 0x10
|
|
data[i] = 0x10
|
|
@@ -2790,11 +2808,11 @@ func (m *LeaseRevokeResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n20, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n21, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n20
|
|
|
|
|
|
|
+ i += n21
|
|
|
}
|
|
}
|
|
|
return i, nil
|
|
return i, nil
|
|
|
}
|
|
}
|
|
@@ -2841,11 +2859,11 @@ func (m *LeaseKeepAliveResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n21, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n22, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n21
|
|
|
|
|
|
|
+ i += n22
|
|
|
}
|
|
}
|
|
|
if m.ID != 0 {
|
|
if m.ID != 0 {
|
|
|
data[i] = 0x10
|
|
data[i] = 0x10
|
|
@@ -2981,21 +2999,21 @@ func (m *MemberAddResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n22, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n23, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n22
|
|
|
|
|
|
|
+ i += n23
|
|
|
}
|
|
}
|
|
|
if m.Member != nil {
|
|
if m.Member != nil {
|
|
|
data[i] = 0x12
|
|
data[i] = 0x12
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Member.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Member.Size()))
|
|
|
- n23, err := m.Member.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n24, err := m.Member.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n23
|
|
|
|
|
|
|
+ i += n24
|
|
|
}
|
|
}
|
|
|
return i, nil
|
|
return i, nil
|
|
|
}
|
|
}
|
|
@@ -3042,11 +3060,11 @@ func (m *MemberRemoveResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n24, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n25, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n24
|
|
|
|
|
|
|
+ i += n25
|
|
|
}
|
|
}
|
|
|
return i, nil
|
|
return i, nil
|
|
|
}
|
|
}
|
|
@@ -3108,11 +3126,11 @@ func (m *MemberUpdateResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n25, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n26, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n25
|
|
|
|
|
|
|
+ i += n26
|
|
|
}
|
|
}
|
|
|
return i, nil
|
|
return i, nil
|
|
|
}
|
|
}
|
|
@@ -3154,11 +3172,11 @@ func (m *MemberListResponse) MarshalTo(data []byte) (int, error) {
|
|
|
data[i] = 0xa
|
|
data[i] = 0xa
|
|
|
i++
|
|
i++
|
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
i = encodeVarintRpc(data, i, uint64(m.Header.Size()))
|
|
|
- n26, err := m.Header.MarshalTo(data[i:])
|
|
|
|
|
|
|
+ n27, err := m.Header.MarshalTo(data[i:])
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return 0, err
|
|
return 0, err
|
|
|
}
|
|
}
|
|
|
- i += n26
|
|
|
|
|
|
|
+ i += n27
|
|
|
}
|
|
}
|
|
|
if len(m.Members) > 0 {
|
|
if len(m.Members) > 0 {
|
|
|
for _, msg := range m.Members {
|
|
for _, msg := range m.Members {
|
|
@@ -3522,6 +3540,10 @@ func (m *HashRequest) Size() (n int) {
|
|
|
func (m *HashResponse) Size() (n int) {
|
|
func (m *HashResponse) Size() (n int) {
|
|
|
var l int
|
|
var l int
|
|
|
_ = l
|
|
_ = l
|
|
|
|
|
+ if m.Header != nil {
|
|
|
|
|
+ l = m.Header.Size()
|
|
|
|
|
+ n += 1 + l + sovRpc(uint64(l))
|
|
|
|
|
+ }
|
|
|
if m.Hash != 0 {
|
|
if m.Hash != 0 {
|
|
|
n += 1 + sovRpc(uint64(m.Hash))
|
|
n += 1 + sovRpc(uint64(m.Hash))
|
|
|
}
|
|
}
|
|
@@ -5709,6 +5731,39 @@ func (m *HashResponse) Unmarshal(data []byte) error {
|
|
|
}
|
|
}
|
|
|
switch fieldNum {
|
|
switch fieldNum {
|
|
|
case 1:
|
|
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 ErrIntOverflowRpc
|
|
|
|
|
+ }
|
|
|
|
|
+ if iNdEx >= l {
|
|
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
|
|
+ }
|
|
|
|
|
+ b := data[iNdEx]
|
|
|
|
|
+ iNdEx++
|
|
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
|
|
+ if b < 0x80 {
|
|
|
|
|
+ break
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if msglen < 0 {
|
|
|
|
|
+ return ErrInvalidLengthRpc
|
|
|
|
|
+ }
|
|
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
|
|
+ if postIndex > l {
|
|
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
|
|
+ }
|
|
|
|
|
+ if m.Header == nil {
|
|
|
|
|
+ m.Header = &ResponseHeader{}
|
|
|
|
|
+ }
|
|
|
|
|
+ if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
|
+ return err
|
|
|
|
|
+ }
|
|
|
|
|
+ iNdEx = postIndex
|
|
|
|
|
+ case 2:
|
|
|
if wireType != 0 {
|
|
if wireType != 0 {
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
|
|
|
}
|
|
}
|