From a8f8443c3aa4cf6e643cdbadbff86a7d09755ab0 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期四, 20 五月 2021 09:41:03 +0800
Subject: [PATCH] rebuild proto
---
proto/source/bhome_msg/bhome_msg.pb.go | 253 ++++++++++++++--------
proto/source/bhome_msg/bhome_msg_api.pb.go | 367 +++++++++++++++++++++++++++++----
2 files changed, 478 insertions(+), 142 deletions(-)
diff --git a/proto/source/bhome_msg/bhome_msg.pb.go b/proto/source/bhome_msg/bhome_msg.pb.go
index a983806..ddc80ee 100644
--- a/proto/source/bhome_msg/bhome_msg.pb.go
+++ b/proto/source/bhome_msg/bhome_msg.pb.go
@@ -109,6 +109,7 @@
SsnId uint64 `protobuf:"varint,5,opt,name=ssn_id,json=ssnId,proto3" json:"ssn_id,omitempty"`
ProcId []byte `protobuf:"bytes,6,opt,name=proc_id,json=procId,proto3" json:"proc_id,omitempty"`
Topic []byte `protobuf:"bytes,7,opt,name=topic,proto3" json:"topic,omitempty"`
+ Dest *BHAddress `protobuf:"bytes,8,opt,name=dest,proto3" json:"dest,omitempty"`
}
func (m *BHMsgHead) Reset() { *m = BHMsgHead{} }
@@ -189,6 +190,13 @@
func (m *BHMsgHead) GetTopic() []byte {
if m != nil {
return m.Topic
+ }
+ return nil
+}
+
+func (m *BHMsgHead) GetDest() *BHAddress {
+ if m != nil {
+ return m.Dest
}
return nil
}
@@ -824,55 +832,56 @@
func init() { proto.RegisterFile("bhome_msg.proto", fileDescriptor_88ce6d52215a3d3f) }
var fileDescriptor_88ce6d52215a3d3f = []byte{
- // 770 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4b, 0x6f, 0xda, 0x58,
- 0x14, 0xb6, 0x43, 0xcc, 0xe3, 0xc0, 0x84, 0x9b, 0xcb, 0xcb, 0x61, 0x02, 0x42, 0x6c, 0x06, 0x25,
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 0x00, 0x00, 0xff, 0xff, 0x68, 0xaa, 0xf4, 0xdd, 0xa2, 0x06,
+ // 786 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcb, 0x6e, 0xdb, 0x46,
+ 0x14, 0x25, 0x2d, 0x51, 0x8f, 0x2b, 0xd5, 0x1a, 0x8f, 0x5e, 0xb4, 0x6a, 0x09, 0x82, 0x36, 0x15,
+ 0xec, 0xc2, 0x86, 0xd5, 0x2e, 0x0a, 0x74, 0xd1, 0x5a, 0x76, 0x01, 0x0a, 0xa8, 0x02, 0x85, 0x89,
+ 0x37, 0xd9, 0x08, 0x94, 0x39, 0xa0, 0x89, 0x88, 0x0f, 0xcd, 0x90, 0x89, 0xf5, 0x17, 0x49, 0xfe,
+ 0x28, 0xbb, 0x6c, 0x02, 0x78, 0x99, 0x65, 0x60, 0xff, 0x40, 0x3e, 0x21, 0x98, 0x21, 0x29, 0xd1,
+ 0x6f, 0x04, 0xd9, 0x8d, 0xce, 0xbd, 0xe7, 0x9c, 0x3b, 0x77, 0xee, 0xa5, 0xa0, 0x32, 0x3b, 0xf7,
+ 0x1c, 0x32, 0x75, 0x98, 0xb5, 0xef, 0x53, 0x2f, 0xf0, 0x70, 0x71, 0x05, 0xb4, 0xaa, 0xab, 0xe3,
+ 0xd4, 0xf0, 0xed, 0x28, 0xde, 0xaa, 0x10, 0x4a, 0x3d, 0xba, 0x26, 0xf4, 0xbe, 0xc9, 0x50, 0x1c,
+ 0x6a, 0x63, 0x66, 0x69, 0xc4, 0x30, 0x71, 0x1d, 0x72, 0x3c, 0xdf, 0x36, 0x55, 0xb9, 0x2b, 0xf7,
+ 0xcb, 0xba, 0xe2, 0x30, 0x6b, 0x64, 0xe2, 0x5d, 0x50, 0xa8, 0x17, 0x06, 0x44, 0xdd, 0xe8, 0x66,
+ 0xfa, 0xa5, 0x41, 0x6d, 0x7f, 0x6d, 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2, 0xca, 0x27, 0xc7, 0xf8, 0x5f, 0x50, 0x44, 0x02, 0x7e, 0x70, 0x7a, 0x5b,
+ 0xed, 0x87, 0x22, 0xd1, 0xdc, 0x9e, 0x40, 0x3e, 0x59, 0x8b, 0x47, 0x56, 0xe8, 0x09, 0x95, 0xe1,
+ 0x6f, 0x9f, 0xae, 0x3a, 0xf2, 0xe5, 0x55, 0x47, 0xfe, 0x7a, 0xd5, 0x91, 0xdf, 0x5d, 0x77, 0xa4,
+ 0xcb, 0xeb, 0x8e, 0xf4, 0xe5, 0xba, 0x23, 0x69, 0x99, 0x57, 0xa5, 0xfd, 0x83, 0x15, 0x77, 0x96,
+ 0x13, 0x7f, 0x44, 0x7f, 0x7c, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xb5, 0x32, 0xaa, 0x1c, 0xcc, 0x06,
0x00, 0x00,
}
@@ -936,6 +945,16 @@
i = encodeVarintBhomeMsg(dAtA, i, uint64(len(m.Topic)))
i += copy(dAtA[i:], m.Topic)
}
+ if m.Dest != nil {
+ dAtA[i] = 0x42
+ i++
+ i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Dest.Size()))
+ n1, err1 := m.Dest.MarshalTo(dAtA[i:])
+ if err1 != nil {
+ return 0, err1
+ }
+ i += n1
+ }
return i, nil
}
@@ -958,11 +977,11 @@
dAtA[i] = 0xa
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Topics.Size()))
- n1, err1 := m.Topics.MarshalTo(dAtA[i:])
- if err1 != nil {
- return 0, err1
+ n2, err2 := m.Topics.MarshalTo(dAtA[i:])
+ if err2 != nil {
+ return 0, err2
}
- i += n1
+ i += n2
}
return i, nil
}
@@ -986,11 +1005,11 @@
dAtA[i] = 0xa
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Topics.Size()))
- n2, err2 := m.Topics.MarshalTo(dAtA[i:])
- if err2 != nil {
- return 0, err2
+ n3, err3 := m.Topics.MarshalTo(dAtA[i:])
+ if err3 != nil {
+ return 0, err3
}
- i += n2
+ i += n3
}
return i, nil
}
@@ -1014,11 +1033,11 @@
dAtA[i] = 0xa
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Topics.Size()))
- n3, err3 := m.Topics.MarshalTo(dAtA[i:])
- if err3 != nil {
- return 0, err3
+ n4, err4 := m.Topics.MarshalTo(dAtA[i:])
+ if err4 != nil {
+ return 0, err4
}
- i += n3
+ i += n4
}
return i, nil
}
@@ -1065,11 +1084,11 @@
dAtA[i] = 0xa
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Errmsg.Size()))
- n4, err4 := m.Errmsg.MarshalTo(dAtA[i:])
- if err4 != nil {
- return 0, err4
+ n5, err5 := m.Errmsg.MarshalTo(dAtA[i:])
+ if err5 != nil {
+ return 0, err5
}
- i += n4
+ i += n5
}
if m.ProcIndex != 0 {
dAtA[i] = 0x10
@@ -1107,11 +1126,11 @@
var l int
_ = l
if m.Request != nil {
- nn5, err5 := m.Request.MarshalTo(dAtA[i:])
- if err5 != nil {
- return 0, err5
+ nn6, err6 := m.Request.MarshalTo(dAtA[i:])
+ if err6 != nil {
+ return 0, err6
}
- i += nn5
+ i += nn6
}
return i, nil
}
@@ -1122,11 +1141,11 @@
dAtA[i] = 0xa
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Register.Size()))
- n6, err6 := m.Register.MarshalTo(dAtA[i:])
- if err6 != nil {
- return 0, err6
+ n7, err7 := m.Register.MarshalTo(dAtA[i:])
+ if err7 != nil {
+ return 0, err7
}
- i += n6
+ i += n7
}
return i, nil
}
@@ -1136,11 +1155,11 @@
dAtA[i] = 0x12
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.TopicRequest.Size()))
- n7, err7 := m.TopicRequest.MarshalTo(dAtA[i:])
- if err7 != nil {
- return 0, err7
+ n8, err8 := m.TopicRequest.MarshalTo(dAtA[i:])
+ if err8 != nil {
+ return 0, err8
}
- i += n7
+ i += n8
}
return i, nil
}
@@ -1150,11 +1169,11 @@
dAtA[i] = 0x1a
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.TopicQuery.Size()))
- n8, err8 := m.TopicQuery.MarshalTo(dAtA[i:])
- if err8 != nil {
- return 0, err8
+ n9, err9 := m.TopicQuery.MarshalTo(dAtA[i:])
+ if err9 != nil {
+ return 0, err9
}
- i += n8
+ i += n9
}
return i, nil
}
@@ -1177,11 +1196,11 @@
dAtA[i] = 0xa
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.ErrMsg.Size()))
- n9, err9 := m.ErrMsg.MarshalTo(dAtA[i:])
- if err9 != nil {
- return 0, err9
+ n10, err10 := m.ErrMsg.MarshalTo(dAtA[i:])
+ if err10 != nil {
+ return 0, err10
}
- i += n9
+ i += n10
}
return i, nil
}
@@ -1202,11 +1221,11 @@
var l int
_ = l
if m.Reqrep != nil {
- nn10, err10 := m.Reqrep.MarshalTo(dAtA[i:])
- if err10 != nil {
- return 0, err10
+ nn11, err11 := m.Reqrep.MarshalTo(dAtA[i:])
+ if err11 != nil {
+ return 0, err11
}
- i += nn10
+ i += nn11
}
return i, nil
}
@@ -1217,11 +1236,11 @@
dAtA[i] = 0xa
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Request.Size()))
- n11, err11 := m.Request.MarshalTo(dAtA[i:])
- if err11 != nil {
- return 0, err11
+ n12, err12 := m.Request.MarshalTo(dAtA[i:])
+ if err12 != nil {
+ return 0, err12
}
- i += n11
+ i += n12
}
return i, nil
}
@@ -1231,11 +1250,11 @@
dAtA[i] = 0x12
i++
i = encodeVarintBhomeMsg(dAtA, i, uint64(m.Reply.Size()))
- n12, err12 := m.Reply.MarshalTo(dAtA[i:])
- if err12 != nil {
- return 0, err12
+ n13, err13 := m.Reply.MarshalTo(dAtA[i:])
+ if err13 != nil {
+ return 0, err13
}
- i += n12
+ i += n13
}
return i, nil
}
@@ -1279,6 +1298,10 @@
}
l = len(m.Topic)
if l > 0 {
+ n += 1 + l + sovBhomeMsg(uint64(l))
+ }
+ if m.Dest != nil {
+ l = m.Dest.Size()
n += 1 + l + sovBhomeMsg(uint64(l))
}
return n
@@ -1683,6 +1706,42 @@
m.Topic = []byte{}
}
iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowBhomeMsg
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthBhomeMsg
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthBhomeMsg
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Dest == nil {
+ m.Dest = &BHAddress{}
+ }
+ if err := m.Dest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipBhomeMsg(dAtA[iNdEx:])
diff --git a/proto/source/bhome_msg/bhome_msg_api.pb.go b/proto/source/bhome_msg/bhome_msg_api.pb.go
index 448d160..2a565f0 100644
--- a/proto/source/bhome_msg/bhome_msg_api.pb.go
+++ b/proto/source/bhome_msg/bhome_msg_api.pb.go
@@ -727,8 +727,8 @@
}
type MsgQueryProcReply struct {
- Errmsg *ErrorMsg `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
- Proc []*ProcInfo `protobuf:"bytes,2,rep,name=proc,proto3" json:"proc,omitempty"`
+ Errmsg *ErrorMsg `protobuf:"bytes,1,opt,name=errmsg,proto3" json:"errmsg,omitempty"`
+ ProcList []*MsgQueryProcReply_Info `protobuf:"bytes,2,rep,name=proc_list,json=procList,proto3" json:"proc_list,omitempty"`
}
func (m *MsgQueryProcReply) Reset() { *m = MsgQueryProcReply{} }
@@ -771,9 +771,69 @@
return nil
}
-func (m *MsgQueryProcReply) GetProc() []*ProcInfo {
+func (m *MsgQueryProcReply) GetProcList() []*MsgQueryProcReply_Info {
+ if m != nil {
+ return m.ProcList
+ }
+ return nil
+}
+
+type MsgQueryProcReply_Info struct {
+ Proc *ProcInfo `protobuf:"bytes,1,opt,name=proc,proto3" json:"proc,omitempty"`
+ Online bool `protobuf:"varint,2,opt,name=online,proto3" json:"online,omitempty"`
+ Topics *MsgTopicList `protobuf:"bytes,3,opt,name=topics,proto3" json:"topics,omitempty"`
+}
+
+func (m *MsgQueryProcReply_Info) Reset() { *m = MsgQueryProcReply_Info{} }
+func (m *MsgQueryProcReply_Info) String() string { return proto.CompactTextString(m) }
+func (*MsgQueryProcReply_Info) ProtoMessage() {}
+func (*MsgQueryProcReply_Info) Descriptor() ([]byte, []int) {
+ return fileDescriptor_a49c9c1f511a168c, []int{13, 0}
+}
+func (m *MsgQueryProcReply_Info) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *MsgQueryProcReply_Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_MsgQueryProcReply_Info.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 (m *MsgQueryProcReply_Info) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgQueryProcReply_Info.Merge(m, src)
+}
+func (m *MsgQueryProcReply_Info) XXX_Size() int {
+ return m.Size()
+}
+func (m *MsgQueryProcReply_Info) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgQueryProcReply_Info.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_MsgQueryProcReply_Info proto.InternalMessageInfo
+
+func (m *MsgQueryProcReply_Info) GetProc() *ProcInfo {
if m != nil {
return m.Proc
+ }
+ return nil
+}
+
+func (m *MsgQueryProcReply_Info) GetOnline() bool {
+ if m != nil {
+ return m.Online
+ }
+ return false
+}
+
+func (m *MsgQueryProcReply_Info) GetTopics() *MsgTopicList {
+ if m != nil {
+ return m.Topics
}
return nil
}
@@ -794,47 +854,51 @@
proto.RegisterType((*MsgQueryTopicReply_BHNodeAddress)(nil), "bhome_msg.MsgQueryTopicReply.BHNodeAddress")
proto.RegisterType((*MsgQueryProc)(nil), "bhome_msg.MsgQueryProc")
proto.RegisterType((*MsgQueryProcReply)(nil), "bhome_msg.MsgQueryProcReply")
+ proto.RegisterType((*MsgQueryProcReply_Info)(nil), "bhome_msg.MsgQueryProcReply.Info")
}
func init() { proto.RegisterFile("bhome_msg_api.proto", fileDescriptor_a49c9c1f511a168c) }
var fileDescriptor_a49c9c1f511a168c = []byte{
- // 545 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x6b, 0x13, 0x41,
- 0x10, 0xee, 0x25, 0x97, 0xb4, 0x99, 0xbb, 0xb6, 0xb8, 0x09, 0x78, 0x16, 0x3c, 0xcf, 0x03, 0xc9,
- 0x41, 0x31, 0x42, 0x84, 0x2a, 0x88, 0x0f, 0x46, 0x84, 0x04, 0x4c, 0xa9, 0x8b, 0x22, 0xf8, 0x72,
- 0xdc, 0xe5, 0xb6, 0xd7, 0x85, 0xdc, 0xed, 0x65, 0x77, 0x23, 0x14, 0xff, 0x84, 0x3f, 0xcb, 0xc7,
- 0x3e, 0xfa, 0x28, 0x09, 0xfe, 0x0f, 0xd9, 0x4d, 0x72, 0xa6, 0xda, 0x88, 0xe9, 0xdb, 0xcc, 0xce,
- 0xf7, 0xcd, 0x37, 0xcc, 0xc7, 0x2c, 0x34, 0xe3, 0x0b, 0x96, 0x91, 0x30, 0x13, 0x69, 0x18, 0x15,
- 0xb4, 0x53, 0x70, 0x26, 0x19, 0x6a, 0x94, 0x8f, 0x47, 0x87, 0x84, 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0x00, 0x66, 0x93, 0x41,
+ 0xab, 0xbf, 0x7a, 0xa9, 0x63, 0x13, 0x60, 0xac, 0x11, 0xfe, 0xa6, 0xde, 0xa3, 0x1e, 0x42, 0x2d,
+ 0xea, 0x5a, 0x49, 0xff, 0x97, 0x01, 0x77, 0x2e, 0x23, 0x6f, 0xb1, 0x8f, 0x17, 0xd0, 0xd3, 0xda,
+ 0x3a, 0x50, 0xd5, 0x32, 0x36, 0xa6, 0x2c, 0xa3, 0x51, 0x0f, 0xb5, 0x6d, 0x5d, 0xc5, 0x51, 0x91,
+ 0x5b, 0xff, 0x0c, 0xa6, 0x0e, 0xf3, 0x4d, 0xbd, 0x46, 0x77, 0xa1, 0xc3, 0x8a, 0x31, 0x2d, 0xaa,
+ 0xcf, 0xa2, 0x8b, 0xeb, 0x0a, 0x6d, 0x43, 0x47, 0xbb, 0x2c, 0xf4, 0x4f, 0x61, 0xf5, 0xd7, 0xae,
+ 0x4e, 0xd1, 0xfc, 0x01, 0xb8, 0x86, 0xed, 0x6e, 0x7e, 0x3b, 0x77, 0x8d, 0xb3, 0x73, 0xd7, 0xf8,
+ 0x71, 0xee, 0x1a, 0x5f, 0x2f, 0xdc, 0xb9, 0xb3, 0x0b, 0x77, 0xee, 0xfb, 0x85, 0x3b, 0x37, 0x68,
+ 0x7f, 0xb4, 0xc2, 0xed, 0x86, 0x9d, 0x74, 0xf4, 0x4f, 0xf9, 0xf8, 0x77, 0x00, 0x00, 0x00, 0xff,
+ 0xff, 0xe9, 0xcf, 0xb1, 0x11, 0x5c, 0x05, 0x00, 0x00,
}
func (m *BHAddress) Marshal() (dAtA []byte, err error) {
@@ -1297,8 +1361,8 @@
}
i += n8
}
- if len(m.Proc) > 0 {
- for _, msg := range m.Proc {
+ if len(m.ProcList) > 0 {
+ for _, msg := range m.ProcList {
dAtA[i] = 0x12
i++
i = encodeVarintBhomeMsgApi(dAtA, i, uint64(msg.Size()))
@@ -1308,6 +1372,54 @@
}
i += n
}
+ }
+ return i, nil
+}
+
+func (m *MsgQueryProcReply_Info) 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 *MsgQueryProcReply_Info) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if m.Proc != nil {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintBhomeMsgApi(dAtA, i, uint64(m.Proc.Size()))
+ n9, err9 := m.Proc.MarshalTo(dAtA[i:])
+ if err9 != nil {
+ return 0, err9
+ }
+ i += n9
+ }
+ if m.Online {
+ dAtA[i] = 0x10
+ i++
+ if m.Online {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i++
+ }
+ if m.Topics != nil {
+ dAtA[i] = 0x1a
+ i++
+ i = encodeVarintBhomeMsgApi(dAtA, i, uint64(m.Topics.Size()))
+ n10, err10 := m.Topics.MarshalTo(dAtA[i:])
+ if err10 != nil {
+ return 0, err10
+ }
+ i += n10
}
return i, nil
}
@@ -1558,11 +1670,31 @@
l = m.Errmsg.Size()
n += 1 + l + sovBhomeMsgApi(uint64(l))
}
- if len(m.Proc) > 0 {
- for _, e := range m.Proc {
+ if len(m.ProcList) > 0 {
+ for _, e := range m.ProcList {
l = e.Size()
n += 1 + l + sovBhomeMsgApi(uint64(l))
}
+ }
+ return n
+}
+
+func (m *MsgQueryProcReply_Info) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Proc != nil {
+ l = m.Proc.Size()
+ n += 1 + l + sovBhomeMsgApi(uint64(l))
+ }
+ if m.Online {
+ n += 2
+ }
+ if m.Topics != nil {
+ l = m.Topics.Size()
+ n += 1 + l + sovBhomeMsgApi(uint64(l))
}
return n
}
@@ -3199,6 +3331,93 @@
iNdEx = postIndex
case 2:
if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ProcList", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowBhomeMsgApi
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthBhomeMsgApi
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthBhomeMsgApi
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ProcList = append(m.ProcList, &MsgQueryProcReply_Info{})
+ if err := m.ProcList[len(m.ProcList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipBhomeMsgApi(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthBhomeMsgApi
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthBhomeMsgApi
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *MsgQueryProcReply_Info) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowBhomeMsgApi
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Info: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Proc", wireType)
}
var msglen int
@@ -3226,8 +3445,66 @@
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Proc = append(m.Proc, &ProcInfo{})
- if err := m.Proc[len(m.Proc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if m.Proc == nil {
+ m.Proc = &ProcInfo{}
+ }
+ if err := m.Proc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Online", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowBhomeMsgApi
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Online = bool(v != 0)
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowBhomeMsgApi
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthBhomeMsgApi
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthBhomeMsgApi
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Topics == nil {
+ m.Topics = &MsgTopicList{}
+ }
+ if err := m.Topics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
--
Gitblit v1.8.0