alarm.pb.go 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: alarm.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package v1
  5. import (
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. math "math"
  9. )
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  19. type AlarmRule struct {
  20. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  21. Sn string `protobuf:"bytes,2,opt,name=sn,proto3" json:"sn"`
  22. AlarmCount int32 `protobuf:"varint,3,opt,name=alarm_count,json=alarmCount,proto3" json:"alarm_count"`
  23. SilencePeriod int32 `protobuf:"varint,4,opt,name=silence_period,json=silencePeriod,proto3" json:"silence_period"`
  24. IsOn bool `protobuf:"varint,5,opt,name=is_on,json=isOn,proto3" json:"is_on"`
  25. Id int64 `protobuf:"varint,6,opt,name=id,proto3" json:"id"`
  26. ContinuePeriod int32 `protobuf:"varint,7,opt,name=continue_period,json=continuePeriod,proto3" json:"continue_period"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *AlarmRule) Reset() { *m = AlarmRule{} }
  32. func (m *AlarmRule) String() string { return proto.CompactTextString(m) }
  33. func (*AlarmRule) ProtoMessage() {}
  34. func (*AlarmRule) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_4a4142572412ce8e, []int{0}
  36. }
  37. func (m *AlarmRule) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_AlarmRule.Unmarshal(m, b)
  39. }
  40. func (m *AlarmRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_AlarmRule.Marshal(b, m, deterministic)
  42. }
  43. func (m *AlarmRule) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_AlarmRule.Merge(m, src)
  45. }
  46. func (m *AlarmRule) XXX_Size() int {
  47. return xxx_messageInfo_AlarmRule.Size(m)
  48. }
  49. func (m *AlarmRule) XXX_DiscardUnknown() {
  50. xxx_messageInfo_AlarmRule.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_AlarmRule proto.InternalMessageInfo
  53. func (m *AlarmRule) GetProjectId() int64 {
  54. if m != nil {
  55. return m.ProjectId
  56. }
  57. return 0
  58. }
  59. func (m *AlarmRule) GetSn() string {
  60. if m != nil {
  61. return m.Sn
  62. }
  63. return ""
  64. }
  65. func (m *AlarmRule) GetAlarmCount() int32 {
  66. if m != nil {
  67. return m.AlarmCount
  68. }
  69. return 0
  70. }
  71. func (m *AlarmRule) GetSilencePeriod() int32 {
  72. if m != nil {
  73. return m.SilencePeriod
  74. }
  75. return 0
  76. }
  77. func (m *AlarmRule) GetIsOn() bool {
  78. if m != nil {
  79. return m.IsOn
  80. }
  81. return false
  82. }
  83. func (m *AlarmRule) GetId() int64 {
  84. if m != nil {
  85. return m.Id
  86. }
  87. return 0
  88. }
  89. func (m *AlarmRule) GetContinuePeriod() int32 {
  90. if m != nil {
  91. return m.ContinuePeriod
  92. }
  93. return 0
  94. }
  95. type AlarmRuleAddRequest struct {
  96. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  97. Sn string `protobuf:"bytes,2,opt,name=sn,proto3" json:"sn"`
  98. AlarmCount int32 `protobuf:"varint,3,opt,name=alarm_count,json=alarmCount,proto3" json:"alarm_count"`
  99. SilencePeriod int32 `protobuf:"varint,4,opt,name=silence_period,json=silencePeriod,proto3" json:"silence_period"`
  100. IsOn bool `protobuf:"varint,5,opt,name=is_on,json=isOn,proto3" json:"is_on"`
  101. ContinuePeriod int32 `protobuf:"varint,7,opt,name=continue_period,json=continuePeriod,proto3" json:"continue_period"`
  102. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  103. XXX_unrecognized []byte `json:"-"`
  104. XXX_sizecache int32 `json:"-"`
  105. }
  106. func (m *AlarmRuleAddRequest) Reset() { *m = AlarmRuleAddRequest{} }
  107. func (m *AlarmRuleAddRequest) String() string { return proto.CompactTextString(m) }
  108. func (*AlarmRuleAddRequest) ProtoMessage() {}
  109. func (*AlarmRuleAddRequest) Descriptor() ([]byte, []int) {
  110. return fileDescriptor_4a4142572412ce8e, []int{1}
  111. }
  112. func (m *AlarmRuleAddRequest) XXX_Unmarshal(b []byte) error {
  113. return xxx_messageInfo_AlarmRuleAddRequest.Unmarshal(m, b)
  114. }
  115. func (m *AlarmRuleAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  116. return xxx_messageInfo_AlarmRuleAddRequest.Marshal(b, m, deterministic)
  117. }
  118. func (m *AlarmRuleAddRequest) XXX_Merge(src proto.Message) {
  119. xxx_messageInfo_AlarmRuleAddRequest.Merge(m, src)
  120. }
  121. func (m *AlarmRuleAddRequest) XXX_Size() int {
  122. return xxx_messageInfo_AlarmRuleAddRequest.Size(m)
  123. }
  124. func (m *AlarmRuleAddRequest) XXX_DiscardUnknown() {
  125. xxx_messageInfo_AlarmRuleAddRequest.DiscardUnknown(m)
  126. }
  127. var xxx_messageInfo_AlarmRuleAddRequest proto.InternalMessageInfo
  128. func (m *AlarmRuleAddRequest) GetProjectId() int64 {
  129. if m != nil {
  130. return m.ProjectId
  131. }
  132. return 0
  133. }
  134. func (m *AlarmRuleAddRequest) GetSn() string {
  135. if m != nil {
  136. return m.Sn
  137. }
  138. return ""
  139. }
  140. func (m *AlarmRuleAddRequest) GetAlarmCount() int32 {
  141. if m != nil {
  142. return m.AlarmCount
  143. }
  144. return 0
  145. }
  146. func (m *AlarmRuleAddRequest) GetSilencePeriod() int32 {
  147. if m != nil {
  148. return m.SilencePeriod
  149. }
  150. return 0
  151. }
  152. func (m *AlarmRuleAddRequest) GetIsOn() bool {
  153. if m != nil {
  154. return m.IsOn
  155. }
  156. return false
  157. }
  158. func (m *AlarmRuleAddRequest) GetContinuePeriod() int32 {
  159. if m != nil {
  160. return m.ContinuePeriod
  161. }
  162. return 0
  163. }
  164. type AlarmRuleAddReply struct {
  165. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  166. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  167. XXX_unrecognized []byte `json:"-"`
  168. XXX_sizecache int32 `json:"-"`
  169. }
  170. func (m *AlarmRuleAddReply) Reset() { *m = AlarmRuleAddReply{} }
  171. func (m *AlarmRuleAddReply) String() string { return proto.CompactTextString(m) }
  172. func (*AlarmRuleAddReply) ProtoMessage() {}
  173. func (*AlarmRuleAddReply) Descriptor() ([]byte, []int) {
  174. return fileDescriptor_4a4142572412ce8e, []int{2}
  175. }
  176. func (m *AlarmRuleAddReply) XXX_Unmarshal(b []byte) error {
  177. return xxx_messageInfo_AlarmRuleAddReply.Unmarshal(m, b)
  178. }
  179. func (m *AlarmRuleAddReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  180. return xxx_messageInfo_AlarmRuleAddReply.Marshal(b, m, deterministic)
  181. }
  182. func (m *AlarmRuleAddReply) XXX_Merge(src proto.Message) {
  183. xxx_messageInfo_AlarmRuleAddReply.Merge(m, src)
  184. }
  185. func (m *AlarmRuleAddReply) XXX_Size() int {
  186. return xxx_messageInfo_AlarmRuleAddReply.Size(m)
  187. }
  188. func (m *AlarmRuleAddReply) XXX_DiscardUnknown() {
  189. xxx_messageInfo_AlarmRuleAddReply.DiscardUnknown(m)
  190. }
  191. var xxx_messageInfo_AlarmRuleAddReply proto.InternalMessageInfo
  192. func (m *AlarmRuleAddReply) GetId() int64 {
  193. if m != nil {
  194. return m.Id
  195. }
  196. return 0
  197. }
  198. type AlarmRuleListRequest struct {
  199. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  200. DeviceType string `protobuf:"bytes,2,opt,name=device_type,json=deviceType,proto3" json:"device_type"`
  201. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  202. XXX_unrecognized []byte `json:"-"`
  203. XXX_sizecache int32 `json:"-"`
  204. }
  205. func (m *AlarmRuleListRequest) Reset() { *m = AlarmRuleListRequest{} }
  206. func (m *AlarmRuleListRequest) String() string { return proto.CompactTextString(m) }
  207. func (*AlarmRuleListRequest) ProtoMessage() {}
  208. func (*AlarmRuleListRequest) Descriptor() ([]byte, []int) {
  209. return fileDescriptor_4a4142572412ce8e, []int{3}
  210. }
  211. func (m *AlarmRuleListRequest) XXX_Unmarshal(b []byte) error {
  212. return xxx_messageInfo_AlarmRuleListRequest.Unmarshal(m, b)
  213. }
  214. func (m *AlarmRuleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  215. return xxx_messageInfo_AlarmRuleListRequest.Marshal(b, m, deterministic)
  216. }
  217. func (m *AlarmRuleListRequest) XXX_Merge(src proto.Message) {
  218. xxx_messageInfo_AlarmRuleListRequest.Merge(m, src)
  219. }
  220. func (m *AlarmRuleListRequest) XXX_Size() int {
  221. return xxx_messageInfo_AlarmRuleListRequest.Size(m)
  222. }
  223. func (m *AlarmRuleListRequest) XXX_DiscardUnknown() {
  224. xxx_messageInfo_AlarmRuleListRequest.DiscardUnknown(m)
  225. }
  226. var xxx_messageInfo_AlarmRuleListRequest proto.InternalMessageInfo
  227. func (m *AlarmRuleListRequest) GetProjectId() int64 {
  228. if m != nil {
  229. return m.ProjectId
  230. }
  231. return 0
  232. }
  233. func (m *AlarmRuleListRequest) GetDeviceType() string {
  234. if m != nil {
  235. return m.DeviceType
  236. }
  237. return ""
  238. }
  239. type AlarmRuleListReply struct {
  240. Rule []*AlarmRule `protobuf:"bytes,1,rep,name=rule,proto3" json:"rule"`
  241. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  242. XXX_unrecognized []byte `json:"-"`
  243. XXX_sizecache int32 `json:"-"`
  244. }
  245. func (m *AlarmRuleListReply) Reset() { *m = AlarmRuleListReply{} }
  246. func (m *AlarmRuleListReply) String() string { return proto.CompactTextString(m) }
  247. func (*AlarmRuleListReply) ProtoMessage() {}
  248. func (*AlarmRuleListReply) Descriptor() ([]byte, []int) {
  249. return fileDescriptor_4a4142572412ce8e, []int{4}
  250. }
  251. func (m *AlarmRuleListReply) XXX_Unmarshal(b []byte) error {
  252. return xxx_messageInfo_AlarmRuleListReply.Unmarshal(m, b)
  253. }
  254. func (m *AlarmRuleListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  255. return xxx_messageInfo_AlarmRuleListReply.Marshal(b, m, deterministic)
  256. }
  257. func (m *AlarmRuleListReply) XXX_Merge(src proto.Message) {
  258. xxx_messageInfo_AlarmRuleListReply.Merge(m, src)
  259. }
  260. func (m *AlarmRuleListReply) XXX_Size() int {
  261. return xxx_messageInfo_AlarmRuleListReply.Size(m)
  262. }
  263. func (m *AlarmRuleListReply) XXX_DiscardUnknown() {
  264. xxx_messageInfo_AlarmRuleListReply.DiscardUnknown(m)
  265. }
  266. var xxx_messageInfo_AlarmRuleListReply proto.InternalMessageInfo
  267. func (m *AlarmRuleListReply) GetRule() []*AlarmRule {
  268. if m != nil {
  269. return m.Rule
  270. }
  271. return nil
  272. }
  273. type AlarmRuleDeleteRequest struct {
  274. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  275. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  276. XXX_unrecognized []byte `json:"-"`
  277. XXX_sizecache int32 `json:"-"`
  278. }
  279. func (m *AlarmRuleDeleteRequest) Reset() { *m = AlarmRuleDeleteRequest{} }
  280. func (m *AlarmRuleDeleteRequest) String() string { return proto.CompactTextString(m) }
  281. func (*AlarmRuleDeleteRequest) ProtoMessage() {}
  282. func (*AlarmRuleDeleteRequest) Descriptor() ([]byte, []int) {
  283. return fileDescriptor_4a4142572412ce8e, []int{5}
  284. }
  285. func (m *AlarmRuleDeleteRequest) XXX_Unmarshal(b []byte) error {
  286. return xxx_messageInfo_AlarmRuleDeleteRequest.Unmarshal(m, b)
  287. }
  288. func (m *AlarmRuleDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  289. return xxx_messageInfo_AlarmRuleDeleteRequest.Marshal(b, m, deterministic)
  290. }
  291. func (m *AlarmRuleDeleteRequest) XXX_Merge(src proto.Message) {
  292. xxx_messageInfo_AlarmRuleDeleteRequest.Merge(m, src)
  293. }
  294. func (m *AlarmRuleDeleteRequest) XXX_Size() int {
  295. return xxx_messageInfo_AlarmRuleDeleteRequest.Size(m)
  296. }
  297. func (m *AlarmRuleDeleteRequest) XXX_DiscardUnknown() {
  298. xxx_messageInfo_AlarmRuleDeleteRequest.DiscardUnknown(m)
  299. }
  300. var xxx_messageInfo_AlarmRuleDeleteRequest proto.InternalMessageInfo
  301. func (m *AlarmRuleDeleteRequest) GetId() int64 {
  302. if m != nil {
  303. return m.Id
  304. }
  305. return 0
  306. }
  307. type AlarmRuleDeleteReply struct {
  308. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  309. XXX_unrecognized []byte `json:"-"`
  310. XXX_sizecache int32 `json:"-"`
  311. }
  312. func (m *AlarmRuleDeleteReply) Reset() { *m = AlarmRuleDeleteReply{} }
  313. func (m *AlarmRuleDeleteReply) String() string { return proto.CompactTextString(m) }
  314. func (*AlarmRuleDeleteReply) ProtoMessage() {}
  315. func (*AlarmRuleDeleteReply) Descriptor() ([]byte, []int) {
  316. return fileDescriptor_4a4142572412ce8e, []int{6}
  317. }
  318. func (m *AlarmRuleDeleteReply) XXX_Unmarshal(b []byte) error {
  319. return xxx_messageInfo_AlarmRuleDeleteReply.Unmarshal(m, b)
  320. }
  321. func (m *AlarmRuleDeleteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  322. return xxx_messageInfo_AlarmRuleDeleteReply.Marshal(b, m, deterministic)
  323. }
  324. func (m *AlarmRuleDeleteReply) XXX_Merge(src proto.Message) {
  325. xxx_messageInfo_AlarmRuleDeleteReply.Merge(m, src)
  326. }
  327. func (m *AlarmRuleDeleteReply) XXX_Size() int {
  328. return xxx_messageInfo_AlarmRuleDeleteReply.Size(m)
  329. }
  330. func (m *AlarmRuleDeleteReply) XXX_DiscardUnknown() {
  331. xxx_messageInfo_AlarmRuleDeleteReply.DiscardUnknown(m)
  332. }
  333. var xxx_messageInfo_AlarmRuleDeleteReply proto.InternalMessageInfo
  334. type AlarmRuleOnOffRequest struct {
  335. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  336. IsOn bool `protobuf:"varint,2,opt,name=is_on,json=isOn,proto3" json:"is_on"`
  337. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  338. XXX_unrecognized []byte `json:"-"`
  339. XXX_sizecache int32 `json:"-"`
  340. }
  341. func (m *AlarmRuleOnOffRequest) Reset() { *m = AlarmRuleOnOffRequest{} }
  342. func (m *AlarmRuleOnOffRequest) String() string { return proto.CompactTextString(m) }
  343. func (*AlarmRuleOnOffRequest) ProtoMessage() {}
  344. func (*AlarmRuleOnOffRequest) Descriptor() ([]byte, []int) {
  345. return fileDescriptor_4a4142572412ce8e, []int{7}
  346. }
  347. func (m *AlarmRuleOnOffRequest) XXX_Unmarshal(b []byte) error {
  348. return xxx_messageInfo_AlarmRuleOnOffRequest.Unmarshal(m, b)
  349. }
  350. func (m *AlarmRuleOnOffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  351. return xxx_messageInfo_AlarmRuleOnOffRequest.Marshal(b, m, deterministic)
  352. }
  353. func (m *AlarmRuleOnOffRequest) XXX_Merge(src proto.Message) {
  354. xxx_messageInfo_AlarmRuleOnOffRequest.Merge(m, src)
  355. }
  356. func (m *AlarmRuleOnOffRequest) XXX_Size() int {
  357. return xxx_messageInfo_AlarmRuleOnOffRequest.Size(m)
  358. }
  359. func (m *AlarmRuleOnOffRequest) XXX_DiscardUnknown() {
  360. xxx_messageInfo_AlarmRuleOnOffRequest.DiscardUnknown(m)
  361. }
  362. var xxx_messageInfo_AlarmRuleOnOffRequest proto.InternalMessageInfo
  363. func (m *AlarmRuleOnOffRequest) GetId() int64 {
  364. if m != nil {
  365. return m.Id
  366. }
  367. return 0
  368. }
  369. func (m *AlarmRuleOnOffRequest) GetIsOn() bool {
  370. if m != nil {
  371. return m.IsOn
  372. }
  373. return false
  374. }
  375. type AlarmRuleOnOffReply struct {
  376. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  377. XXX_unrecognized []byte `json:"-"`
  378. XXX_sizecache int32 `json:"-"`
  379. }
  380. func (m *AlarmRuleOnOffReply) Reset() { *m = AlarmRuleOnOffReply{} }
  381. func (m *AlarmRuleOnOffReply) String() string { return proto.CompactTextString(m) }
  382. func (*AlarmRuleOnOffReply) ProtoMessage() {}
  383. func (*AlarmRuleOnOffReply) Descriptor() ([]byte, []int) {
  384. return fileDescriptor_4a4142572412ce8e, []int{8}
  385. }
  386. func (m *AlarmRuleOnOffReply) XXX_Unmarshal(b []byte) error {
  387. return xxx_messageInfo_AlarmRuleOnOffReply.Unmarshal(m, b)
  388. }
  389. func (m *AlarmRuleOnOffReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  390. return xxx_messageInfo_AlarmRuleOnOffReply.Marshal(b, m, deterministic)
  391. }
  392. func (m *AlarmRuleOnOffReply) XXX_Merge(src proto.Message) {
  393. xxx_messageInfo_AlarmRuleOnOffReply.Merge(m, src)
  394. }
  395. func (m *AlarmRuleOnOffReply) XXX_Size() int {
  396. return xxx_messageInfo_AlarmRuleOnOffReply.Size(m)
  397. }
  398. func (m *AlarmRuleOnOffReply) XXX_DiscardUnknown() {
  399. xxx_messageInfo_AlarmRuleOnOffReply.DiscardUnknown(m)
  400. }
  401. var xxx_messageInfo_AlarmRuleOnOffReply proto.InternalMessageInfo
  402. type AlarmRuleUpdateRequest struct {
  403. Rule *AlarmRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule"`
  404. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  405. XXX_unrecognized []byte `json:"-"`
  406. XXX_sizecache int32 `json:"-"`
  407. }
  408. func (m *AlarmRuleUpdateRequest) Reset() { *m = AlarmRuleUpdateRequest{} }
  409. func (m *AlarmRuleUpdateRequest) String() string { return proto.CompactTextString(m) }
  410. func (*AlarmRuleUpdateRequest) ProtoMessage() {}
  411. func (*AlarmRuleUpdateRequest) Descriptor() ([]byte, []int) {
  412. return fileDescriptor_4a4142572412ce8e, []int{9}
  413. }
  414. func (m *AlarmRuleUpdateRequest) XXX_Unmarshal(b []byte) error {
  415. return xxx_messageInfo_AlarmRuleUpdateRequest.Unmarshal(m, b)
  416. }
  417. func (m *AlarmRuleUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  418. return xxx_messageInfo_AlarmRuleUpdateRequest.Marshal(b, m, deterministic)
  419. }
  420. func (m *AlarmRuleUpdateRequest) XXX_Merge(src proto.Message) {
  421. xxx_messageInfo_AlarmRuleUpdateRequest.Merge(m, src)
  422. }
  423. func (m *AlarmRuleUpdateRequest) XXX_Size() int {
  424. return xxx_messageInfo_AlarmRuleUpdateRequest.Size(m)
  425. }
  426. func (m *AlarmRuleUpdateRequest) XXX_DiscardUnknown() {
  427. xxx_messageInfo_AlarmRuleUpdateRequest.DiscardUnknown(m)
  428. }
  429. var xxx_messageInfo_AlarmRuleUpdateRequest proto.InternalMessageInfo
  430. func (m *AlarmRuleUpdateRequest) GetRule() *AlarmRule {
  431. if m != nil {
  432. return m.Rule
  433. }
  434. return nil
  435. }
  436. type AlarmRuleUpdateReply struct {
  437. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  438. XXX_unrecognized []byte `json:"-"`
  439. XXX_sizecache int32 `json:"-"`
  440. }
  441. func (m *AlarmRuleUpdateReply) Reset() { *m = AlarmRuleUpdateReply{} }
  442. func (m *AlarmRuleUpdateReply) String() string { return proto.CompactTextString(m) }
  443. func (*AlarmRuleUpdateReply) ProtoMessage() {}
  444. func (*AlarmRuleUpdateReply) Descriptor() ([]byte, []int) {
  445. return fileDescriptor_4a4142572412ce8e, []int{10}
  446. }
  447. func (m *AlarmRuleUpdateReply) XXX_Unmarshal(b []byte) error {
  448. return xxx_messageInfo_AlarmRuleUpdateReply.Unmarshal(m, b)
  449. }
  450. func (m *AlarmRuleUpdateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  451. return xxx_messageInfo_AlarmRuleUpdateReply.Marshal(b, m, deterministic)
  452. }
  453. func (m *AlarmRuleUpdateReply) XXX_Merge(src proto.Message) {
  454. xxx_messageInfo_AlarmRuleUpdateReply.Merge(m, src)
  455. }
  456. func (m *AlarmRuleUpdateReply) XXX_Size() int {
  457. return xxx_messageInfo_AlarmRuleUpdateReply.Size(m)
  458. }
  459. func (m *AlarmRuleUpdateReply) XXX_DiscardUnknown() {
  460. xxx_messageInfo_AlarmRuleUpdateReply.DiscardUnknown(m)
  461. }
  462. var xxx_messageInfo_AlarmRuleUpdateReply proto.InternalMessageInfo
  463. type AlarmContact struct {
  464. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  465. ProjectId int64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  466. Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone"`
  467. Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email"`
  468. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  469. XXX_unrecognized []byte `json:"-"`
  470. XXX_sizecache int32 `json:"-"`
  471. }
  472. func (m *AlarmContact) Reset() { *m = AlarmContact{} }
  473. func (m *AlarmContact) String() string { return proto.CompactTextString(m) }
  474. func (*AlarmContact) ProtoMessage() {}
  475. func (*AlarmContact) Descriptor() ([]byte, []int) {
  476. return fileDescriptor_4a4142572412ce8e, []int{11}
  477. }
  478. func (m *AlarmContact) XXX_Unmarshal(b []byte) error {
  479. return xxx_messageInfo_AlarmContact.Unmarshal(m, b)
  480. }
  481. func (m *AlarmContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  482. return xxx_messageInfo_AlarmContact.Marshal(b, m, deterministic)
  483. }
  484. func (m *AlarmContact) XXX_Merge(src proto.Message) {
  485. xxx_messageInfo_AlarmContact.Merge(m, src)
  486. }
  487. func (m *AlarmContact) XXX_Size() int {
  488. return xxx_messageInfo_AlarmContact.Size(m)
  489. }
  490. func (m *AlarmContact) XXX_DiscardUnknown() {
  491. xxx_messageInfo_AlarmContact.DiscardUnknown(m)
  492. }
  493. var xxx_messageInfo_AlarmContact proto.InternalMessageInfo
  494. func (m *AlarmContact) GetId() int64 {
  495. if m != nil {
  496. return m.Id
  497. }
  498. return 0
  499. }
  500. func (m *AlarmContact) GetProjectId() int64 {
  501. if m != nil {
  502. return m.ProjectId
  503. }
  504. return 0
  505. }
  506. func (m *AlarmContact) GetPhone() string {
  507. if m != nil {
  508. return m.Phone
  509. }
  510. return ""
  511. }
  512. func (m *AlarmContact) GetEmail() string {
  513. if m != nil {
  514. return m.Email
  515. }
  516. return ""
  517. }
  518. type AlarmContactAddRequest struct {
  519. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  520. Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone"`
  521. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email"`
  522. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  523. XXX_unrecognized []byte `json:"-"`
  524. XXX_sizecache int32 `json:"-"`
  525. }
  526. func (m *AlarmContactAddRequest) Reset() { *m = AlarmContactAddRequest{} }
  527. func (m *AlarmContactAddRequest) String() string { return proto.CompactTextString(m) }
  528. func (*AlarmContactAddRequest) ProtoMessage() {}
  529. func (*AlarmContactAddRequest) Descriptor() ([]byte, []int) {
  530. return fileDescriptor_4a4142572412ce8e, []int{12}
  531. }
  532. func (m *AlarmContactAddRequest) XXX_Unmarshal(b []byte) error {
  533. return xxx_messageInfo_AlarmContactAddRequest.Unmarshal(m, b)
  534. }
  535. func (m *AlarmContactAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  536. return xxx_messageInfo_AlarmContactAddRequest.Marshal(b, m, deterministic)
  537. }
  538. func (m *AlarmContactAddRequest) XXX_Merge(src proto.Message) {
  539. xxx_messageInfo_AlarmContactAddRequest.Merge(m, src)
  540. }
  541. func (m *AlarmContactAddRequest) XXX_Size() int {
  542. return xxx_messageInfo_AlarmContactAddRequest.Size(m)
  543. }
  544. func (m *AlarmContactAddRequest) XXX_DiscardUnknown() {
  545. xxx_messageInfo_AlarmContactAddRequest.DiscardUnknown(m)
  546. }
  547. var xxx_messageInfo_AlarmContactAddRequest proto.InternalMessageInfo
  548. func (m *AlarmContactAddRequest) GetProjectId() int64 {
  549. if m != nil {
  550. return m.ProjectId
  551. }
  552. return 0
  553. }
  554. func (m *AlarmContactAddRequest) GetPhone() string {
  555. if m != nil {
  556. return m.Phone
  557. }
  558. return ""
  559. }
  560. func (m *AlarmContactAddRequest) GetEmail() string {
  561. if m != nil {
  562. return m.Email
  563. }
  564. return ""
  565. }
  566. type AlarmContactAddReply struct {
  567. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  568. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  569. XXX_unrecognized []byte `json:"-"`
  570. XXX_sizecache int32 `json:"-"`
  571. }
  572. func (m *AlarmContactAddReply) Reset() { *m = AlarmContactAddReply{} }
  573. func (m *AlarmContactAddReply) String() string { return proto.CompactTextString(m) }
  574. func (*AlarmContactAddReply) ProtoMessage() {}
  575. func (*AlarmContactAddReply) Descriptor() ([]byte, []int) {
  576. return fileDescriptor_4a4142572412ce8e, []int{13}
  577. }
  578. func (m *AlarmContactAddReply) XXX_Unmarshal(b []byte) error {
  579. return xxx_messageInfo_AlarmContactAddReply.Unmarshal(m, b)
  580. }
  581. func (m *AlarmContactAddReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  582. return xxx_messageInfo_AlarmContactAddReply.Marshal(b, m, deterministic)
  583. }
  584. func (m *AlarmContactAddReply) XXX_Merge(src proto.Message) {
  585. xxx_messageInfo_AlarmContactAddReply.Merge(m, src)
  586. }
  587. func (m *AlarmContactAddReply) XXX_Size() int {
  588. return xxx_messageInfo_AlarmContactAddReply.Size(m)
  589. }
  590. func (m *AlarmContactAddReply) XXX_DiscardUnknown() {
  591. xxx_messageInfo_AlarmContactAddReply.DiscardUnknown(m)
  592. }
  593. var xxx_messageInfo_AlarmContactAddReply proto.InternalMessageInfo
  594. func (m *AlarmContactAddReply) GetId() int64 {
  595. if m != nil {
  596. return m.Id
  597. }
  598. return 0
  599. }
  600. type AlarmContactListRequest struct {
  601. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  602. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  603. XXX_unrecognized []byte `json:"-"`
  604. XXX_sizecache int32 `json:"-"`
  605. }
  606. func (m *AlarmContactListRequest) Reset() { *m = AlarmContactListRequest{} }
  607. func (m *AlarmContactListRequest) String() string { return proto.CompactTextString(m) }
  608. func (*AlarmContactListRequest) ProtoMessage() {}
  609. func (*AlarmContactListRequest) Descriptor() ([]byte, []int) {
  610. return fileDescriptor_4a4142572412ce8e, []int{14}
  611. }
  612. func (m *AlarmContactListRequest) XXX_Unmarshal(b []byte) error {
  613. return xxx_messageInfo_AlarmContactListRequest.Unmarshal(m, b)
  614. }
  615. func (m *AlarmContactListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  616. return xxx_messageInfo_AlarmContactListRequest.Marshal(b, m, deterministic)
  617. }
  618. func (m *AlarmContactListRequest) XXX_Merge(src proto.Message) {
  619. xxx_messageInfo_AlarmContactListRequest.Merge(m, src)
  620. }
  621. func (m *AlarmContactListRequest) XXX_Size() int {
  622. return xxx_messageInfo_AlarmContactListRequest.Size(m)
  623. }
  624. func (m *AlarmContactListRequest) XXX_DiscardUnknown() {
  625. xxx_messageInfo_AlarmContactListRequest.DiscardUnknown(m)
  626. }
  627. var xxx_messageInfo_AlarmContactListRequest proto.InternalMessageInfo
  628. func (m *AlarmContactListRequest) GetProjectId() int64 {
  629. if m != nil {
  630. return m.ProjectId
  631. }
  632. return 0
  633. }
  634. type AlarmContactListReply struct {
  635. Contacts []*AlarmContact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts"`
  636. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  637. XXX_unrecognized []byte `json:"-"`
  638. XXX_sizecache int32 `json:"-"`
  639. }
  640. func (m *AlarmContactListReply) Reset() { *m = AlarmContactListReply{} }
  641. func (m *AlarmContactListReply) String() string { return proto.CompactTextString(m) }
  642. func (*AlarmContactListReply) ProtoMessage() {}
  643. func (*AlarmContactListReply) Descriptor() ([]byte, []int) {
  644. return fileDescriptor_4a4142572412ce8e, []int{15}
  645. }
  646. func (m *AlarmContactListReply) XXX_Unmarshal(b []byte) error {
  647. return xxx_messageInfo_AlarmContactListReply.Unmarshal(m, b)
  648. }
  649. func (m *AlarmContactListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  650. return xxx_messageInfo_AlarmContactListReply.Marshal(b, m, deterministic)
  651. }
  652. func (m *AlarmContactListReply) XXX_Merge(src proto.Message) {
  653. xxx_messageInfo_AlarmContactListReply.Merge(m, src)
  654. }
  655. func (m *AlarmContactListReply) XXX_Size() int {
  656. return xxx_messageInfo_AlarmContactListReply.Size(m)
  657. }
  658. func (m *AlarmContactListReply) XXX_DiscardUnknown() {
  659. xxx_messageInfo_AlarmContactListReply.DiscardUnknown(m)
  660. }
  661. var xxx_messageInfo_AlarmContactListReply proto.InternalMessageInfo
  662. func (m *AlarmContactListReply) GetContacts() []*AlarmContact {
  663. if m != nil {
  664. return m.Contacts
  665. }
  666. return nil
  667. }
  668. type AlarmContactDeleteRequest struct {
  669. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  670. Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id"`
  671. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  672. XXX_unrecognized []byte `json:"-"`
  673. XXX_sizecache int32 `json:"-"`
  674. }
  675. func (m *AlarmContactDeleteRequest) Reset() { *m = AlarmContactDeleteRequest{} }
  676. func (m *AlarmContactDeleteRequest) String() string { return proto.CompactTextString(m) }
  677. func (*AlarmContactDeleteRequest) ProtoMessage() {}
  678. func (*AlarmContactDeleteRequest) Descriptor() ([]byte, []int) {
  679. return fileDescriptor_4a4142572412ce8e, []int{16}
  680. }
  681. func (m *AlarmContactDeleteRequest) XXX_Unmarshal(b []byte) error {
  682. return xxx_messageInfo_AlarmContactDeleteRequest.Unmarshal(m, b)
  683. }
  684. func (m *AlarmContactDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  685. return xxx_messageInfo_AlarmContactDeleteRequest.Marshal(b, m, deterministic)
  686. }
  687. func (m *AlarmContactDeleteRequest) XXX_Merge(src proto.Message) {
  688. xxx_messageInfo_AlarmContactDeleteRequest.Merge(m, src)
  689. }
  690. func (m *AlarmContactDeleteRequest) XXX_Size() int {
  691. return xxx_messageInfo_AlarmContactDeleteRequest.Size(m)
  692. }
  693. func (m *AlarmContactDeleteRequest) XXX_DiscardUnknown() {
  694. xxx_messageInfo_AlarmContactDeleteRequest.DiscardUnknown(m)
  695. }
  696. var xxx_messageInfo_AlarmContactDeleteRequest proto.InternalMessageInfo
  697. func (m *AlarmContactDeleteRequest) GetProjectId() int64 {
  698. if m != nil {
  699. return m.ProjectId
  700. }
  701. return 0
  702. }
  703. func (m *AlarmContactDeleteRequest) GetId() int64 {
  704. if m != nil {
  705. return m.Id
  706. }
  707. return 0
  708. }
  709. type AlarmContactDeleteReply struct {
  710. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  711. XXX_unrecognized []byte `json:"-"`
  712. XXX_sizecache int32 `json:"-"`
  713. }
  714. func (m *AlarmContactDeleteReply) Reset() { *m = AlarmContactDeleteReply{} }
  715. func (m *AlarmContactDeleteReply) String() string { return proto.CompactTextString(m) }
  716. func (*AlarmContactDeleteReply) ProtoMessage() {}
  717. func (*AlarmContactDeleteReply) Descriptor() ([]byte, []int) {
  718. return fileDescriptor_4a4142572412ce8e, []int{17}
  719. }
  720. func (m *AlarmContactDeleteReply) XXX_Unmarshal(b []byte) error {
  721. return xxx_messageInfo_AlarmContactDeleteReply.Unmarshal(m, b)
  722. }
  723. func (m *AlarmContactDeleteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  724. return xxx_messageInfo_AlarmContactDeleteReply.Marshal(b, m, deterministic)
  725. }
  726. func (m *AlarmContactDeleteReply) XXX_Merge(src proto.Message) {
  727. xxx_messageInfo_AlarmContactDeleteReply.Merge(m, src)
  728. }
  729. func (m *AlarmContactDeleteReply) XXX_Size() int {
  730. return xxx_messageInfo_AlarmContactDeleteReply.Size(m)
  731. }
  732. func (m *AlarmContactDeleteReply) XXX_DiscardUnknown() {
  733. xxx_messageInfo_AlarmContactDeleteReply.DiscardUnknown(m)
  734. }
  735. var xxx_messageInfo_AlarmContactDeleteReply proto.InternalMessageInfo
  736. type AlarmAddRequest struct {
  737. // 项目id
  738. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  739. // 设备唯一编号
  740. Sn string `protobuf:"bytes,2,opt,name=sn,proto3" json:"sn"`
  741. // 告警原因
  742. AlarmReason string `protobuf:"bytes,3,opt,name=alarm_reason,json=alarmReason,proto3" json:"alarm_reason"`
  743. // 告警编码
  744. AlarmCode string `protobuf:"bytes,4,opt,name=alarm_code,json=alarmCode,proto3" json:"alarm_code"`
  745. // 告警时间
  746. Date string `protobuf:"bytes,5,opt,name=date,proto3" json:"date"`
  747. // 设备名
  748. DeviceName string `protobuf:"bytes,6,opt,name=device_name,json=deviceName,proto3" json:"device_name"`
  749. // 设备类型 eg:扬尘设备
  750. DeviceType string `protobuf:"bytes,7,opt,name=device_type,json=deviceType,proto3" json:"device_type"`
  751. DeviceCode int32 `protobuf:"varint,8,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  752. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  753. XXX_unrecognized []byte `json:"-"`
  754. XXX_sizecache int32 `json:"-"`
  755. }
  756. func (m *AlarmAddRequest) Reset() { *m = AlarmAddRequest{} }
  757. func (m *AlarmAddRequest) String() string { return proto.CompactTextString(m) }
  758. func (*AlarmAddRequest) ProtoMessage() {}
  759. func (*AlarmAddRequest) Descriptor() ([]byte, []int) {
  760. return fileDescriptor_4a4142572412ce8e, []int{18}
  761. }
  762. func (m *AlarmAddRequest) XXX_Unmarshal(b []byte) error {
  763. return xxx_messageInfo_AlarmAddRequest.Unmarshal(m, b)
  764. }
  765. func (m *AlarmAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  766. return xxx_messageInfo_AlarmAddRequest.Marshal(b, m, deterministic)
  767. }
  768. func (m *AlarmAddRequest) XXX_Merge(src proto.Message) {
  769. xxx_messageInfo_AlarmAddRequest.Merge(m, src)
  770. }
  771. func (m *AlarmAddRequest) XXX_Size() int {
  772. return xxx_messageInfo_AlarmAddRequest.Size(m)
  773. }
  774. func (m *AlarmAddRequest) XXX_DiscardUnknown() {
  775. xxx_messageInfo_AlarmAddRequest.DiscardUnknown(m)
  776. }
  777. var xxx_messageInfo_AlarmAddRequest proto.InternalMessageInfo
  778. func (m *AlarmAddRequest) GetProjectId() int64 {
  779. if m != nil {
  780. return m.ProjectId
  781. }
  782. return 0
  783. }
  784. func (m *AlarmAddRequest) GetSn() string {
  785. if m != nil {
  786. return m.Sn
  787. }
  788. return ""
  789. }
  790. func (m *AlarmAddRequest) GetAlarmReason() string {
  791. if m != nil {
  792. return m.AlarmReason
  793. }
  794. return ""
  795. }
  796. func (m *AlarmAddRequest) GetAlarmCode() string {
  797. if m != nil {
  798. return m.AlarmCode
  799. }
  800. return ""
  801. }
  802. func (m *AlarmAddRequest) GetDate() string {
  803. if m != nil {
  804. return m.Date
  805. }
  806. return ""
  807. }
  808. func (m *AlarmAddRequest) GetDeviceName() string {
  809. if m != nil {
  810. return m.DeviceName
  811. }
  812. return ""
  813. }
  814. func (m *AlarmAddRequest) GetDeviceType() string {
  815. if m != nil {
  816. return m.DeviceType
  817. }
  818. return ""
  819. }
  820. func (m *AlarmAddRequest) GetDeviceCode() int32 {
  821. if m != nil {
  822. return m.DeviceCode
  823. }
  824. return 0
  825. }
  826. type AlarmAddReply struct {
  827. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  828. XXX_unrecognized []byte `json:"-"`
  829. XXX_sizecache int32 `json:"-"`
  830. }
  831. func (m *AlarmAddReply) Reset() { *m = AlarmAddReply{} }
  832. func (m *AlarmAddReply) String() string { return proto.CompactTextString(m) }
  833. func (*AlarmAddReply) ProtoMessage() {}
  834. func (*AlarmAddReply) Descriptor() ([]byte, []int) {
  835. return fileDescriptor_4a4142572412ce8e, []int{19}
  836. }
  837. func (m *AlarmAddReply) XXX_Unmarshal(b []byte) error {
  838. return xxx_messageInfo_AlarmAddReply.Unmarshal(m, b)
  839. }
  840. func (m *AlarmAddReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  841. return xxx_messageInfo_AlarmAddReply.Marshal(b, m, deterministic)
  842. }
  843. func (m *AlarmAddReply) XXX_Merge(src proto.Message) {
  844. xxx_messageInfo_AlarmAddReply.Merge(m, src)
  845. }
  846. func (m *AlarmAddReply) XXX_Size() int {
  847. return xxx_messageInfo_AlarmAddReply.Size(m)
  848. }
  849. func (m *AlarmAddReply) XXX_DiscardUnknown() {
  850. xxx_messageInfo_AlarmAddReply.DiscardUnknown(m)
  851. }
  852. var xxx_messageInfo_AlarmAddReply proto.InternalMessageInfo
  853. type Alarm struct {
  854. ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name"`
  855. Sn string `protobuf:"bytes,2,opt,name=sn,proto3" json:"sn"`
  856. // 告警原因
  857. AlarmReason string `protobuf:"bytes,3,opt,name=alarm_reason,json=alarmReason,proto3" json:"alarm_reason"`
  858. // 告警编码
  859. AlarmCode int32 `protobuf:"varint,4,opt,name=alarm_code,json=alarmCode,proto3" json:"alarm_code"`
  860. // 告警时间
  861. Date string `protobuf:"bytes,5,opt,name=date,proto3" json:"date"`
  862. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  863. XXX_unrecognized []byte `json:"-"`
  864. XXX_sizecache int32 `json:"-"`
  865. }
  866. func (m *Alarm) Reset() { *m = Alarm{} }
  867. func (m *Alarm) String() string { return proto.CompactTextString(m) }
  868. func (*Alarm) ProtoMessage() {}
  869. func (*Alarm) Descriptor() ([]byte, []int) {
  870. return fileDescriptor_4a4142572412ce8e, []int{20}
  871. }
  872. func (m *Alarm) XXX_Unmarshal(b []byte) error {
  873. return xxx_messageInfo_Alarm.Unmarshal(m, b)
  874. }
  875. func (m *Alarm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  876. return xxx_messageInfo_Alarm.Marshal(b, m, deterministic)
  877. }
  878. func (m *Alarm) XXX_Merge(src proto.Message) {
  879. xxx_messageInfo_Alarm.Merge(m, src)
  880. }
  881. func (m *Alarm) XXX_Size() int {
  882. return xxx_messageInfo_Alarm.Size(m)
  883. }
  884. func (m *Alarm) XXX_DiscardUnknown() {
  885. xxx_messageInfo_Alarm.DiscardUnknown(m)
  886. }
  887. var xxx_messageInfo_Alarm proto.InternalMessageInfo
  888. func (m *Alarm) GetProjectName() string {
  889. if m != nil {
  890. return m.ProjectName
  891. }
  892. return ""
  893. }
  894. func (m *Alarm) GetSn() string {
  895. if m != nil {
  896. return m.Sn
  897. }
  898. return ""
  899. }
  900. func (m *Alarm) GetAlarmReason() string {
  901. if m != nil {
  902. return m.AlarmReason
  903. }
  904. return ""
  905. }
  906. func (m *Alarm) GetAlarmCode() int32 {
  907. if m != nil {
  908. return m.AlarmCode
  909. }
  910. return 0
  911. }
  912. func (m *Alarm) GetDate() string {
  913. if m != nil {
  914. return m.Date
  915. }
  916. return ""
  917. }
  918. func init() {
  919. proto.RegisterType((*AlarmRule)(nil), "v1.AlarmRule")
  920. proto.RegisterType((*AlarmRuleAddRequest)(nil), "v1.AlarmRuleAddRequest")
  921. proto.RegisterType((*AlarmRuleAddReply)(nil), "v1.AlarmRuleAddReply")
  922. proto.RegisterType((*AlarmRuleListRequest)(nil), "v1.AlarmRuleListRequest")
  923. proto.RegisterType((*AlarmRuleListReply)(nil), "v1.AlarmRuleListReply")
  924. proto.RegisterType((*AlarmRuleDeleteRequest)(nil), "v1.AlarmRuleDeleteRequest")
  925. proto.RegisterType((*AlarmRuleDeleteReply)(nil), "v1.AlarmRuleDeleteReply")
  926. proto.RegisterType((*AlarmRuleOnOffRequest)(nil), "v1.AlarmRuleOnOffRequest")
  927. proto.RegisterType((*AlarmRuleOnOffReply)(nil), "v1.AlarmRuleOnOffReply")
  928. proto.RegisterType((*AlarmRuleUpdateRequest)(nil), "v1.AlarmRuleUpdateRequest")
  929. proto.RegisterType((*AlarmRuleUpdateReply)(nil), "v1.AlarmRuleUpdateReply")
  930. proto.RegisterType((*AlarmContact)(nil), "v1.AlarmContact")
  931. proto.RegisterType((*AlarmContactAddRequest)(nil), "v1.AlarmContactAddRequest")
  932. proto.RegisterType((*AlarmContactAddReply)(nil), "v1.AlarmContactAddReply")
  933. proto.RegisterType((*AlarmContactListRequest)(nil), "v1.AlarmContactListRequest")
  934. proto.RegisterType((*AlarmContactListReply)(nil), "v1.AlarmContactListReply")
  935. proto.RegisterType((*AlarmContactDeleteRequest)(nil), "v1.AlarmContactDeleteRequest")
  936. proto.RegisterType((*AlarmContactDeleteReply)(nil), "v1.AlarmContactDeleteReply")
  937. proto.RegisterType((*AlarmAddRequest)(nil), "v1.AlarmAddRequest")
  938. proto.RegisterType((*AlarmAddReply)(nil), "v1.AlarmAddReply")
  939. proto.RegisterType((*Alarm)(nil), "v1.Alarm")
  940. }
  941. func init() {
  942. proto.RegisterFile("alarm.proto", fileDescriptor_4a4142572412ce8e)
  943. }
  944. var fileDescriptor_4a4142572412ce8e = []byte{
  945. // 614 bytes of a gzipped FileDescriptorProto
  946. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4d, 0x6f, 0xd3, 0x40,
  947. 0x10, 0xd5, 0x3a, 0x71, 0x5b, 0x4f, 0x9a, 0x04, 0x9c, 0xa6, 0xb8, 0x07, 0xd4, 0xd4, 0x08, 0xf0,
  948. 0x01, 0x52, 0x05, 0x0e, 0x20, 0xc1, 0x25, 0x7c, 0x1c, 0x40, 0x88, 0xa0, 0x15, 0x70, 0xe0, 0x12,
  949. 0xb9, 0xf6, 0x54, 0x2c, 0x72, 0x76, 0x8d, 0xed, 0x04, 0xe5, 0x5f, 0xf0, 0xbb, 0x38, 0xf1, 0x77,
  950. 0xb8, 0xa1, 0x5d, 0xaf, 0x9d, 0x4d, 0x68, 0xd5, 0x08, 0x71, 0xe0, 0x16, 0xbf, 0x9d, 0x9d, 0x37,
  951. 0x6f, 0xe6, 0xed, 0x04, 0x5a, 0x61, 0x12, 0x66, 0xb3, 0x61, 0x9a, 0x89, 0x42, 0xb8, 0xd6, 0x62,
  952. 0xe4, 0xff, 0x24, 0xe0, 0x8c, 0x25, 0x46, 0xe7, 0x09, 0xba, 0x37, 0x01, 0xd2, 0x4c, 0x7c, 0xc1,
  953. 0xa8, 0x98, 0xb2, 0xd8, 0x23, 0x03, 0x12, 0x34, 0xa8, 0xa3, 0x91, 0x57, 0xb1, 0xdb, 0x01, 0x2b,
  954. 0xe7, 0x9e, 0x35, 0x20, 0x81, 0x43, 0xad, 0x9c, 0xbb, 0xc7, 0x3a, 0xdf, 0x34, 0x12, 0x73, 0x5e,
  955. 0x78, 0x8d, 0x01, 0x09, 0x6c, 0x0a, 0x0a, 0x7a, 0x2e, 0x11, 0xf7, 0x36, 0x74, 0x72, 0x96, 0x20,
  956. 0x8f, 0x70, 0x9a, 0x62, 0xc6, 0x44, 0xec, 0x35, 0x55, 0x4c, 0x5b, 0xa3, 0xef, 0x14, 0xe8, 0xf6,
  957. 0xc0, 0x66, 0xf9, 0x54, 0x70, 0xcf, 0x1e, 0x90, 0x60, 0x8f, 0x36, 0x59, 0x3e, 0xe1, 0x92, 0x8c,
  958. 0xc5, 0xde, 0x8e, 0xaa, 0xc1, 0x62, 0xb1, 0x7b, 0x17, 0xba, 0x91, 0xe0, 0x05, 0xe3, 0xf3, 0x3a,
  959. 0xd9, 0xae, 0x4a, 0xd6, 0xa9, 0xe0, 0x32, 0x9b, 0xff, 0x83, 0x40, 0xaf, 0x96, 0x34, 0x8e, 0x63,
  960. 0x8a, 0x5f, 0xe7, 0x98, 0x17, 0xff, 0x95, 0xb8, 0xad, 0xc5, 0xdc, 0x82, 0xeb, 0xeb, 0x5a, 0xd2,
  961. 0x64, 0xa9, 0x5b, 0x43, 0xaa, 0xd6, 0xf8, 0x1f, 0xe1, 0xa0, 0x0e, 0x7a, 0xc3, 0xf2, 0x62, 0x4b,
  962. 0xc5, 0xc7, 0xd0, 0x8a, 0x71, 0xc1, 0x22, 0x9c, 0x16, 0xcb, 0x14, 0xb5, 0x74, 0x28, 0xa1, 0xf7,
  963. 0xcb, 0x14, 0xfd, 0x47, 0xe0, 0x6e, 0xe4, 0x95, 0xec, 0x27, 0xd0, 0xcc, 0xe6, 0x09, 0x7a, 0x64,
  964. 0xd0, 0x08, 0x5a, 0x0f, 0xda, 0xc3, 0xc5, 0x68, 0x58, 0x47, 0x51, 0x75, 0xe4, 0x07, 0x70, 0x58,
  965. 0x43, 0x2f, 0x30, 0xc1, 0x02, 0xab, 0x92, 0x36, 0x4b, 0x3f, 0x34, 0x4a, 0xaf, 0x22, 0xd3, 0x64,
  966. 0xe9, 0x3f, 0x85, 0x7e, 0x8d, 0x4f, 0xf8, 0xe4, 0xfc, 0xfc, 0x92, 0x04, 0xab, 0xf6, 0x5a, 0xab,
  967. 0xf6, 0xfa, 0x7d, 0xc3, 0x01, 0xfa, 0xb6, 0x4c, 0xfa, 0xc4, 0x28, 0xeb, 0x43, 0x1a, 0x87, 0xab,
  968. 0xb2, 0x56, 0x9a, 0xc8, 0x65, 0x9a, 0xcc, 0x4a, 0xab, 0xcb, 0x32, 0x29, 0x83, 0xfd, 0x71, 0x69,
  969. 0x0a, 0x5e, 0x84, 0xd1, 0x9f, 0x05, 0xae, 0x0f, 0xc1, 0xda, 0x1c, 0xc2, 0x01, 0xd8, 0xe9, 0x67,
  970. 0xc1, 0x51, 0x19, 0xcc, 0xa1, 0xe5, 0x87, 0x44, 0x71, 0x16, 0xb2, 0x44, 0x59, 0xca, 0xa1, 0xe5,
  971. 0x87, 0x1f, 0xe9, 0xfa, 0x35, 0xd5, 0xf6, 0xde, 0xae, 0x49, 0xac, 0x0b, 0x49, 0x1a, 0x26, 0xc9,
  972. 0x1d, 0xad, 0xd3, 0x24, 0xb9, 0xc8, 0x74, 0x8f, 0xe1, 0x86, 0x19, 0xb7, 0xbd, 0xef, 0xfc, 0x97,
  973. 0x7a, 0xb6, 0x6b, 0x37, 0x25, 0xc5, 0x3d, 0xd8, 0x8b, 0x4a, 0x2c, 0xd7, 0xee, 0xba, 0x56, 0x4f,
  974. 0x42, 0x07, 0xd3, 0x3a, 0xc2, 0x7f, 0x0d, 0x47, 0xe6, 0xc9, 0xba, 0xcf, 0xae, 0x7e, 0xec, 0xf5,
  975. 0x30, 0xa4, 0x98, 0xa3, 0x75, 0x31, 0xa6, 0x13, 0x7f, 0x11, 0xe8, 0xaa, 0xb3, 0xbf, 0x5f, 0x25,
  976. 0x27, 0xb0, 0x5f, 0xae, 0x92, 0x0c, 0xc3, 0x5c, 0x70, 0xdd, 0xef, 0x72, 0xbd, 0x50, 0x05, 0xc9,
  977. 0x8c, 0xd5, 0xb6, 0x89, 0x51, 0x4f, 0xdd, 0xd1, 0xcb, 0x26, 0x46, 0xd7, 0x85, 0xa6, 0x74, 0x9c,
  978. 0xda, 0x21, 0x0e, 0x55, 0xbf, 0x8d, 0xe7, 0xcb, 0xc3, 0x19, 0xaa, 0x4d, 0x59, 0x3f, 0xdf, 0xb7,
  979. 0xe1, 0x0c, 0x37, 0xdf, 0xf7, 0xee, 0xe6, 0xfb, 0x36, 0x02, 0x14, 0xeb, 0x5e, 0xb9, 0xe2, 0x4a,
  980. 0x48, 0xd2, 0xfa, 0x5d, 0x68, 0xaf, 0xa4, 0xcb, 0x66, 0x7c, 0x27, 0x60, 0x2b, 0x44, 0x6a, 0xaa,
  981. 0x5a, 0xa0, 0xe8, 0x49, 0xa9, 0x49, 0x63, 0x8a, 0xff, 0x9f, 0xb4, 0xc1, 0xbe, 0xa2, 0x0d, 0xcf,
  982. 0xfa, 0x9f, 0x7a, 0x85, 0xf8, 0x86, 0xd9, 0xfd, 0x99, 0xe0, 0xac, 0x10, 0xd9, 0x69, 0x7a, 0x76,
  983. 0xba, 0x18, 0x9d, 0xed, 0xa8, 0xff, 0xb8, 0x87, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x70, 0x53,
  984. 0xbe, 0xb0, 0xf2, 0x06, 0x00, 0x00,
  985. }