chenshijun
2020-03-03 4c3c6e9dbfb046aedd0dbc30b78b8bdc61bae977
alarm.pb.go
@@ -20,14 +20,63 @@
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type FaceTempInfo struct {
   AlarmVal             float32  `protobuf:"fixed32,1,opt,name=alarmVal,proto3" json:"alarmVal,omitempty"`
   SetVal               float32  `protobuf:"fixed32,2,opt,name=setVal,proto3" json:"setVal,omitempty"`
   FacePos              *Rect    `protobuf:"bytes,3,opt,name=facePos,proto3" json:"facePos,omitempty"`
   XXX_NoUnkeyedLiteral struct{} `json:"-"`
   XXX_unrecognized     []byte   `json:"-"`
   XXX_sizecache        int32    `json:"-"`
}
func (m *FaceTempInfo) Reset()         { *m = FaceTempInfo{} }
func (m *FaceTempInfo) String() string { return proto.CompactTextString(m) }
func (*FaceTempInfo) ProtoMessage()    {}
func (*FaceTempInfo) Descriptor() ([]byte, []int) {
   return fileDescriptor_4a4142572412ce8e, []int{0}
}
func (m *FaceTempInfo) XXX_Unmarshal(b []byte) error {
   return xxx_messageInfo_FaceTempInfo.Unmarshal(m, b)
}
func (m *FaceTempInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   return xxx_messageInfo_FaceTempInfo.Marshal(b, m, deterministic)
}
func (m *FaceTempInfo) XXX_Merge(src proto.Message) {
   xxx_messageInfo_FaceTempInfo.Merge(m, src)
}
func (m *FaceTempInfo) XXX_Size() int {
   return xxx_messageInfo_FaceTempInfo.Size(m)
}
func (m *FaceTempInfo) XXX_DiscardUnknown() {
   xxx_messageInfo_FaceTempInfo.DiscardUnknown(m)
}
var xxx_messageInfo_FaceTempInfo proto.InternalMessageInfo
func (m *FaceTempInfo) GetAlarmVal() float32 {
   if m != nil {
      return m.AlarmVal
   }
   return 0
}
func (m *FaceTempInfo) GetSetVal() float32 {
   if m != nil {
      return m.SetVal
   }
   return 0
}
func (m *FaceTempInfo) GetFacePos() *Rect {
   if m != nil {
      return m.FacePos
   }
   return nil
}
type AlarmInfo struct {
   Type                 string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
   DevId                string   `protobuf:"bytes,2,opt,name=devId,proto3" json:"devId,omitempty"`
   Time                 string   `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
   AlarmVal             float32  `protobuf:"fixed32,4,opt,name=alarmVal,proto3" json:"alarmVal,omitempty"`
   SetVal               float32  `protobuf:"fixed32,5,opt,name=setVal,proto3" json:"setVal,omitempty"`
   FacePos              *Rect    `protobuf:"bytes,6,opt,name=facePos,proto3" json:"facePos,omitempty"`
   Image                *Image   `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"`
   Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
   XXX_NoUnkeyedLiteral struct{} `json:"-"`
   XXX_unrecognized     []byte   `json:"-"`
   XXX_sizecache        int32    `json:"-"`
@@ -37,7 +86,7 @@
func (m *AlarmInfo) String() string { return proto.CompactTextString(m) }
func (*AlarmInfo) ProtoMessage()    {}
func (*AlarmInfo) Descriptor() ([]byte, []int) {
   return fileDescriptor_4a4142572412ce8e, []int{0}
   return fileDescriptor_4a4142572412ce8e, []int{1}
}
func (m *AlarmInfo) XXX_Unmarshal(b []byte) error {
   return xxx_messageInfo_AlarmInfo.Unmarshal(m, b)
@@ -64,125 +113,98 @@
   return ""
}
func (m *AlarmInfo) GetDevId() string {
func (m *AlarmInfo) GetData() []byte {
   if m != nil {
      return m.Data
   }
   return nil
}
type AlarmMessage struct {
   DevId                string       `protobuf:"bytes,1,opt,name=devId,proto3" json:"devId,omitempty"`
   Time                 string       `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
   AlarmInfo            []*AlarmInfo `protobuf:"bytes,3,rep,name=alarmInfo,proto3" json:"alarmInfo,omitempty"`
   Data                 []byte       `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
   XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   XXX_unrecognized     []byte       `json:"-"`
   XXX_sizecache        int32        `json:"-"`
}
func (m *AlarmMessage) Reset()         { *m = AlarmMessage{} }
func (m *AlarmMessage) String() string { return proto.CompactTextString(m) }
func (*AlarmMessage) ProtoMessage()    {}
func (*AlarmMessage) Descriptor() ([]byte, []int) {
   return fileDescriptor_4a4142572412ce8e, []int{2}
}
func (m *AlarmMessage) XXX_Unmarshal(b []byte) error {
   return xxx_messageInfo_AlarmMessage.Unmarshal(m, b)
}
func (m *AlarmMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   return xxx_messageInfo_AlarmMessage.Marshal(b, m, deterministic)
}
func (m *AlarmMessage) XXX_Merge(src proto.Message) {
   xxx_messageInfo_AlarmMessage.Merge(m, src)
}
func (m *AlarmMessage) XXX_Size() int {
   return xxx_messageInfo_AlarmMessage.Size(m)
}
func (m *AlarmMessage) XXX_DiscardUnknown() {
   xxx_messageInfo_AlarmMessage.DiscardUnknown(m)
}
var xxx_messageInfo_AlarmMessage proto.InternalMessageInfo
func (m *AlarmMessage) GetDevId() string {
   if m != nil {
      return m.DevId
   }
   return ""
}
func (m *AlarmInfo) GetTime() string {
func (m *AlarmMessage) GetTime() string {
   if m != nil {
      return m.Time
   }
   return ""
}
func (m *AlarmInfo) GetAlarmVal() float32 {
func (m *AlarmMessage) GetAlarmInfo() []*AlarmInfo {
   if m != nil {
      return m.AlarmVal
   }
   return 0
}
func (m *AlarmInfo) GetSetVal() float32 {
   if m != nil {
      return m.SetVal
   }
   return 0
}
func (m *AlarmInfo) GetFacePos() *Rect {
   if m != nil {
      return m.FacePos
      return m.AlarmInfo
   }
   return nil
}
func (m *AlarmInfo) GetImage() *Image {
func (m *AlarmMessage) GetData() []byte {
   if m != nil {
      return m.Image
   }
   return nil
}
type AlarmRuleMessage struct {
   Taskid               string     `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"`
   Taskname             string     `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"`
   Alarminfo            *AlarmInfo `protobuf:"bytes,3,opt,name=alarminfo,proto3" json:"alarminfo,omitempty"`
   XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   XXX_unrecognized     []byte     `json:"-"`
   XXX_sizecache        int32      `json:"-"`
}
func (m *AlarmRuleMessage) Reset()         { *m = AlarmRuleMessage{} }
func (m *AlarmRuleMessage) String() string { return proto.CompactTextString(m) }
func (*AlarmRuleMessage) ProtoMessage()    {}
func (*AlarmRuleMessage) Descriptor() ([]byte, []int) {
   return fileDescriptor_4a4142572412ce8e, []int{1}
}
func (m *AlarmRuleMessage) XXX_Unmarshal(b []byte) error {
   return xxx_messageInfo_AlarmRuleMessage.Unmarshal(m, b)
}
func (m *AlarmRuleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   return xxx_messageInfo_AlarmRuleMessage.Marshal(b, m, deterministic)
}
func (m *AlarmRuleMessage) XXX_Merge(src proto.Message) {
   xxx_messageInfo_AlarmRuleMessage.Merge(m, src)
}
func (m *AlarmRuleMessage) XXX_Size() int {
   return xxx_messageInfo_AlarmRuleMessage.Size(m)
}
func (m *AlarmRuleMessage) XXX_DiscardUnknown() {
   xxx_messageInfo_AlarmRuleMessage.DiscardUnknown(m)
}
var xxx_messageInfo_AlarmRuleMessage proto.InternalMessageInfo
func (m *AlarmRuleMessage) GetTaskid() string {
   if m != nil {
      return m.Taskid
   }
   return ""
}
func (m *AlarmRuleMessage) GetTaskname() string {
   if m != nil {
      return m.Taskname
   }
   return ""
}
func (m *AlarmRuleMessage) GetAlarminfo() *AlarmInfo {
   if m != nil {
      return m.Alarminfo
      return m.Data
   }
   return nil
}
func init() {
   proto.RegisterType((*FaceTempInfo)(nil), "protomsg.FaceTempInfo")
   proto.RegisterType((*AlarmInfo)(nil), "protomsg.AlarmInfo")
   proto.RegisterType((*AlarmRuleMessage)(nil), "protomsg.AlarmRuleMessage")
   proto.RegisterType((*AlarmMessage)(nil), "protomsg.AlarmMessage")
}
func init() { proto.RegisterFile("alarm.proto", fileDescriptor_4a4142572412ce8e) }
var fileDescriptor_4a4142572412ce8e = []byte{
   // 253 bytes of a gzipped FileDescriptorProto
   0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x50, 0x5d, 0x6b, 0x83, 0x30,
   0x14, 0x25, 0x5d, 0xb5, 0xf5, 0x0a, 0xdb, 0xc8, 0xc6, 0x08, 0x3e, 0x49, 0x61, 0xe0, 0x93, 0xb0,
   0xee, 0x17, 0xec, 0xd1, 0x87, 0xc1, 0xc8, 0xc3, 0xde, 0xd3, 0x7a, 0x95, 0x50, 0x63, 0x4a, 0x93,
   0x0d, 0xfa, 0x27, 0xf7, 0x9b, 0x46, 0xae, 0xa9, 0x3e, 0x79, 0xcf, 0x87, 0x9c, 0x73, 0x02, 0xb9,
   0x1a, 0xd4, 0xc5, 0xd4, 0xe7, 0x8b, 0xf5, 0x96, 0x6f, 0xe9, 0x63, 0x5c, 0x5f, 0xc0, 0x41, 0x39,
   0x9c, 0xd8, 0x22, 0x73, 0xed, 0x69, 0x3a, 0x77, 0x7f, 0x0c, 0xb2, 0x8f, 0xf0, 0x43, 0x33, 0x76,
   0x96, 0x73, 0x58, 0xfb, 0xeb, 0x19, 0x05, 0x2b, 0x59, 0x95, 0x49, 0xba, 0xf9, 0x33, 0x24, 0x2d,
   0xfe, 0x36, 0xad, 0x58, 0x11, 0x39, 0x01, 0x72, 0x6a, 0x83, 0xe2, 0x2e, 0x3a, 0xb5, 0x41, 0x5e,
   0xc0, 0x96, 0xb2, 0xbf, 0xd5, 0x20, 0xd6, 0x25, 0xab, 0x56, 0x72, 0xc6, 0xfc, 0x05, 0x52, 0x87,
   0x3e, 0x28, 0x09, 0x29, 0x11, 0xf1, 0x0a, 0x36, 0x9d, 0x3a, 0xe2, 0x97, 0x75, 0x22, 0x2d, 0x59,
   0x95, 0xef, 0xef, 0xeb, 0x5b, 0xe5, 0x5a, 0xe2, 0xd1, 0xcb, 0x9b, 0xcc, 0x5f, 0x21, 0xd1, 0x46,
   0xf5, 0x28, 0x36, 0xe4, 0x7b, 0x58, 0x7c, 0x4d, 0xa0, 0xe5, 0xa4, 0xee, 0xae, 0xf0, 0x48, 0x7b,
   0xe4, 0xcf, 0x80, 0x9f, 0xe8, 0x9c, 0xea, 0x31, 0x84, 0x7b, 0xe5, 0x4e, 0xba, 0x8d, 0xc3, 0x22,
   0x0a, 0x85, 0xc3, 0x35, 0x2a, 0x83, 0x71, 0xdd, 0x8c, 0xf9, 0x1b, 0x64, 0x54, 0x5e, 0x8f, 0x9d,
   0xa5, 0x95, 0xf9, 0xfe, 0x69, 0x89, 0x9c, 0x9f, 0x4c, 0x2e, 0xae, 0x43, 0x4a, 0xf2, 0xfb, 0x7f,
   0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xc6, 0x49, 0x95, 0x82, 0x01, 0x00, 0x00,
   // 227 bytes of a gzipped FileDescriptorProto
   0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x8e, 0x4f, 0x6b, 0x84, 0x30,
   0x10, 0xc5, 0x71, 0xdd, 0x6e, 0xd7, 0x51, 0x7a, 0x48, 0x4b, 0x91, 0x3d, 0x89, 0xa7, 0x9c, 0x84,
   0xee, 0x7e, 0x82, 0x5e, 0x0a, 0x1e, 0x0a, 0x25, 0x94, 0xde, 0x47, 0x1d, 0x45, 0x30, 0x8d, 0x98,
   0x50, 0xe8, 0xa9, 0x5f, 0xbd, 0x64, 0xfc, 0x77, 0xca, 0xcc, 0xbc, 0xbc, 0xf7, 0x7b, 0x10, 0xe3,
   0x80, 0x93, 0x2e, 0xc6, 0xc9, 0x38, 0x23, 0xce, 0xfc, 0x68, 0xdb, 0x5d, 0xa0, 0x42, 0x4b, 0xf3,
   0x35, 0x1f, 0x20, 0x79, 0xc3, 0x9a, 0x3e, 0x49, 0x8f, 0xe5, 0x77, 0x6b, 0xc4, 0x05, 0xce, 0x6c,
   0xfa, 0xc2, 0x21, 0x0d, 0xb2, 0x40, 0x1e, 0xd4, 0xb6, 0x8b, 0x67, 0x38, 0x59, 0x72, 0x5e, 0x39,
   0xb0, 0xb2, 0x6c, 0x42, 0xc2, 0x7d, 0x8b, 0x35, 0x7d, 0x18, 0x9b, 0x86, 0x59, 0x20, 0xe3, 0xeb,
   0x43, 0xb1, 0xb2, 0x0a, 0x45, 0xb5, 0x53, 0xab, 0x9c, 0xdf, 0x20, 0x7a, 0xf5, 0x69, 0x8c, 0x12,
   0x70, 0x74, 0xbf, 0x23, 0x31, 0x26, 0x52, 0x3c, 0xfb, 0x5b, 0x83, 0x0e, 0x19, 0x90, 0x28, 0x9e,
   0xf3, 0x3f, 0x48, 0xd8, 0xf4, 0x4e, 0xd6, 0x62, 0x47, 0xe2, 0x09, 0xee, 0x1a, 0xfa, 0x29, 0x9b,
   0xc5, 0x38, 0x2f, 0x9c, 0xd6, 0x6b, 0x62, 0xa7, 0x4f, 0xeb, 0x35, 0x89, 0x17, 0x88, 0x70, 0xc5,
   0xa5, 0x61, 0x16, 0xca, 0xf8, 0xfa, 0xb8, 0x57, 0xdb, 0x9a, 0xa8, 0xfd, 0xd7, 0x56, 0xe0, 0xb8,
   0x17, 0xa8, 0x4e, 0x6c, 0xb9, 0xfd, 0x07, 0x00, 0x00, 0xff, 0xff, 0x08, 0xd2, 0x1d, 0x4f, 0x4f,
   0x01, 0x00, 0x00,
}