From 1b05eb2ed204b17fe10240254a17f7e1e8451361 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期一, 02 三月 2020 18:06:10 +0800
Subject: [PATCH] add alarm proto file

---
 alarm.pb.go |  188 +++++++++++++++++++++++++++++++++++++++++++++++
 alarm.proto |   22 +++++
 2 files changed, 210 insertions(+), 0 deletions(-)

diff --git a/alarm.pb.go b/alarm.pb.go
new file mode 100644
index 0000000..d6d2283
--- /dev/null
+++ b/alarm.pb.go
@@ -0,0 +1,188 @@
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: alarm.proto
+
+package protomsg
+
+import (
+	fmt "fmt"
+	proto "github.com/gogo/protobuf/proto"
+	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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
+
+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"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *AlarmInfo) Reset()         { *m = AlarmInfo{} }
+func (m *AlarmInfo) String() string { return proto.CompactTextString(m) }
+func (*AlarmInfo) ProtoMessage()    {}
+func (*AlarmInfo) Descriptor() ([]byte, []int) {
+	return fileDescriptor_4a4142572412ce8e, []int{0}
+}
+func (m *AlarmInfo) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_AlarmInfo.Unmarshal(m, b)
+}
+func (m *AlarmInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_AlarmInfo.Marshal(b, m, deterministic)
+}
+func (m *AlarmInfo) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_AlarmInfo.Merge(m, src)
+}
+func (m *AlarmInfo) XXX_Size() int {
+	return xxx_messageInfo_AlarmInfo.Size(m)
+}
+func (m *AlarmInfo) XXX_DiscardUnknown() {
+	xxx_messageInfo_AlarmInfo.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AlarmInfo proto.InternalMessageInfo
+
+func (m *AlarmInfo) GetType() string {
+	if m != nil {
+		return m.Type
+	}
+	return ""
+}
+
+func (m *AlarmInfo) GetDevId() string {
+	if m != nil {
+		return m.DevId
+	}
+	return ""
+}
+
+func (m *AlarmInfo) GetTime() string {
+	if m != nil {
+		return m.Time
+	}
+	return ""
+}
+
+func (m *AlarmInfo) GetAlarmVal() float32 {
+	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 nil
+}
+
+func (m *AlarmInfo) GetImage() *Image {
+	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 nil
+}
+
+func init() {
+	proto.RegisterType((*AlarmInfo)(nil), "protomsg.AlarmInfo")
+	proto.RegisterType((*AlarmRuleMessage)(nil), "protomsg.AlarmRuleMessage")
+}
+
+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,
+}
diff --git a/alarm.proto b/alarm.proto
new file mode 100644
index 0000000..b0b9220
--- /dev/null
+++ b/alarm.proto
@@ -0,0 +1,22 @@
+syntax = "proto3";
+
+import "base.proto";
+import "sdk.proto";
+
+package protomsg;
+
+message AlarmInfo {
+    string type = 1;
+    string devId = 2;
+    string time = 3;
+    float alarmVal = 4;
+    float setVal = 5;
+    Rect facePos = 6;
+    Image image = 7;
+}
+
+message AlarmRuleMessage {
+    string taskid = 1;
+    string taskname = 2;
+    AlarmInfo alarminfo = 3;
+}

--
Gitblit v1.8.0