// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: softbus.proto package softbus import ( fmt "fmt" proto "github.com/golang/protobuf/proto" io "io" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // 进程基本信息 type ProcInfo struct { ServerID string `protobuf:"bytes,1,opt,name=serverID,proto3" json:"serverID,omitempty"` BoardID string `protobuf:"bytes,2,opt,name=boardID,proto3" json:"boardID,omitempty"` ServerIP string `protobuf:"bytes,3,opt,name=serverIP,proto3" json:"serverIP,omitempty"` ProcName string `protobuf:"bytes,4,opt,name=procName,proto3" json:"procName,omitempty"` ProcID string `protobuf:"bytes,5,opt,name=procID,proto3" json:"procID,omitempty"` ProcLabel string `protobuf:"bytes,6,opt,name=procLabel,proto3" json:"procLabel,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ProcInfo) Reset() { *m = ProcInfo{} } func (m *ProcInfo) String() string { return proto.CompactTextString(m) } func (*ProcInfo) ProtoMessage() {} func (*ProcInfo) Descriptor() ([]byte, []int) { return fileDescriptor_61abf516b68179fd, []int{0} } func (m *ProcInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *ProcInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_ProcInfo.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 *ProcInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_ProcInfo.Merge(m, src) } func (m *ProcInfo) XXX_Size() int { return m.Size() } func (m *ProcInfo) XXX_DiscardUnknown() { xxx_messageInfo_ProcInfo.DiscardUnknown(m) } var xxx_messageInfo_ProcInfo proto.InternalMessageInfo func (m *ProcInfo) GetServerID() string { if m != nil { return m.ServerID } return "" } func (m *ProcInfo) GetBoardID() string { if m != nil { return m.BoardID } return "" } func (m *ProcInfo) GetServerIP() string { if m != nil { return m.ServerIP } return "" } func (m *ProcInfo) GetProcName() string { if m != nil { return m.ProcName } return "" } func (m *ProcInfo) GetProcID() string { if m != nil { return m.ProcID } return "" } func (m *ProcInfo) GetProcLabel() string { if m != nil { return m.ProcLabel } return "" } type RegisterInfo struct { ProcInfo *ProcInfo `protobuf:"bytes,1,opt,name=procInfo,proto3" json:"procInfo,omitempty"` Channel []string `protobuf:"bytes,2,rep,name=channel,proto3" json:"channel,omitempty"` PubTopic []string `protobuf:"bytes,3,rep,name=pubTopic,proto3" json:"pubTopic,omitempty"` SubTopic []string `protobuf:"bytes,4,rep,name=subTopic,proto3" json:"subTopic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *RegisterInfo) Reset() { *m = RegisterInfo{} } func (m *RegisterInfo) String() string { return proto.CompactTextString(m) } func (*RegisterInfo) ProtoMessage() {} func (*RegisterInfo) Descriptor() ([]byte, []int) { return fileDescriptor_61abf516b68179fd, []int{1} } func (m *RegisterInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *RegisterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_RegisterInfo.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 *RegisterInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_RegisterInfo.Merge(m, src) } func (m *RegisterInfo) XXX_Size() int { return m.Size() } func (m *RegisterInfo) XXX_DiscardUnknown() { xxx_messageInfo_RegisterInfo.DiscardUnknown(m) } var xxx_messageInfo_RegisterInfo proto.InternalMessageInfo func (m *RegisterInfo) GetProcInfo() *ProcInfo { if m != nil { return m.ProcInfo } return nil } func (m *RegisterInfo) GetChannel() []string { if m != nil { return m.Channel } return nil } func (m *RegisterInfo) GetPubTopic() []string { if m != nil { return m.PubTopic } return nil } func (m *RegisterInfo) GetSubTopic() []string { if m != nil { return m.SubTopic } return nil } type RegisterInfoReply struct { ProcInfo *ProcInfo `protobuf:"bytes,1,opt,name=procInfo,proto3" json:"procInfo,omitempty"` ChannelKey map[string]int32 `protobuf:"bytes,2,rep,name=channelKey,proto3" json:"channelKey,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` HeartbeatKey int32 `protobuf:"varint,3,opt,name=heartbeatKey,proto3" json:"heartbeatKey,omitempty"` SubTopicKey int32 `protobuf:"varint,4,opt,name=subTopicKey,proto3" json:"subTopicKey,omitempty"` UpdateTopicKey int32 `protobuf:"varint,5,opt,name=updateTopicKey,proto3" json:"updateTopicKey,omitempty"` ReplyKey int32 `protobuf:"varint,6,opt,name=replyKey,proto3" json:"replyKey,omitempty"` GetTopicKey int32 `protobuf:"varint,7,opt,name=getTopicKey,proto3" json:"getTopicKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *RegisterInfoReply) Reset() { *m = RegisterInfoReply{} } func (m *RegisterInfoReply) String() string { return proto.CompactTextString(m) } func (*RegisterInfoReply) ProtoMessage() {} func (*RegisterInfoReply) Descriptor() ([]byte, []int) { return fileDescriptor_61abf516b68179fd, []int{2} } func (m *RegisterInfoReply) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *RegisterInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_RegisterInfoReply.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 *RegisterInfoReply) XXX_Merge(src proto.Message) { xxx_messageInfo_RegisterInfoReply.Merge(m, src) } func (m *RegisterInfoReply) XXX_Size() int { return m.Size() } func (m *RegisterInfoReply) XXX_DiscardUnknown() { xxx_messageInfo_RegisterInfoReply.DiscardUnknown(m) } var xxx_messageInfo_RegisterInfoReply proto.InternalMessageInfo func (m *RegisterInfoReply) GetProcInfo() *ProcInfo { if m != nil { return m.ProcInfo } return nil } func (m *RegisterInfoReply) GetChannelKey() map[string]int32 { if m != nil { return m.ChannelKey } return nil } func (m *RegisterInfoReply) GetHeartbeatKey() int32 { if m != nil { return m.HeartbeatKey } return 0 } func (m *RegisterInfoReply) GetSubTopicKey() int32 { if m != nil { return m.SubTopicKey } return 0 } func (m *RegisterInfoReply) GetUpdateTopicKey() int32 { if m != nil { return m.UpdateTopicKey } return 0 } func (m *RegisterInfoReply) GetReplyKey() int32 { if m != nil { return m.ReplyKey } return 0 } func (m *RegisterInfoReply) GetGetTopicKey() int32 { if m != nil { return m.GetTopicKey } return 0 } type TopicInfo struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` TopicType string `protobuf:"bytes,2,opt,name=topicType,proto3" json:"topicType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TopicInfo) Reset() { *m = TopicInfo{} } func (m *TopicInfo) String() string { return proto.CompactTextString(m) } func (*TopicInfo) ProtoMessage() {} func (*TopicInfo) Descriptor() ([]byte, []int) { return fileDescriptor_61abf516b68179fd, []int{3} } func (m *TopicInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TopicInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TopicInfo.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 *TopicInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_TopicInfo.Merge(m, src) } func (m *TopicInfo) XXX_Size() int { return m.Size() } func (m *TopicInfo) XXX_DiscardUnknown() { xxx_messageInfo_TopicInfo.DiscardUnknown(m) } var xxx_messageInfo_TopicInfo proto.InternalMessageInfo func (m *TopicInfo) GetTopic() string { if m != nil { return m.Topic } return "" } func (m *TopicInfo) GetTopicType() string { if m != nil { return m.TopicType } return "" } type TopicInfoReply struct { Info *TopicInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Key int32 `protobuf:"varint,2,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *TopicInfoReply) Reset() { *m = TopicInfoReply{} } func (m *TopicInfoReply) String() string { return proto.CompactTextString(m) } func (*TopicInfoReply) ProtoMessage() {} func (*TopicInfoReply) Descriptor() ([]byte, []int) { return fileDescriptor_61abf516b68179fd, []int{4} } func (m *TopicInfoReply) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *TopicInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TopicInfoReply.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 *TopicInfoReply) XXX_Merge(src proto.Message) { xxx_messageInfo_TopicInfoReply.Merge(m, src) } func (m *TopicInfoReply) XXX_Size() int { return m.Size() } func (m *TopicInfoReply) XXX_DiscardUnknown() { xxx_messageInfo_TopicInfoReply.DiscardUnknown(m) } var xxx_messageInfo_TopicInfoReply proto.InternalMessageInfo func (m *TopicInfoReply) GetInfo() *TopicInfo { if m != nil { return m.Info } return nil } func (m *TopicInfoReply) GetKey() int32 { if m != nil { return m.Key } return 0 } type HeartbeatInfo struct { HealthLevel string `protobuf:"bytes,1,opt,name=healthLevel,proto3" json:"healthLevel,omitempty"` Fps int32 `protobuf:"varint,2,opt,name=fps,proto3" json:"fps,omitempty"` WarnInfo string `protobuf:"bytes,3,opt,name=warnInfo,proto3" json:"warnInfo,omitempty"` ErrorInfo string `protobuf:"bytes,4,opt,name=errorInfo,proto3" json:"errorInfo,omitempty"` OtherInfo []byte `protobuf:"bytes,5,opt,name=otherInfo,proto3" json:"otherInfo,omitempty"` OtherInfoSize int32 `protobuf:"varint,6,opt,name=otherInfoSize,proto3" json:"otherInfoSize,omitempty"` ProcInfo *ProcInfo `protobuf:"bytes,7,opt,name=procInfo,proto3" json:"procInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *HeartbeatInfo) Reset() { *m = HeartbeatInfo{} } func (m *HeartbeatInfo) String() string { return proto.CompactTextString(m) } func (*HeartbeatInfo) ProtoMessage() {} func (*HeartbeatInfo) Descriptor() ([]byte, []int) { return fileDescriptor_61abf516b68179fd, []int{5} } func (m *HeartbeatInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *HeartbeatInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_HeartbeatInfo.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 *HeartbeatInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_HeartbeatInfo.Merge(m, src) } func (m *HeartbeatInfo) XXX_Size() int { return m.Size() } func (m *HeartbeatInfo) XXX_DiscardUnknown() { xxx_messageInfo_HeartbeatInfo.DiscardUnknown(m) } var xxx_messageInfo_HeartbeatInfo proto.InternalMessageInfo func (m *HeartbeatInfo) GetHealthLevel() string { if m != nil { return m.HealthLevel } return "" } func (m *HeartbeatInfo) GetFps() int32 { if m != nil { return m.Fps } return 0 } func (m *HeartbeatInfo) GetWarnInfo() string { if m != nil { return m.WarnInfo } return "" } func (m *HeartbeatInfo) GetErrorInfo() string { if m != nil { return m.ErrorInfo } return "" } func (m *HeartbeatInfo) GetOtherInfo() []byte { if m != nil { return m.OtherInfo } return nil } func (m *HeartbeatInfo) GetOtherInfoSize() int32 { if m != nil { return m.OtherInfoSize } return 0 } func (m *HeartbeatInfo) GetProcInfo() *ProcInfo { if m != nil { return m.ProcInfo } return nil } type MsgInfo struct { SrcProc *ProcInfo `protobuf:"bytes,1,opt,name=srcProc,proto3" json:"srcProc,omitempty"` MsgType string `protobuf:"bytes,2,opt,name=msgType,proto3" json:"msgType,omitempty"` Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` ShmKey int32 `protobuf:"varint,4,opt,name=shmKey,proto3" json:"shmKey,omitempty"` Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` BodyLen int32 `protobuf:"varint,6,opt,name=bodyLen,proto3" json:"bodyLen,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *MsgInfo) Reset() { *m = MsgInfo{} } func (m *MsgInfo) String() string { return proto.CompactTextString(m) } func (*MsgInfo) ProtoMessage() {} func (*MsgInfo) Descriptor() ([]byte, []int) { return fileDescriptor_61abf516b68179fd, []int{6} } func (m *MsgInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgInfo.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 *MsgInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgInfo.Merge(m, src) } func (m *MsgInfo) XXX_Size() int { return m.Size() } func (m *MsgInfo) XXX_DiscardUnknown() { xxx_messageInfo_MsgInfo.DiscardUnknown(m) } var xxx_messageInfo_MsgInfo proto.InternalMessageInfo func (m *MsgInfo) GetSrcProc() *ProcInfo { if m != nil { return m.SrcProc } return nil } func (m *MsgInfo) GetMsgType() string { if m != nil { return m.MsgType } return "" } func (m *MsgInfo) GetTopic() string { if m != nil { return m.Topic } return "" } func (m *MsgInfo) GetShmKey() int32 { if m != nil { return m.ShmKey } return 0 } func (m *MsgInfo) GetBody() []byte { if m != nil { return m.Body } return nil } func (m *MsgInfo) GetBodyLen() int32 { if m != nil { return m.BodyLen } return 0 } func init() { proto.RegisterType((*ProcInfo)(nil), "softbus.ProcInfo") proto.RegisterType((*RegisterInfo)(nil), "softbus.RegisterInfo") proto.RegisterType((*RegisterInfoReply)(nil), "softbus.RegisterInfoReply") proto.RegisterMapType((map[string]int32)(nil), "softbus.RegisterInfoReply.ChannelKeyEntry") proto.RegisterType((*TopicInfo)(nil), "softbus.TopicInfo") proto.RegisterType((*TopicInfoReply)(nil), "softbus.TopicInfoReply") proto.RegisterType((*HeartbeatInfo)(nil), "softbus.HeartbeatInfo") proto.RegisterType((*MsgInfo)(nil), "softbus.MsgInfo") } func init() { proto.RegisterFile("softbus.proto", fileDescriptor_61abf516b68179fd) } var fileDescriptor_61abf516b68179fd = []byte{ // 593 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xd1, 0x8a, 0xd3, 0x5c, 0x10, 0xfe, 0xd3, 0x36, 0xcd, 0xee, 0xb4, 0xdd, 0x7f, 0xf7, 0xb0, 0x2c, 0x61, 0x91, 0x52, 0x82, 0x2c, 0xa2, 0xd8, 0x8b, 0xf5, 0x46, 0x04, 0x11, 0xb4, 0x82, 0x5d, 0xab, 0x94, 0xb8, 0x2f, 0x90, 0xb4, 0xd3, 0xa6, 0x98, 0x26, 0xe1, 0x24, 0xad, 0xc4, 0x97, 0xf0, 0xd6, 0x87, 0x10, 0x9f, 0xc3, 0x4b, 0x1f, 0x41, 0xea, 0x0b, 0x78, 0xeb, 0x9d, 0xcc, 0xe4, 0x9c, 0x24, 0x5d, 0x11, 0xf1, 0x6e, 0xbe, 0x99, 0xef, 0xcc, 0xf9, 0xe6, 0xcc, 0x97, 0x40, 0x2f, 0x8d, 0x17, 0x99, 0xbf, 0x49, 0x87, 0x89, 0x8c, 0xb3, 0x58, 0x58, 0x0a, 0x3a, 0x9f, 0x0d, 0x38, 0x98, 0xca, 0x78, 0x36, 0x8e, 0x16, 0xb1, 0x38, 0x87, 0x83, 0x14, 0xe5, 0x16, 0xe5, 0x78, 0x64, 0x1b, 0x03, 0xe3, 0xce, 0xa1, 0x5b, 0x62, 0x61, 0x83, 0xe5, 0xc7, 0x9e, 0x9c, 0x8f, 0x47, 0x76, 0x83, 0x4b, 0x1a, 0xd6, 0x4e, 0x4d, 0xed, 0xe6, 0xde, 0xa9, 0x29, 0xd5, 0x12, 0x19, 0xcf, 0x5e, 0x7b, 0x6b, 0xb4, 0x5b, 0x45, 0x4d, 0x63, 0x71, 0x06, 0x6d, 0x8a, 0xc7, 0x23, 0xdb, 0xe4, 0x8a, 0x42, 0xe2, 0x16, 0x1c, 0x52, 0x34, 0xf1, 0x7c, 0x0c, 0xed, 0x36, 0x97, 0xaa, 0x84, 0xf3, 0xc1, 0x80, 0xae, 0x8b, 0xcb, 0x55, 0x9a, 0xa1, 0x64, 0xd1, 0xf7, 0x8b, 0x2b, 0x28, 0x66, 0xd1, 0x9d, 0xcb, 0x93, 0xa1, 0x1e, 0x56, 0x4f, 0xe6, 0x96, 0x14, 0x9a, 0x63, 0x16, 0x78, 0x51, 0x84, 0xa1, 0xdd, 0x18, 0x34, 0x69, 0x0e, 0x05, 0x59, 0xeb, 0xc6, 0xbf, 0x8e, 0x93, 0xd5, 0xcc, 0x6e, 0x72, 0xa9, 0xc4, 0x3c, 0xa3, 0xae, 0xb5, 0x8a, 0x9a, 0xc6, 0xce, 0xcf, 0x06, 0x9c, 0xd4, 0x15, 0xb9, 0x98, 0x84, 0xf9, 0xbf, 0xca, 0xba, 0x02, 0x50, 0x3a, 0x5e, 0x62, 0xce, 0xca, 0x3a, 0x97, 0x77, 0xcb, 0x03, 0xbf, 0xb5, 0x1f, 0x3e, 0x2b, 0xc9, 0xcf, 0xa3, 0x4c, 0xe6, 0x6e, 0xed, 0xb4, 0x70, 0xa0, 0x1b, 0xa0, 0x27, 0x33, 0x1f, 0xbd, 0x8c, 0xba, 0xd1, 0x52, 0x4c, 0x77, 0x2f, 0x27, 0x06, 0xd0, 0xd1, 0x03, 0x10, 0xa5, 0xc5, 0x94, 0x7a, 0x4a, 0x5c, 0xc0, 0xd1, 0x26, 0x99, 0x7b, 0x19, 0x96, 0x24, 0x93, 0x49, 0x37, 0xb2, 0xf4, 0x34, 0x92, 0x24, 0x11, 0xa3, 0xcd, 0x8c, 0x12, 0xd3, 0x2d, 0x4b, 0xcc, 0xca, 0x06, 0x56, 0x71, 0x4b, 0x2d, 0x75, 0xfe, 0x18, 0xfe, 0xbf, 0x31, 0x8a, 0x38, 0x86, 0xe6, 0x5b, 0xcc, 0x95, 0x01, 0x29, 0x14, 0xa7, 0x60, 0x6e, 0xbd, 0x70, 0x83, 0xec, 0x3c, 0xd3, 0x2d, 0xc0, 0xa3, 0xc6, 0x43, 0xc3, 0x79, 0x02, 0x87, 0xdc, 0x8a, 0xdf, 0xf0, 0x14, 0xcc, 0x8c, 0x37, 0x54, 0x1c, 0x2d, 0x00, 0xd9, 0x89, 0x83, 0xeb, 0x3c, 0x41, 0x65, 0xdd, 0x2a, 0xe1, 0x5c, 0xc1, 0x51, 0xd9, 0xa0, 0x58, 0xdc, 0x05, 0xb4, 0x56, 0xd5, 0xd2, 0x44, 0xb9, 0x83, 0x8a, 0xc6, 0x75, 0x2d, 0xb3, 0x90, 0x44, 0xa1, 0xf3, 0xc3, 0x80, 0xde, 0x0b, 0xfd, 0xc8, 0xac, 0x68, 0x00, 0x9d, 0x00, 0xbd, 0x30, 0x0b, 0x26, 0xb8, 0xc5, 0x50, 0xe9, 0xaa, 0xa7, 0xa8, 0xcb, 0x22, 0x49, 0x75, 0x97, 0x45, 0x92, 0xd2, 0x7b, 0xbe, 0xf3, 0x64, 0xc4, 0xc6, 0x51, 0x9f, 0x93, 0xc6, 0x34, 0x0b, 0x4a, 0x19, 0xb3, 0x0f, 0xd4, 0xf7, 0x54, 0x25, 0xa8, 0x1a, 0x67, 0x41, 0xe1, 0x12, 0x5e, 0x56, 0xd7, 0xad, 0x12, 0xe2, 0x36, 0xf4, 0x4a, 0xf0, 0x66, 0xf5, 0x1e, 0xd5, 0xb2, 0xf6, 0x93, 0x7b, 0xb6, 0xb5, 0xfe, 0x6a, 0x5b, 0xe7, 0x93, 0x01, 0xd6, 0xab, 0x74, 0xc9, 0x17, 0xdc, 0x03, 0x2b, 0x95, 0x33, 0x22, 0xfd, 0xd9, 0xf0, 0x9a, 0x41, 0x9f, 0xe1, 0x3a, 0x5d, 0xd6, 0x76, 0xa2, 0x61, 0xb5, 0xc5, 0x66, 0x7d, 0x8b, 0x67, 0xd0, 0x4e, 0x83, 0x75, 0x65, 0x55, 0x85, 0x84, 0x80, 0x96, 0x1f, 0xcf, 0x73, 0x35, 0x2e, 0xc7, 0xc5, 0xaf, 0x6a, 0x9e, 0x4f, 0x30, 0x52, 0x33, 0x6a, 0xf8, 0xf4, 0xf8, 0xcb, 0xae, 0x6f, 0x7c, 0xdd, 0xf5, 0x8d, 0x6f, 0xbb, 0xbe, 0xf1, 0xf1, 0x7b, 0xff, 0x3f, 0xbf, 0xcd, 0xff, 0xc3, 0x07, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x65, 0x52, 0xb8, 0x9f, 0x20, 0x05, 0x00, 0x00, } func (m *ProcInfo) 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 *ProcInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.ServerID) > 0 { dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.ServerID))) i += copy(dAtA[i:], m.ServerID) } if len(m.BoardID) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.BoardID))) i += copy(dAtA[i:], m.BoardID) } if len(m.ServerIP) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.ServerIP))) i += copy(dAtA[i:], m.ServerIP) } if len(m.ProcName) > 0 { dAtA[i] = 0x22 i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.ProcName))) i += copy(dAtA[i:], m.ProcName) } if len(m.ProcID) > 0 { dAtA[i] = 0x2a i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.ProcID))) i += copy(dAtA[i:], m.ProcID) } if len(m.ProcLabel) > 0 { dAtA[i] = 0x32 i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.ProcLabel))) i += copy(dAtA[i:], m.ProcLabel) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *RegisterInfo) 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 *RegisterInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.ProcInfo != nil { dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.ProcInfo.Size())) n1, err1 := m.ProcInfo.MarshalTo(dAtA[i:]) if err1 != nil { return 0, err1 } i += n1 } if len(m.Channel) > 0 { for _, s := range m.Channel { 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 len(m.PubTopic) > 0 { for _, s := range m.PubTopic { 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.SubTopic) > 0 { for _, s := range m.SubTopic { 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.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *RegisterInfoReply) 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 *RegisterInfoReply) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.ProcInfo != nil { dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.ProcInfo.Size())) n2, err2 := m.ProcInfo.MarshalTo(dAtA[i:]) if err2 != nil { return 0, err2 } i += n2 } if len(m.ChannelKey) > 0 { for k, _ := range m.ChannelKey { dAtA[i] = 0x12 i++ v := m.ChannelKey[k] mapSize := 1 + len(k) + sovSoftbus(uint64(len(k))) + 1 + sovSoftbus(uint64(v)) i = encodeVarintSoftbus(dAtA, i, uint64(mapSize)) dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(k))) i += copy(dAtA[i:], k) dAtA[i] = 0x10 i++ i = encodeVarintSoftbus(dAtA, i, uint64(v)) } } if m.HeartbeatKey != 0 { dAtA[i] = 0x18 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.HeartbeatKey)) } if m.SubTopicKey != 0 { dAtA[i] = 0x20 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.SubTopicKey)) } if m.UpdateTopicKey != 0 { dAtA[i] = 0x28 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.UpdateTopicKey)) } if m.ReplyKey != 0 { dAtA[i] = 0x30 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.ReplyKey)) } if m.GetTopicKey != 0 { dAtA[i] = 0x38 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.GetTopicKey)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *TopicInfo) 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 *TopicInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.Topic) > 0 { dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.Topic))) i += copy(dAtA[i:], m.Topic) } if len(m.TopicType) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.TopicType))) i += copy(dAtA[i:], m.TopicType) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *TopicInfoReply) 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 *TopicInfoReply) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.Info != nil { dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.Info.Size())) n3, err3 := m.Info.MarshalTo(dAtA[i:]) if err3 != nil { return 0, err3 } i += n3 } if m.Key != 0 { dAtA[i] = 0x10 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.Key)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *HeartbeatInfo) 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 *HeartbeatInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.HealthLevel) > 0 { dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.HealthLevel))) i += copy(dAtA[i:], m.HealthLevel) } if m.Fps != 0 { dAtA[i] = 0x10 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.Fps)) } if len(m.WarnInfo) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.WarnInfo))) i += copy(dAtA[i:], m.WarnInfo) } if len(m.ErrorInfo) > 0 { dAtA[i] = 0x22 i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.ErrorInfo))) i += copy(dAtA[i:], m.ErrorInfo) } if len(m.OtherInfo) > 0 { dAtA[i] = 0x2a i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.OtherInfo))) i += copy(dAtA[i:], m.OtherInfo) } if m.OtherInfoSize != 0 { dAtA[i] = 0x30 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.OtherInfoSize)) } if m.ProcInfo != nil { dAtA[i] = 0x3a i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.ProcInfo.Size())) n4, err4 := m.ProcInfo.MarshalTo(dAtA[i:]) if err4 != nil { return 0, err4 } i += n4 } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func (m *MsgInfo) 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 *MsgInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if m.SrcProc != nil { dAtA[i] = 0xa i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.SrcProc.Size())) n5, err5 := m.SrcProc.MarshalTo(dAtA[i:]) if err5 != nil { return 0, err5 } i += n5 } if len(m.MsgType) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.MsgType))) i += copy(dAtA[i:], m.MsgType) } if len(m.Topic) > 0 { dAtA[i] = 0x1a i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.Topic))) i += copy(dAtA[i:], m.Topic) } if m.ShmKey != 0 { dAtA[i] = 0x20 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.ShmKey)) } if len(m.Body) > 0 { dAtA[i] = 0x2a i++ i = encodeVarintSoftbus(dAtA, i, uint64(len(m.Body))) i += copy(dAtA[i:], m.Body) } if m.BodyLen != 0 { dAtA[i] = 0x30 i++ i = encodeVarintSoftbus(dAtA, i, uint64(m.BodyLen)) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func encodeVarintSoftbus(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return offset + 1 } func (m *ProcInfo) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ServerID) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.BoardID) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.ServerIP) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.ProcName) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.ProcID) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.ProcLabel) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *RegisterInfo) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ProcInfo != nil { l = m.ProcInfo.Size() n += 1 + l + sovSoftbus(uint64(l)) } if len(m.Channel) > 0 { for _, s := range m.Channel { l = len(s) n += 1 + l + sovSoftbus(uint64(l)) } } if len(m.PubTopic) > 0 { for _, s := range m.PubTopic { l = len(s) n += 1 + l + sovSoftbus(uint64(l)) } } if len(m.SubTopic) > 0 { for _, s := range m.SubTopic { l = len(s) n += 1 + l + sovSoftbus(uint64(l)) } } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *RegisterInfoReply) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.ProcInfo != nil { l = m.ProcInfo.Size() n += 1 + l + sovSoftbus(uint64(l)) } if len(m.ChannelKey) > 0 { for k, v := range m.ChannelKey { _ = k _ = v mapEntrySize := 1 + len(k) + sovSoftbus(uint64(len(k))) + 1 + sovSoftbus(uint64(v)) n += mapEntrySize + 1 + sovSoftbus(uint64(mapEntrySize)) } } if m.HeartbeatKey != 0 { n += 1 + sovSoftbus(uint64(m.HeartbeatKey)) } if m.SubTopicKey != 0 { n += 1 + sovSoftbus(uint64(m.SubTopicKey)) } if m.UpdateTopicKey != 0 { n += 1 + sovSoftbus(uint64(m.UpdateTopicKey)) } if m.ReplyKey != 0 { n += 1 + sovSoftbus(uint64(m.ReplyKey)) } if m.GetTopicKey != 0 { n += 1 + sovSoftbus(uint64(m.GetTopicKey)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *TopicInfo) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Topic) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.TopicType) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *TopicInfoReply) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Info != nil { l = m.Info.Size() n += 1 + l + sovSoftbus(uint64(l)) } if m.Key != 0 { n += 1 + sovSoftbus(uint64(m.Key)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *HeartbeatInfo) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.HealthLevel) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } if m.Fps != 0 { n += 1 + sovSoftbus(uint64(m.Fps)) } l = len(m.WarnInfo) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.ErrorInfo) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.OtherInfo) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } if m.OtherInfoSize != 0 { n += 1 + sovSoftbus(uint64(m.OtherInfoSize)) } if m.ProcInfo != nil { l = m.ProcInfo.Size() n += 1 + l + sovSoftbus(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func (m *MsgInfo) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.SrcProc != nil { l = m.SrcProc.Size() n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.MsgType) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } l = len(m.Topic) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } if m.ShmKey != 0 { n += 1 + sovSoftbus(uint64(m.ShmKey)) } l = len(m.Body) if l > 0 { n += 1 + l + sovSoftbus(uint64(l)) } if m.BodyLen != 0 { n += 1 + sovSoftbus(uint64(m.BodyLen)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovSoftbus(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } func sozSoftbus(x uint64) (n int) { return sovSoftbus(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *ProcInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } 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: ProcInfo: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ProcInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServerID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.ServerID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BoardID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.BoardID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServerIP", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.ServerIP = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProcName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.ProcName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProcID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.ProcID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProcLabel", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.ProcLabel = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) < 0 { return ErrInvalidLengthSoftbus } 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 *RegisterInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } 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: RegisterInfo: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RegisterInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProcInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } if m.ProcInfo == nil { m.ProcInfo = &ProcInfo{} } if err := m.ProcInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.Channel = append(m.Channel, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PubTopic", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.PubTopic = append(m.PubTopic, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SubTopic", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.SubTopic = append(m.SubTopic, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) < 0 { return ErrInvalidLengthSoftbus } 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 *RegisterInfoReply) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } 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: RegisterInfoReply: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RegisterInfoReply: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProcInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } if m.ProcInfo == nil { m.ProcInfo = &ProcInfo{} } if err := m.ProcInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } if m.ChannelKey == nil { m.ChannelKey = make(map[string]int32) } var mapkey string var mapvalue int32 for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) if fieldNum == 1 { var stringLenmapkey uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLenmapkey := int(stringLenmapkey) if intStringLenmapkey < 0 { return ErrInvalidLengthSoftbus } postStringIndexmapkey := iNdEx + intStringLenmapkey if postStringIndexmapkey < 0 { return ErrInvalidLengthSoftbus } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ mapvalue |= int32(b&0x7F) << shift if b < 0x80 { break } } } else { iNdEx = entryPreIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.ChannelKey[mapkey] = mapvalue iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatKey", wireType) } m.HeartbeatKey = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.HeartbeatKey |= int32(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SubTopicKey", wireType) } m.SubTopicKey = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.SubTopicKey |= int32(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field UpdateTopicKey", wireType) } m.UpdateTopicKey = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.UpdateTopicKey |= int32(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ReplyKey", wireType) } m.ReplyKey = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ReplyKey |= int32(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field GetTopicKey", wireType) } m.GetTopicKey = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.GetTopicKey |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) < 0 { return ErrInvalidLengthSoftbus } 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 *TopicInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } 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: TopicInfo: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TopicInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.Topic = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TopicType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.TopicType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) < 0 { return ErrInvalidLengthSoftbus } 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 *TopicInfoReply) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } 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: TopicInfoReply: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: TopicInfoReply: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } if m.Info == nil { m.Info = &TopicInfo{} } if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } m.Key = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Key |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) < 0 { return ErrInvalidLengthSoftbus } 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 *HeartbeatInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } 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: HeartbeatInfo: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: HeartbeatInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field HealthLevel", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.HealthLevel = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Fps", wireType) } m.Fps = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Fps |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field WarnInfo", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.WarnInfo = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ErrorInfo", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.ErrorInfo = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OtherInfo", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.OtherInfo = append(m.OtherInfo[:0], dAtA[iNdEx:postIndex]...) if m.OtherInfo == nil { m.OtherInfo = []byte{} } iNdEx = postIndex case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field OtherInfoSize", wireType) } m.OtherInfoSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.OtherInfoSize |= int32(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProcInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } if m.ProcInfo == nil { m.ProcInfo = &ProcInfo{} } if err := m.ProcInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) < 0 { return ErrInvalidLengthSoftbus } 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 *MsgInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } 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: MsgInfo: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SrcProc", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } if m.SrcProc == nil { m.SrcProc = &ProcInfo{} } if err := m.SrcProc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgType", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.MsgType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.Topic = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ShmKey", wireType) } m.ShmKey = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ShmKey |= int32(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthSoftbus } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthSoftbus } if postIndex > l { return io.ErrUnexpectedEOF } m.Body = append(m.Body[:0], dAtA[iNdEx:postIndex]...) if m.Body == nil { m.Body = []byte{} } iNdEx = postIndex case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field BodyLen", wireType) } m.BodyLen = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowSoftbus } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.BodyLen |= int32(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipSoftbus(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthSoftbus } if (iNdEx + skippy) < 0 { return ErrInvalidLengthSoftbus } 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 skipSoftbus(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSoftbus } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSoftbus } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } return iNdEx, nil case 1: iNdEx += 8 return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSoftbus } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthSoftbus } iNdEx += length if iNdEx < 0 { return 0, ErrInvalidLengthSoftbus } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowSoftbus } 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 := skipSoftbus(dAtA[start:]) if err != nil { return 0, err } iNdEx = start + next if iNdEx < 0 { return 0, ErrInvalidLengthSoftbus } } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreachable") } var ( ErrInvalidLengthSoftbus = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSoftbus = fmt.Errorf("proto: integer overflow") )