device.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: device.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. // 通过设备唯一编码获取设备基础信息
  20. type DeviceInfoRequest struct {
  21. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  22. // 设备编码
  23. DeviceCode int32 `protobuf:"varint,2,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  24. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  25. XXX_unrecognized []byte `json:"-"`
  26. XXX_sizecache int32 `json:"-"`
  27. }
  28. func (m *DeviceInfoRequest) Reset() { *m = DeviceInfoRequest{} }
  29. func (m *DeviceInfoRequest) String() string { return proto.CompactTextString(m) }
  30. func (*DeviceInfoRequest) ProtoMessage() {}
  31. func (*DeviceInfoRequest) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_870276a56ac00da5, []int{0}
  33. }
  34. func (m *DeviceInfoRequest) XXX_Unmarshal(b []byte) error {
  35. return xxx_messageInfo_DeviceInfoRequest.Unmarshal(m, b)
  36. }
  37. func (m *DeviceInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. return xxx_messageInfo_DeviceInfoRequest.Marshal(b, m, deterministic)
  39. }
  40. func (m *DeviceInfoRequest) XXX_Merge(src proto.Message) {
  41. xxx_messageInfo_DeviceInfoRequest.Merge(m, src)
  42. }
  43. func (m *DeviceInfoRequest) XXX_Size() int {
  44. return xxx_messageInfo_DeviceInfoRequest.Size(m)
  45. }
  46. func (m *DeviceInfoRequest) XXX_DiscardUnknown() {
  47. xxx_messageInfo_DeviceInfoRequest.DiscardUnknown(m)
  48. }
  49. var xxx_messageInfo_DeviceInfoRequest proto.InternalMessageInfo
  50. func (m *DeviceInfoRequest) GetSn() string {
  51. if m != nil {
  52. return m.Sn
  53. }
  54. return ""
  55. }
  56. func (m *DeviceInfoRequest) GetDeviceCode() int32 {
  57. if m != nil {
  58. return m.DeviceCode
  59. }
  60. return 0
  61. }
  62. type DeviceInfoReply struct {
  63. // 项目编号
  64. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  65. // 设备名
  66. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  67. // 设备唯一编码
  68. Sn string `protobuf:"bytes,3,opt,name=sn,proto3" json:"sn"`
  69. // 设备编码
  70. DeviceCode int32 `protobuf:"varint,4,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  71. // 设备秘钥
  72. Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key"`
  73. Id int64 `protobuf:"varint,6,opt,name=id,proto3" json:"id"`
  74. ProjectCode string `protobuf:"bytes,7,opt,name=project_code,json=projectCode,proto3" json:"project_code"`
  75. DeviceGuid string `protobuf:"bytes,8,opt,name=device_guid,json=deviceGuid,proto3" json:"device_guid"`
  76. ProjectName string `protobuf:"bytes,9,opt,name=project_name,json=projectName,proto3" json:"project_name"`
  77. ProjectAreaCode string `protobuf:"bytes,10,opt,name=project_area_code,json=projectAreaCode,proto3" json:"project_area_code"`
  78. BindChannel string `protobuf:"bytes,11,opt,name=bind_channel,json=bindChannel,proto3" json:"bind_channel"`
  79. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  80. XXX_unrecognized []byte `json:"-"`
  81. XXX_sizecache int32 `json:"-"`
  82. }
  83. func (m *DeviceInfoReply) Reset() { *m = DeviceInfoReply{} }
  84. func (m *DeviceInfoReply) String() string { return proto.CompactTextString(m) }
  85. func (*DeviceInfoReply) ProtoMessage() {}
  86. func (*DeviceInfoReply) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_870276a56ac00da5, []int{1}
  88. }
  89. func (m *DeviceInfoReply) XXX_Unmarshal(b []byte) error {
  90. return xxx_messageInfo_DeviceInfoReply.Unmarshal(m, b)
  91. }
  92. func (m *DeviceInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. return xxx_messageInfo_DeviceInfoReply.Marshal(b, m, deterministic)
  94. }
  95. func (m *DeviceInfoReply) XXX_Merge(src proto.Message) {
  96. xxx_messageInfo_DeviceInfoReply.Merge(m, src)
  97. }
  98. func (m *DeviceInfoReply) XXX_Size() int {
  99. return xxx_messageInfo_DeviceInfoReply.Size(m)
  100. }
  101. func (m *DeviceInfoReply) XXX_DiscardUnknown() {
  102. xxx_messageInfo_DeviceInfoReply.DiscardUnknown(m)
  103. }
  104. var xxx_messageInfo_DeviceInfoReply proto.InternalMessageInfo
  105. func (m *DeviceInfoReply) GetProjectId() int64 {
  106. if m != nil {
  107. return m.ProjectId
  108. }
  109. return 0
  110. }
  111. func (m *DeviceInfoReply) GetName() string {
  112. if m != nil {
  113. return m.Name
  114. }
  115. return ""
  116. }
  117. func (m *DeviceInfoReply) GetSn() string {
  118. if m != nil {
  119. return m.Sn
  120. }
  121. return ""
  122. }
  123. func (m *DeviceInfoReply) GetDeviceCode() int32 {
  124. if m != nil {
  125. return m.DeviceCode
  126. }
  127. return 0
  128. }
  129. func (m *DeviceInfoReply) GetKey() string {
  130. if m != nil {
  131. return m.Key
  132. }
  133. return ""
  134. }
  135. func (m *DeviceInfoReply) GetId() int64 {
  136. if m != nil {
  137. return m.Id
  138. }
  139. return 0
  140. }
  141. func (m *DeviceInfoReply) GetProjectCode() string {
  142. if m != nil {
  143. return m.ProjectCode
  144. }
  145. return ""
  146. }
  147. func (m *DeviceInfoReply) GetDeviceGuid() string {
  148. if m != nil {
  149. return m.DeviceGuid
  150. }
  151. return ""
  152. }
  153. func (m *DeviceInfoReply) GetProjectName() string {
  154. if m != nil {
  155. return m.ProjectName
  156. }
  157. return ""
  158. }
  159. func (m *DeviceInfoReply) GetProjectAreaCode() string {
  160. if m != nil {
  161. return m.ProjectAreaCode
  162. }
  163. return ""
  164. }
  165. func (m *DeviceInfoReply) GetBindChannel() string {
  166. if m != nil {
  167. return m.BindChannel
  168. }
  169. return ""
  170. }
  171. // 更新设备状态
  172. type DeviceStatusUpdateRequest struct {
  173. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  174. Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"`
  175. // 设备编码
  176. DeviceCode int32 `protobuf:"varint,3,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  177. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  178. XXX_unrecognized []byte `json:"-"`
  179. XXX_sizecache int32 `json:"-"`
  180. }
  181. func (m *DeviceStatusUpdateRequest) Reset() { *m = DeviceStatusUpdateRequest{} }
  182. func (m *DeviceStatusUpdateRequest) String() string { return proto.CompactTextString(m) }
  183. func (*DeviceStatusUpdateRequest) ProtoMessage() {}
  184. func (*DeviceStatusUpdateRequest) Descriptor() ([]byte, []int) {
  185. return fileDescriptor_870276a56ac00da5, []int{2}
  186. }
  187. func (m *DeviceStatusUpdateRequest) XXX_Unmarshal(b []byte) error {
  188. return xxx_messageInfo_DeviceStatusUpdateRequest.Unmarshal(m, b)
  189. }
  190. func (m *DeviceStatusUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  191. return xxx_messageInfo_DeviceStatusUpdateRequest.Marshal(b, m, deterministic)
  192. }
  193. func (m *DeviceStatusUpdateRequest) XXX_Merge(src proto.Message) {
  194. xxx_messageInfo_DeviceStatusUpdateRequest.Merge(m, src)
  195. }
  196. func (m *DeviceStatusUpdateRequest) XXX_Size() int {
  197. return xxx_messageInfo_DeviceStatusUpdateRequest.Size(m)
  198. }
  199. func (m *DeviceStatusUpdateRequest) XXX_DiscardUnknown() {
  200. xxx_messageInfo_DeviceStatusUpdateRequest.DiscardUnknown(m)
  201. }
  202. var xxx_messageInfo_DeviceStatusUpdateRequest proto.InternalMessageInfo
  203. func (m *DeviceStatusUpdateRequest) GetSn() string {
  204. if m != nil {
  205. return m.Sn
  206. }
  207. return ""
  208. }
  209. func (m *DeviceStatusUpdateRequest) GetStatus() int32 {
  210. if m != nil {
  211. return m.Status
  212. }
  213. return 0
  214. }
  215. func (m *DeviceStatusUpdateRequest) GetDeviceCode() int32 {
  216. if m != nil {
  217. return m.DeviceCode
  218. }
  219. return 0
  220. }
  221. type DeviceStatusUpdateReply struct {
  222. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  223. XXX_unrecognized []byte `json:"-"`
  224. XXX_sizecache int32 `json:"-"`
  225. }
  226. func (m *DeviceStatusUpdateReply) Reset() { *m = DeviceStatusUpdateReply{} }
  227. func (m *DeviceStatusUpdateReply) String() string { return proto.CompactTextString(m) }
  228. func (*DeviceStatusUpdateReply) ProtoMessage() {}
  229. func (*DeviceStatusUpdateReply) Descriptor() ([]byte, []int) {
  230. return fileDescriptor_870276a56ac00da5, []int{3}
  231. }
  232. func (m *DeviceStatusUpdateReply) XXX_Unmarshal(b []byte) error {
  233. return xxx_messageInfo_DeviceStatusUpdateReply.Unmarshal(m, b)
  234. }
  235. func (m *DeviceStatusUpdateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  236. return xxx_messageInfo_DeviceStatusUpdateReply.Marshal(b, m, deterministic)
  237. }
  238. func (m *DeviceStatusUpdateReply) XXX_Merge(src proto.Message) {
  239. xxx_messageInfo_DeviceStatusUpdateReply.Merge(m, src)
  240. }
  241. func (m *DeviceStatusUpdateReply) XXX_Size() int {
  242. return xxx_messageInfo_DeviceStatusUpdateReply.Size(m)
  243. }
  244. func (m *DeviceStatusUpdateReply) XXX_DiscardUnknown() {
  245. xxx_messageInfo_DeviceStatusUpdateReply.DiscardUnknown(m)
  246. }
  247. var xxx_messageInfo_DeviceStatusUpdateReply proto.InternalMessageInfo
  248. // 设置设备参数
  249. type DeviceParamSetRequest struct {
  250. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  251. Param string `protobuf:"bytes,2,opt,name=param,proto3" json:"param"`
  252. // 设备编码
  253. DeviceCode int32 `protobuf:"varint,3,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  254. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  255. XXX_unrecognized []byte `json:"-"`
  256. XXX_sizecache int32 `json:"-"`
  257. }
  258. func (m *DeviceParamSetRequest) Reset() { *m = DeviceParamSetRequest{} }
  259. func (m *DeviceParamSetRequest) String() string { return proto.CompactTextString(m) }
  260. func (*DeviceParamSetRequest) ProtoMessage() {}
  261. func (*DeviceParamSetRequest) Descriptor() ([]byte, []int) {
  262. return fileDescriptor_870276a56ac00da5, []int{4}
  263. }
  264. func (m *DeviceParamSetRequest) XXX_Unmarshal(b []byte) error {
  265. return xxx_messageInfo_DeviceParamSetRequest.Unmarshal(m, b)
  266. }
  267. func (m *DeviceParamSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  268. return xxx_messageInfo_DeviceParamSetRequest.Marshal(b, m, deterministic)
  269. }
  270. func (m *DeviceParamSetRequest) XXX_Merge(src proto.Message) {
  271. xxx_messageInfo_DeviceParamSetRequest.Merge(m, src)
  272. }
  273. func (m *DeviceParamSetRequest) XXX_Size() int {
  274. return xxx_messageInfo_DeviceParamSetRequest.Size(m)
  275. }
  276. func (m *DeviceParamSetRequest) XXX_DiscardUnknown() {
  277. xxx_messageInfo_DeviceParamSetRequest.DiscardUnknown(m)
  278. }
  279. var xxx_messageInfo_DeviceParamSetRequest proto.InternalMessageInfo
  280. func (m *DeviceParamSetRequest) GetSn() string {
  281. if m != nil {
  282. return m.Sn
  283. }
  284. return ""
  285. }
  286. func (m *DeviceParamSetRequest) GetParam() string {
  287. if m != nil {
  288. return m.Param
  289. }
  290. return ""
  291. }
  292. func (m *DeviceParamSetRequest) GetDeviceCode() int32 {
  293. if m != nil {
  294. return m.DeviceCode
  295. }
  296. return 0
  297. }
  298. type DeviceParamSetReply struct {
  299. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  300. XXX_unrecognized []byte `json:"-"`
  301. XXX_sizecache int32 `json:"-"`
  302. }
  303. func (m *DeviceParamSetReply) Reset() { *m = DeviceParamSetReply{} }
  304. func (m *DeviceParamSetReply) String() string { return proto.CompactTextString(m) }
  305. func (*DeviceParamSetReply) ProtoMessage() {}
  306. func (*DeviceParamSetReply) Descriptor() ([]byte, []int) {
  307. return fileDescriptor_870276a56ac00da5, []int{5}
  308. }
  309. func (m *DeviceParamSetReply) XXX_Unmarshal(b []byte) error {
  310. return xxx_messageInfo_DeviceParamSetReply.Unmarshal(m, b)
  311. }
  312. func (m *DeviceParamSetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  313. return xxx_messageInfo_DeviceParamSetReply.Marshal(b, m, deterministic)
  314. }
  315. func (m *DeviceParamSetReply) XXX_Merge(src proto.Message) {
  316. xxx_messageInfo_DeviceParamSetReply.Merge(m, src)
  317. }
  318. func (m *DeviceParamSetReply) XXX_Size() int {
  319. return xxx_messageInfo_DeviceParamSetReply.Size(m)
  320. }
  321. func (m *DeviceParamSetReply) XXX_DiscardUnknown() {
  322. xxx_messageInfo_DeviceParamSetReply.DiscardUnknown(m)
  323. }
  324. var xxx_messageInfo_DeviceParamSetReply proto.InternalMessageInfo
  325. func init() {
  326. proto.RegisterType((*DeviceInfoRequest)(nil), "v1.DeviceInfoRequest")
  327. proto.RegisterType((*DeviceInfoReply)(nil), "v1.DeviceInfoReply")
  328. proto.RegisterType((*DeviceStatusUpdateRequest)(nil), "v1.DeviceStatusUpdateRequest")
  329. proto.RegisterType((*DeviceStatusUpdateReply)(nil), "v1.DeviceStatusUpdateReply")
  330. proto.RegisterType((*DeviceParamSetRequest)(nil), "v1.DeviceParamSetRequest")
  331. proto.RegisterType((*DeviceParamSetReply)(nil), "v1.DeviceParamSetReply")
  332. }
  333. func init() {
  334. proto.RegisterFile("device.proto", fileDescriptor_870276a56ac00da5)
  335. }
  336. var fileDescriptor_870276a56ac00da5 = []byte{
  337. // 363 bytes of a gzipped FileDescriptorProto
  338. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xdd, 0x4e, 0xc2, 0x30,
  339. 0x18, 0x86, 0xc3, 0x06, 0xe8, 0x3e, 0x88, 0x48, 0x15, 0x1d, 0x89, 0x3f, 0xb0, 0x23, 0x62, 0x82,
  340. 0x84, 0x78, 0x05, 0x0a, 0x89, 0xe1, 0xc4, 0x98, 0x11, 0x4f, 0x3c, 0x90, 0x94, 0xb5, 0xea, 0x74,
  341. 0xb4, 0x75, 0xed, 0x48, 0x76, 0x91, 0xde, 0x93, 0x59, 0x5b, 0xa2, 0xa0, 0xc4, 0xb3, 0xf5, 0xed,
  342. 0xdb, 0xe7, 0x69, 0xfa, 0x0d, 0xea, 0x84, 0x2e, 0xe3, 0x88, 0x5e, 0x8a, 0x94, 0x2b, 0x8e, 0x9c,
  343. 0xe5, 0x30, 0x18, 0x43, 0x73, 0xac, 0xb3, 0x09, 0x7b, 0xe6, 0x21, 0xfd, 0xc8, 0xa8, 0x54, 0x68,
  344. 0x0f, 0x1c, 0xc9, 0xfc, 0x52, 0xa7, 0xd4, 0xf3, 0x42, 0x47, 0x32, 0x74, 0x0e, 0x35, 0x73, 0x70,
  345. 0x16, 0x71, 0x42, 0x7d, 0xa7, 0x53, 0xea, 0x55, 0x42, 0x30, 0xd1, 0x88, 0x13, 0x1a, 0x7c, 0x3a,
  346. 0xd0, 0xf8, 0x89, 0x11, 0x49, 0x8e, 0x4e, 0x01, 0x44, 0xca, 0xdf, 0x68, 0xa4, 0x66, 0x31, 0xd1,
  347. 0x30, 0x37, 0xf4, 0x6c, 0x32, 0x21, 0x08, 0x41, 0x99, 0xe1, 0x85, 0x81, 0x79, 0xa1, 0xfe, 0xb6,
  348. 0x5e, 0x77, 0x9b, 0xb7, 0xbc, 0xe9, 0x45, 0xfb, 0xe0, 0xbe, 0xd3, 0xdc, 0xaf, 0xe8, 0x13, 0xc5,
  349. 0x67, 0x81, 0x88, 0x89, 0x5f, 0xd5, 0x36, 0x27, 0x26, 0xa8, 0x0b, 0xf5, 0xd5, 0x2d, 0x34, 0x63,
  350. 0x47, 0x57, 0x6b, 0x36, 0xd3, 0x90, 0x6f, 0xcb, 0x4b, 0x16, 0x13, 0x7f, 0x57, 0x37, 0xac, 0xe5,
  351. 0x36, 0x5b, 0x67, 0xe8, 0x2b, 0x7b, 0x6b, 0x8c, 0xbb, 0xe2, 0xe6, 0x17, 0xd0, 0x5c, 0x55, 0x70,
  352. 0x4a, 0xb1, 0x71, 0x81, 0xee, 0x35, 0xec, 0xc6, 0x75, 0x4a, 0xb1, 0xf6, 0x75, 0xa1, 0x3e, 0x8f,
  353. 0x19, 0x99, 0x45, 0xaf, 0x98, 0x31, 0x9a, 0xf8, 0x35, 0x83, 0x2b, 0xb2, 0x91, 0x89, 0x02, 0x02,
  354. 0x6d, 0xf3, 0x9c, 0x53, 0x85, 0x55, 0x26, 0x1f, 0x04, 0xc1, 0x8a, 0x6e, 0x9b, 0xce, 0x11, 0x54,
  355. 0xa5, 0xae, 0xd9, 0xc1, 0xd8, 0xd5, 0xe6, 0xeb, 0xb9, 0xbf, 0xa6, 0xd6, 0x86, 0xe3, 0xbf, 0x2c,
  356. 0x22, 0xc9, 0x83, 0x27, 0x68, 0x99, 0xad, 0x7b, 0x9c, 0xe2, 0xc5, 0x94, 0xaa, 0x6d, 0xf2, 0x43,
  357. 0xa8, 0x88, 0xa2, 0x62, 0xe7, 0x68, 0x16, 0xff, 0xab, 0x5b, 0x70, 0xb0, 0xc9, 0x17, 0x49, 0x7e,
  358. 0x73, 0xf6, 0x78, 0x82, 0xa3, 0x88, 0x4a, 0xd9, 0x8f, 0x38, 0x53, 0x29, 0x4f, 0xfa, 0x0b, 0xce,
  359. 0x62, 0xc5, 0xd3, 0x81, 0x98, 0x0f, 0x96, 0xc3, 0x79, 0x55, 0xff, 0xb8, 0x57, 0x5f, 0x01, 0x00,
  360. 0x00, 0xff, 0xff, 0xc7, 0xf6, 0xef, 0x6b, 0xc8, 0x02, 0x00, 0x00,
  361. }