alarm.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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 AlarmAddRequest struct {
  20. // 项目id
  21. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  22. // 设备唯一编号
  23. Sn string `protobuf:"bytes,2,opt,name=sn,proto3" json:"sn"`
  24. // 告警原因
  25. AlarmReason string `protobuf:"bytes,3,opt,name=alarm_reason,json=alarmReason,proto3" json:"alarm_reason"`
  26. // 告警编码
  27. AlarmCode string `protobuf:"bytes,4,opt,name=alarm_code,json=alarmCode,proto3" json:"alarm_code"`
  28. // 告警时间
  29. Date string `protobuf:"bytes,5,opt,name=date,proto3" json:"date"`
  30. // 设备名
  31. DeviceName string `protobuf:"bytes,6,opt,name=device_name,json=deviceName,proto3" json:"device_name"`
  32. // 设备类型 eg:扬尘设备
  33. DeviceType string `protobuf:"bytes,7,opt,name=device_type,json=deviceType,proto3" json:"device_type"`
  34. DeviceCode int32 `protobuf:"varint,8,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  35. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  36. XXX_unrecognized []byte `json:"-"`
  37. XXX_sizecache int32 `json:"-"`
  38. }
  39. func (m *AlarmAddRequest) Reset() { *m = AlarmAddRequest{} }
  40. func (m *AlarmAddRequest) String() string { return proto.CompactTextString(m) }
  41. func (*AlarmAddRequest) ProtoMessage() {}
  42. func (*AlarmAddRequest) Descriptor() ([]byte, []int) {
  43. return fileDescriptor_4a4142572412ce8e, []int{0}
  44. }
  45. func (m *AlarmAddRequest) XXX_Unmarshal(b []byte) error {
  46. return xxx_messageInfo_AlarmAddRequest.Unmarshal(m, b)
  47. }
  48. func (m *AlarmAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  49. return xxx_messageInfo_AlarmAddRequest.Marshal(b, m, deterministic)
  50. }
  51. func (m *AlarmAddRequest) XXX_Merge(src proto.Message) {
  52. xxx_messageInfo_AlarmAddRequest.Merge(m, src)
  53. }
  54. func (m *AlarmAddRequest) XXX_Size() int {
  55. return xxx_messageInfo_AlarmAddRequest.Size(m)
  56. }
  57. func (m *AlarmAddRequest) XXX_DiscardUnknown() {
  58. xxx_messageInfo_AlarmAddRequest.DiscardUnknown(m)
  59. }
  60. var xxx_messageInfo_AlarmAddRequest proto.InternalMessageInfo
  61. func (m *AlarmAddRequest) GetProjectId() int64 {
  62. if m != nil {
  63. return m.ProjectId
  64. }
  65. return 0
  66. }
  67. func (m *AlarmAddRequest) GetSn() string {
  68. if m != nil {
  69. return m.Sn
  70. }
  71. return ""
  72. }
  73. func (m *AlarmAddRequest) GetAlarmReason() string {
  74. if m != nil {
  75. return m.AlarmReason
  76. }
  77. return ""
  78. }
  79. func (m *AlarmAddRequest) GetAlarmCode() string {
  80. if m != nil {
  81. return m.AlarmCode
  82. }
  83. return ""
  84. }
  85. func (m *AlarmAddRequest) GetDate() string {
  86. if m != nil {
  87. return m.Date
  88. }
  89. return ""
  90. }
  91. func (m *AlarmAddRequest) GetDeviceName() string {
  92. if m != nil {
  93. return m.DeviceName
  94. }
  95. return ""
  96. }
  97. func (m *AlarmAddRequest) GetDeviceType() string {
  98. if m != nil {
  99. return m.DeviceType
  100. }
  101. return ""
  102. }
  103. func (m *AlarmAddRequest) GetDeviceCode() int32 {
  104. if m != nil {
  105. return m.DeviceCode
  106. }
  107. return 0
  108. }
  109. type AlarmAddReply struct {
  110. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  111. XXX_unrecognized []byte `json:"-"`
  112. XXX_sizecache int32 `json:"-"`
  113. }
  114. func (m *AlarmAddReply) Reset() { *m = AlarmAddReply{} }
  115. func (m *AlarmAddReply) String() string { return proto.CompactTextString(m) }
  116. func (*AlarmAddReply) ProtoMessage() {}
  117. func (*AlarmAddReply) Descriptor() ([]byte, []int) {
  118. return fileDescriptor_4a4142572412ce8e, []int{1}
  119. }
  120. func (m *AlarmAddReply) XXX_Unmarshal(b []byte) error {
  121. return xxx_messageInfo_AlarmAddReply.Unmarshal(m, b)
  122. }
  123. func (m *AlarmAddReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  124. return xxx_messageInfo_AlarmAddReply.Marshal(b, m, deterministic)
  125. }
  126. func (m *AlarmAddReply) XXX_Merge(src proto.Message) {
  127. xxx_messageInfo_AlarmAddReply.Merge(m, src)
  128. }
  129. func (m *AlarmAddReply) XXX_Size() int {
  130. return xxx_messageInfo_AlarmAddReply.Size(m)
  131. }
  132. func (m *AlarmAddReply) XXX_DiscardUnknown() {
  133. xxx_messageInfo_AlarmAddReply.DiscardUnknown(m)
  134. }
  135. var xxx_messageInfo_AlarmAddReply proto.InternalMessageInfo
  136. func init() {
  137. proto.RegisterType((*AlarmAddRequest)(nil), "v1.AlarmAddRequest")
  138. proto.RegisterType((*AlarmAddReply)(nil), "v1.AlarmAddReply")
  139. }
  140. func init() {
  141. proto.RegisterFile("alarm.proto", fileDescriptor_4a4142572412ce8e)
  142. }
  143. var fileDescriptor_4a4142572412ce8e = []byte{
  144. // 233 bytes of a gzipped FileDescriptorProto
  145. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0xbd, 0x4e, 0xc3, 0x30,
  146. 0x14, 0x85, 0xe5, 0xf4, 0x07, 0x72, 0x0b, 0x54, 0x98, 0xc5, 0x0b, 0x22, 0x74, 0xca, 0x02, 0x55,
  147. 0xc5, 0x13, 0x14, 0x26, 0x16, 0x86, 0x88, 0x89, 0x25, 0x72, 0x73, 0xef, 0x50, 0x14, 0xff, 0x60,
  148. 0x9b, 0x48, 0x79, 0x74, 0x36, 0x94, 0x1b, 0x50, 0xb3, 0x59, 0xdf, 0xf9, 0x74, 0x8e, 0x6d, 0x58,
  149. 0xe9, 0x56, 0x07, 0xf3, 0xe8, 0x83, 0x4b, 0x4e, 0x66, 0xdd, 0x6e, 0xf3, 0x23, 0x60, 0xbd, 0x1f,
  150. 0xd8, 0x1e, 0xb1, 0xa2, 0xaf, 0x6f, 0x8a, 0x49, 0xde, 0x02, 0xf8, 0xe0, 0x3e, 0xa9, 0x49, 0xf5,
  151. 0x11, 0x95, 0x28, 0x44, 0x39, 0xab, 0xf2, 0x3f, 0xf2, 0x8a, 0xf2, 0x0a, 0xb2, 0x68, 0x55, 0x56,
  152. 0x88, 0x32, 0xaf, 0xb2, 0x68, 0xe5, 0x3d, 0x5c, 0x70, 0x6b, 0x1d, 0x48, 0x47, 0x67, 0xd5, 0x8c,
  153. 0x93, 0x71, 0xa9, 0x62, 0x34, 0x34, 0x8e, 0x4a, 0xe3, 0x90, 0xd4, 0x9c, 0x85, 0x9c, 0xc9, 0x8b,
  154. 0x43, 0x92, 0x12, 0xe6, 0xa8, 0x13, 0xa9, 0x05, 0x07, 0x7c, 0x96, 0x77, 0xb0, 0x42, 0xea, 0x8e,
  155. 0x0d, 0xd5, 0x56, 0x1b, 0x52, 0x4b, 0x8e, 0x60, 0x44, 0x6f, 0xda, 0x4c, 0x85, 0xd4, 0x7b, 0x52,
  156. 0x67, 0x53, 0xe1, 0xbd, 0xf7, 0x53, 0x81, 0x57, 0xcf, 0x0b, 0x51, 0x2e, 0xfe, 0x85, 0x61, 0x76,
  157. 0xb3, 0x86, 0xcb, 0xd3, 0xd3, 0x7d, 0xdb, 0x3f, 0xdf, 0x7c, 0x5c, 0x47, 0xa3, 0x43, 0x7a, 0xe0,
  158. 0xab, 0x6d, 0xfd, 0x61, 0xdb, 0xed, 0x0e, 0x4b, 0xfe, 0xac, 0xa7, 0xdf, 0x00, 0x00, 0x00, 0xff,
  159. 0xff, 0xfb, 0x92, 0xb2, 0xae, 0x3b, 0x01, 0x00, 0x00,
  160. }