device.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  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. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  75. XXX_unrecognized []byte `json:"-"`
  76. XXX_sizecache int32 `json:"-"`
  77. }
  78. func (m *DeviceInfoReply) Reset() { *m = DeviceInfoReply{} }
  79. func (m *DeviceInfoReply) String() string { return proto.CompactTextString(m) }
  80. func (*DeviceInfoReply) ProtoMessage() {}
  81. func (*DeviceInfoReply) Descriptor() ([]byte, []int) {
  82. return fileDescriptor_870276a56ac00da5, []int{1}
  83. }
  84. func (m *DeviceInfoReply) XXX_Unmarshal(b []byte) error {
  85. return xxx_messageInfo_DeviceInfoReply.Unmarshal(m, b)
  86. }
  87. func (m *DeviceInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  88. return xxx_messageInfo_DeviceInfoReply.Marshal(b, m, deterministic)
  89. }
  90. func (m *DeviceInfoReply) XXX_Merge(src proto.Message) {
  91. xxx_messageInfo_DeviceInfoReply.Merge(m, src)
  92. }
  93. func (m *DeviceInfoReply) XXX_Size() int {
  94. return xxx_messageInfo_DeviceInfoReply.Size(m)
  95. }
  96. func (m *DeviceInfoReply) XXX_DiscardUnknown() {
  97. xxx_messageInfo_DeviceInfoReply.DiscardUnknown(m)
  98. }
  99. var xxx_messageInfo_DeviceInfoReply proto.InternalMessageInfo
  100. func (m *DeviceInfoReply) GetProjectId() int64 {
  101. if m != nil {
  102. return m.ProjectId
  103. }
  104. return 0
  105. }
  106. func (m *DeviceInfoReply) GetName() string {
  107. if m != nil {
  108. return m.Name
  109. }
  110. return ""
  111. }
  112. func (m *DeviceInfoReply) GetSn() string {
  113. if m != nil {
  114. return m.Sn
  115. }
  116. return ""
  117. }
  118. func (m *DeviceInfoReply) GetDeviceCode() int32 {
  119. if m != nil {
  120. return m.DeviceCode
  121. }
  122. return 0
  123. }
  124. func (m *DeviceInfoReply) GetKey() string {
  125. if m != nil {
  126. return m.Key
  127. }
  128. return ""
  129. }
  130. func (m *DeviceInfoReply) GetId() int64 {
  131. if m != nil {
  132. return m.Id
  133. }
  134. return 0
  135. }
  136. // 更新设备状态
  137. type DeviceStatusUpdateRequest struct {
  138. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  139. Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"`
  140. // 设备编码
  141. DeviceCode int32 `protobuf:"varint,3,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  142. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  143. XXX_unrecognized []byte `json:"-"`
  144. XXX_sizecache int32 `json:"-"`
  145. }
  146. func (m *DeviceStatusUpdateRequest) Reset() { *m = DeviceStatusUpdateRequest{} }
  147. func (m *DeviceStatusUpdateRequest) String() string { return proto.CompactTextString(m) }
  148. func (*DeviceStatusUpdateRequest) ProtoMessage() {}
  149. func (*DeviceStatusUpdateRequest) Descriptor() ([]byte, []int) {
  150. return fileDescriptor_870276a56ac00da5, []int{2}
  151. }
  152. func (m *DeviceStatusUpdateRequest) XXX_Unmarshal(b []byte) error {
  153. return xxx_messageInfo_DeviceStatusUpdateRequest.Unmarshal(m, b)
  154. }
  155. func (m *DeviceStatusUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  156. return xxx_messageInfo_DeviceStatusUpdateRequest.Marshal(b, m, deterministic)
  157. }
  158. func (m *DeviceStatusUpdateRequest) XXX_Merge(src proto.Message) {
  159. xxx_messageInfo_DeviceStatusUpdateRequest.Merge(m, src)
  160. }
  161. func (m *DeviceStatusUpdateRequest) XXX_Size() int {
  162. return xxx_messageInfo_DeviceStatusUpdateRequest.Size(m)
  163. }
  164. func (m *DeviceStatusUpdateRequest) XXX_DiscardUnknown() {
  165. xxx_messageInfo_DeviceStatusUpdateRequest.DiscardUnknown(m)
  166. }
  167. var xxx_messageInfo_DeviceStatusUpdateRequest proto.InternalMessageInfo
  168. func (m *DeviceStatusUpdateRequest) GetSn() string {
  169. if m != nil {
  170. return m.Sn
  171. }
  172. return ""
  173. }
  174. func (m *DeviceStatusUpdateRequest) GetStatus() int32 {
  175. if m != nil {
  176. return m.Status
  177. }
  178. return 0
  179. }
  180. func (m *DeviceStatusUpdateRequest) GetDeviceCode() int32 {
  181. if m != nil {
  182. return m.DeviceCode
  183. }
  184. return 0
  185. }
  186. type DeviceStatusUpdateReply struct {
  187. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  188. XXX_unrecognized []byte `json:"-"`
  189. XXX_sizecache int32 `json:"-"`
  190. }
  191. func (m *DeviceStatusUpdateReply) Reset() { *m = DeviceStatusUpdateReply{} }
  192. func (m *DeviceStatusUpdateReply) String() string { return proto.CompactTextString(m) }
  193. func (*DeviceStatusUpdateReply) ProtoMessage() {}
  194. func (*DeviceStatusUpdateReply) Descriptor() ([]byte, []int) {
  195. return fileDescriptor_870276a56ac00da5, []int{3}
  196. }
  197. func (m *DeviceStatusUpdateReply) XXX_Unmarshal(b []byte) error {
  198. return xxx_messageInfo_DeviceStatusUpdateReply.Unmarshal(m, b)
  199. }
  200. func (m *DeviceStatusUpdateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  201. return xxx_messageInfo_DeviceStatusUpdateReply.Marshal(b, m, deterministic)
  202. }
  203. func (m *DeviceStatusUpdateReply) XXX_Merge(src proto.Message) {
  204. xxx_messageInfo_DeviceStatusUpdateReply.Merge(m, src)
  205. }
  206. func (m *DeviceStatusUpdateReply) XXX_Size() int {
  207. return xxx_messageInfo_DeviceStatusUpdateReply.Size(m)
  208. }
  209. func (m *DeviceStatusUpdateReply) XXX_DiscardUnknown() {
  210. xxx_messageInfo_DeviceStatusUpdateReply.DiscardUnknown(m)
  211. }
  212. var xxx_messageInfo_DeviceStatusUpdateReply proto.InternalMessageInfo
  213. // 设置设备参数
  214. type DeviceParamSetRequest struct {
  215. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  216. Param string `protobuf:"bytes,2,opt,name=param,proto3" json:"param"`
  217. // 设备编码
  218. DeviceCode int32 `protobuf:"varint,3,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  219. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  220. XXX_unrecognized []byte `json:"-"`
  221. XXX_sizecache int32 `json:"-"`
  222. }
  223. func (m *DeviceParamSetRequest) Reset() { *m = DeviceParamSetRequest{} }
  224. func (m *DeviceParamSetRequest) String() string { return proto.CompactTextString(m) }
  225. func (*DeviceParamSetRequest) ProtoMessage() {}
  226. func (*DeviceParamSetRequest) Descriptor() ([]byte, []int) {
  227. return fileDescriptor_870276a56ac00da5, []int{4}
  228. }
  229. func (m *DeviceParamSetRequest) XXX_Unmarshal(b []byte) error {
  230. return xxx_messageInfo_DeviceParamSetRequest.Unmarshal(m, b)
  231. }
  232. func (m *DeviceParamSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  233. return xxx_messageInfo_DeviceParamSetRequest.Marshal(b, m, deterministic)
  234. }
  235. func (m *DeviceParamSetRequest) XXX_Merge(src proto.Message) {
  236. xxx_messageInfo_DeviceParamSetRequest.Merge(m, src)
  237. }
  238. func (m *DeviceParamSetRequest) XXX_Size() int {
  239. return xxx_messageInfo_DeviceParamSetRequest.Size(m)
  240. }
  241. func (m *DeviceParamSetRequest) XXX_DiscardUnknown() {
  242. xxx_messageInfo_DeviceParamSetRequest.DiscardUnknown(m)
  243. }
  244. var xxx_messageInfo_DeviceParamSetRequest proto.InternalMessageInfo
  245. func (m *DeviceParamSetRequest) GetSn() string {
  246. if m != nil {
  247. return m.Sn
  248. }
  249. return ""
  250. }
  251. func (m *DeviceParamSetRequest) GetParam() string {
  252. if m != nil {
  253. return m.Param
  254. }
  255. return ""
  256. }
  257. func (m *DeviceParamSetRequest) GetDeviceCode() int32 {
  258. if m != nil {
  259. return m.DeviceCode
  260. }
  261. return 0
  262. }
  263. type DeviceParamSetReply struct {
  264. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  265. XXX_unrecognized []byte `json:"-"`
  266. XXX_sizecache int32 `json:"-"`
  267. }
  268. func (m *DeviceParamSetReply) Reset() { *m = DeviceParamSetReply{} }
  269. func (m *DeviceParamSetReply) String() string { return proto.CompactTextString(m) }
  270. func (*DeviceParamSetReply) ProtoMessage() {}
  271. func (*DeviceParamSetReply) Descriptor() ([]byte, []int) {
  272. return fileDescriptor_870276a56ac00da5, []int{5}
  273. }
  274. func (m *DeviceParamSetReply) XXX_Unmarshal(b []byte) error {
  275. return xxx_messageInfo_DeviceParamSetReply.Unmarshal(m, b)
  276. }
  277. func (m *DeviceParamSetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  278. return xxx_messageInfo_DeviceParamSetReply.Marshal(b, m, deterministic)
  279. }
  280. func (m *DeviceParamSetReply) XXX_Merge(src proto.Message) {
  281. xxx_messageInfo_DeviceParamSetReply.Merge(m, src)
  282. }
  283. func (m *DeviceParamSetReply) XXX_Size() int {
  284. return xxx_messageInfo_DeviceParamSetReply.Size(m)
  285. }
  286. func (m *DeviceParamSetReply) XXX_DiscardUnknown() {
  287. xxx_messageInfo_DeviceParamSetReply.DiscardUnknown(m)
  288. }
  289. var xxx_messageInfo_DeviceParamSetReply proto.InternalMessageInfo
  290. // 设备删除或者不能用通知
  291. type DeviceChangeNotifyRequest struct {
  292. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  293. DeviceCode int32 `protobuf:"varint,2,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  294. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  295. XXX_unrecognized []byte `json:"-"`
  296. XXX_sizecache int32 `json:"-"`
  297. }
  298. func (m *DeviceChangeNotifyRequest) Reset() { *m = DeviceChangeNotifyRequest{} }
  299. func (m *DeviceChangeNotifyRequest) String() string { return proto.CompactTextString(m) }
  300. func (*DeviceChangeNotifyRequest) ProtoMessage() {}
  301. func (*DeviceChangeNotifyRequest) Descriptor() ([]byte, []int) {
  302. return fileDescriptor_870276a56ac00da5, []int{6}
  303. }
  304. func (m *DeviceChangeNotifyRequest) XXX_Unmarshal(b []byte) error {
  305. return xxx_messageInfo_DeviceChangeNotifyRequest.Unmarshal(m, b)
  306. }
  307. func (m *DeviceChangeNotifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  308. return xxx_messageInfo_DeviceChangeNotifyRequest.Marshal(b, m, deterministic)
  309. }
  310. func (m *DeviceChangeNotifyRequest) XXX_Merge(src proto.Message) {
  311. xxx_messageInfo_DeviceChangeNotifyRequest.Merge(m, src)
  312. }
  313. func (m *DeviceChangeNotifyRequest) XXX_Size() int {
  314. return xxx_messageInfo_DeviceChangeNotifyRequest.Size(m)
  315. }
  316. func (m *DeviceChangeNotifyRequest) XXX_DiscardUnknown() {
  317. xxx_messageInfo_DeviceChangeNotifyRequest.DiscardUnknown(m)
  318. }
  319. var xxx_messageInfo_DeviceChangeNotifyRequest proto.InternalMessageInfo
  320. func (m *DeviceChangeNotifyRequest) GetSn() string {
  321. if m != nil {
  322. return m.Sn
  323. }
  324. return ""
  325. }
  326. func (m *DeviceChangeNotifyRequest) GetDeviceCode() int32 {
  327. if m != nil {
  328. return m.DeviceCode
  329. }
  330. return 0
  331. }
  332. type DeviceChangeNotifyReply struct {
  333. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  334. XXX_unrecognized []byte `json:"-"`
  335. XXX_sizecache int32 `json:"-"`
  336. }
  337. func (m *DeviceChangeNotifyReply) Reset() { *m = DeviceChangeNotifyReply{} }
  338. func (m *DeviceChangeNotifyReply) String() string { return proto.CompactTextString(m) }
  339. func (*DeviceChangeNotifyReply) ProtoMessage() {}
  340. func (*DeviceChangeNotifyReply) Descriptor() ([]byte, []int) {
  341. return fileDescriptor_870276a56ac00da5, []int{7}
  342. }
  343. func (m *DeviceChangeNotifyReply) XXX_Unmarshal(b []byte) error {
  344. return xxx_messageInfo_DeviceChangeNotifyReply.Unmarshal(m, b)
  345. }
  346. func (m *DeviceChangeNotifyReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  347. return xxx_messageInfo_DeviceChangeNotifyReply.Marshal(b, m, deterministic)
  348. }
  349. func (m *DeviceChangeNotifyReply) XXX_Merge(src proto.Message) {
  350. xxx_messageInfo_DeviceChangeNotifyReply.Merge(m, src)
  351. }
  352. func (m *DeviceChangeNotifyReply) XXX_Size() int {
  353. return xxx_messageInfo_DeviceChangeNotifyReply.Size(m)
  354. }
  355. func (m *DeviceChangeNotifyReply) XXX_DiscardUnknown() {
  356. xxx_messageInfo_DeviceChangeNotifyReply.DiscardUnknown(m)
  357. }
  358. var xxx_messageInfo_DeviceChangeNotifyReply proto.InternalMessageInfo
  359. type GetAllDustSnRequest struct {
  360. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  361. XXX_unrecognized []byte `json:"-"`
  362. XXX_sizecache int32 `json:"-"`
  363. }
  364. func (m *GetAllDustSnRequest) Reset() { *m = GetAllDustSnRequest{} }
  365. func (m *GetAllDustSnRequest) String() string { return proto.CompactTextString(m) }
  366. func (*GetAllDustSnRequest) ProtoMessage() {}
  367. func (*GetAllDustSnRequest) Descriptor() ([]byte, []int) {
  368. return fileDescriptor_870276a56ac00da5, []int{8}
  369. }
  370. func (m *GetAllDustSnRequest) XXX_Unmarshal(b []byte) error {
  371. return xxx_messageInfo_GetAllDustSnRequest.Unmarshal(m, b)
  372. }
  373. func (m *GetAllDustSnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  374. return xxx_messageInfo_GetAllDustSnRequest.Marshal(b, m, deterministic)
  375. }
  376. func (m *GetAllDustSnRequest) XXX_Merge(src proto.Message) {
  377. xxx_messageInfo_GetAllDustSnRequest.Merge(m, src)
  378. }
  379. func (m *GetAllDustSnRequest) XXX_Size() int {
  380. return xxx_messageInfo_GetAllDustSnRequest.Size(m)
  381. }
  382. func (m *GetAllDustSnRequest) XXX_DiscardUnknown() {
  383. xxx_messageInfo_GetAllDustSnRequest.DiscardUnknown(m)
  384. }
  385. var xxx_messageInfo_GetAllDustSnRequest proto.InternalMessageInfo
  386. type GetAllDustSnReply struct {
  387. Sns []string `protobuf:"bytes,1,rep,name=sns,proto3" json:"sns"`
  388. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  389. XXX_unrecognized []byte `json:"-"`
  390. XXX_sizecache int32 `json:"-"`
  391. }
  392. func (m *GetAllDustSnReply) Reset() { *m = GetAllDustSnReply{} }
  393. func (m *GetAllDustSnReply) String() string { return proto.CompactTextString(m) }
  394. func (*GetAllDustSnReply) ProtoMessage() {}
  395. func (*GetAllDustSnReply) Descriptor() ([]byte, []int) {
  396. return fileDescriptor_870276a56ac00da5, []int{9}
  397. }
  398. func (m *GetAllDustSnReply) XXX_Unmarshal(b []byte) error {
  399. return xxx_messageInfo_GetAllDustSnReply.Unmarshal(m, b)
  400. }
  401. func (m *GetAllDustSnReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  402. return xxx_messageInfo_GetAllDustSnReply.Marshal(b, m, deterministic)
  403. }
  404. func (m *GetAllDustSnReply) XXX_Merge(src proto.Message) {
  405. xxx_messageInfo_GetAllDustSnReply.Merge(m, src)
  406. }
  407. func (m *GetAllDustSnReply) XXX_Size() int {
  408. return xxx_messageInfo_GetAllDustSnReply.Size(m)
  409. }
  410. func (m *GetAllDustSnReply) XXX_DiscardUnknown() {
  411. xxx_messageInfo_GetAllDustSnReply.DiscardUnknown(m)
  412. }
  413. var xxx_messageInfo_GetAllDustSnReply proto.InternalMessageInfo
  414. func (m *GetAllDustSnReply) GetSns() []string {
  415. if m != nil {
  416. return m.Sns
  417. }
  418. return nil
  419. }
  420. type DeviceInfoByIdRequest struct {
  421. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  422. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  423. XXX_unrecognized []byte `json:"-"`
  424. XXX_sizecache int32 `json:"-"`
  425. }
  426. func (m *DeviceInfoByIdRequest) Reset() { *m = DeviceInfoByIdRequest{} }
  427. func (m *DeviceInfoByIdRequest) String() string { return proto.CompactTextString(m) }
  428. func (*DeviceInfoByIdRequest) ProtoMessage() {}
  429. func (*DeviceInfoByIdRequest) Descriptor() ([]byte, []int) {
  430. return fileDescriptor_870276a56ac00da5, []int{10}
  431. }
  432. func (m *DeviceInfoByIdRequest) XXX_Unmarshal(b []byte) error {
  433. return xxx_messageInfo_DeviceInfoByIdRequest.Unmarshal(m, b)
  434. }
  435. func (m *DeviceInfoByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  436. return xxx_messageInfo_DeviceInfoByIdRequest.Marshal(b, m, deterministic)
  437. }
  438. func (m *DeviceInfoByIdRequest) XXX_Merge(src proto.Message) {
  439. xxx_messageInfo_DeviceInfoByIdRequest.Merge(m, src)
  440. }
  441. func (m *DeviceInfoByIdRequest) XXX_Size() int {
  442. return xxx_messageInfo_DeviceInfoByIdRequest.Size(m)
  443. }
  444. func (m *DeviceInfoByIdRequest) XXX_DiscardUnknown() {
  445. xxx_messageInfo_DeviceInfoByIdRequest.DiscardUnknown(m)
  446. }
  447. var xxx_messageInfo_DeviceInfoByIdRequest proto.InternalMessageInfo
  448. func (m *DeviceInfoByIdRequest) GetId() int64 {
  449. if m != nil {
  450. return m.Id
  451. }
  452. return 0
  453. }
  454. type DeviceInfoByIdReply struct {
  455. // 项目编号
  456. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  457. // 设备名
  458. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  459. // 设备唯一编码
  460. Sn string `protobuf:"bytes,3,opt,name=sn,proto3" json:"sn"`
  461. // 设备编码
  462. DeviceCode int32 `protobuf:"varint,4,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  463. // 设备秘钥
  464. Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key"`
  465. Id int64 `protobuf:"varint,6,opt,name=id,proto3" json:"id"`
  466. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  467. XXX_unrecognized []byte `json:"-"`
  468. XXX_sizecache int32 `json:"-"`
  469. }
  470. func (m *DeviceInfoByIdReply) Reset() { *m = DeviceInfoByIdReply{} }
  471. func (m *DeviceInfoByIdReply) String() string { return proto.CompactTextString(m) }
  472. func (*DeviceInfoByIdReply) ProtoMessage() {}
  473. func (*DeviceInfoByIdReply) Descriptor() ([]byte, []int) {
  474. return fileDescriptor_870276a56ac00da5, []int{11}
  475. }
  476. func (m *DeviceInfoByIdReply) XXX_Unmarshal(b []byte) error {
  477. return xxx_messageInfo_DeviceInfoByIdReply.Unmarshal(m, b)
  478. }
  479. func (m *DeviceInfoByIdReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  480. return xxx_messageInfo_DeviceInfoByIdReply.Marshal(b, m, deterministic)
  481. }
  482. func (m *DeviceInfoByIdReply) XXX_Merge(src proto.Message) {
  483. xxx_messageInfo_DeviceInfoByIdReply.Merge(m, src)
  484. }
  485. func (m *DeviceInfoByIdReply) XXX_Size() int {
  486. return xxx_messageInfo_DeviceInfoByIdReply.Size(m)
  487. }
  488. func (m *DeviceInfoByIdReply) XXX_DiscardUnknown() {
  489. xxx_messageInfo_DeviceInfoByIdReply.DiscardUnknown(m)
  490. }
  491. var xxx_messageInfo_DeviceInfoByIdReply proto.InternalMessageInfo
  492. func (m *DeviceInfoByIdReply) GetProjectId() int64 {
  493. if m != nil {
  494. return m.ProjectId
  495. }
  496. return 0
  497. }
  498. func (m *DeviceInfoByIdReply) GetName() string {
  499. if m != nil {
  500. return m.Name
  501. }
  502. return ""
  503. }
  504. func (m *DeviceInfoByIdReply) GetSn() string {
  505. if m != nil {
  506. return m.Sn
  507. }
  508. return ""
  509. }
  510. func (m *DeviceInfoByIdReply) GetDeviceCode() int32 {
  511. if m != nil {
  512. return m.DeviceCode
  513. }
  514. return 0
  515. }
  516. func (m *DeviceInfoByIdReply) GetKey() string {
  517. if m != nil {
  518. return m.Key
  519. }
  520. return ""
  521. }
  522. func (m *DeviceInfoByIdReply) GetId() int64 {
  523. if m != nil {
  524. return m.Id
  525. }
  526. return 0
  527. }
  528. func init() {
  529. proto.RegisterType((*DeviceInfoRequest)(nil), "v1.DeviceInfoRequest")
  530. proto.RegisterType((*DeviceInfoReply)(nil), "v1.DeviceInfoReply")
  531. proto.RegisterType((*DeviceStatusUpdateRequest)(nil), "v1.DeviceStatusUpdateRequest")
  532. proto.RegisterType((*DeviceStatusUpdateReply)(nil), "v1.DeviceStatusUpdateReply")
  533. proto.RegisterType((*DeviceParamSetRequest)(nil), "v1.DeviceParamSetRequest")
  534. proto.RegisterType((*DeviceParamSetReply)(nil), "v1.DeviceParamSetReply")
  535. proto.RegisterType((*DeviceChangeNotifyRequest)(nil), "v1.DeviceChangeNotifyRequest")
  536. proto.RegisterType((*DeviceChangeNotifyReply)(nil), "v1.DeviceChangeNotifyReply")
  537. proto.RegisterType((*GetAllDustSnRequest)(nil), "v1.GetAllDustSnRequest")
  538. proto.RegisterType((*GetAllDustSnReply)(nil), "v1.GetAllDustSnReply")
  539. proto.RegisterType((*DeviceInfoByIdRequest)(nil), "v1.DeviceInfoByIdRequest")
  540. proto.RegisterType((*DeviceInfoByIdReply)(nil), "v1.DeviceInfoByIdReply")
  541. }
  542. func init() {
  543. proto.RegisterFile("device.proto", fileDescriptor_870276a56ac00da5)
  544. }
  545. var fileDescriptor_870276a56ac00da5 = []byte{
  546. // 368 bytes of a gzipped FileDescriptorProto
  547. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0xd1, 0x4e, 0xf2, 0x30,
  548. 0x14, 0xc7, 0xb3, 0x0d, 0x48, 0x38, 0xdf, 0x17, 0x85, 0x22, 0x3a, 0x2e, 0x8c, 0x64, 0x89, 0x91,
  549. 0x1b, 0x25, 0xc4, 0x27, 0x10, 0x48, 0x0c, 0x89, 0x31, 0x66, 0xc4, 0x1b, 0x2f, 0x24, 0x85, 0x16,
  550. 0x99, 0x8e, 0xb6, 0xae, 0x1d, 0xc9, 0x9e, 0xc4, 0x0b, 0x5f, 0xd6, 0xb4, 0x2b, 0x08, 0x28, 0x31,
  551. 0xf1, 0xca, 0xbb, 0xf6, 0xec, 0xf4, 0xff, 0x3b, 0xff, 0x73, 0xce, 0xe0, 0x3f, 0xa1, 0x8b, 0x68,
  552. 0x42, 0x2f, 0x44, 0xc2, 0x15, 0x47, 0xee, 0xa2, 0x13, 0xf4, 0xa1, 0xda, 0x37, 0xb1, 0x01, 0x9b,
  553. 0xf2, 0x90, 0xbe, 0xa6, 0x54, 0x2a, 0xb4, 0x07, 0xae, 0x64, 0xbe, 0xd3, 0x74, 0x5a, 0xe5, 0xd0,
  554. 0x95, 0x0c, 0x9d, 0xc0, 0xbf, 0xfc, 0xe1, 0x68, 0xc2, 0x09, 0xf5, 0xdd, 0xa6, 0xd3, 0x2a, 0x86,
  555. 0x90, 0x87, 0x7a, 0x9c, 0xd0, 0xe0, 0xcd, 0x81, 0xfd, 0x75, 0x19, 0x11, 0x67, 0xe8, 0x18, 0x40,
  556. 0x24, 0xfc, 0x99, 0x4e, 0xd4, 0x28, 0x22, 0x46, 0xcc, 0x0b, 0xcb, 0x36, 0x32, 0x20, 0x08, 0x41,
  557. 0x81, 0xe1, 0x79, 0x2e, 0x56, 0x0e, 0xcd, 0xd9, 0x72, 0xbd, 0x5d, 0xdc, 0xc2, 0x36, 0x17, 0x55,
  558. 0xc0, 0x7b, 0xa1, 0x99, 0x5f, 0x34, 0x2f, 0xf4, 0x51, 0x4b, 0x44, 0xc4, 0x2f, 0x19, 0x9a, 0x1b,
  559. 0x91, 0x80, 0x40, 0x23, 0x2f, 0x6c, 0xa8, 0xb0, 0x4a, 0xe5, 0xbd, 0x20, 0x58, 0xd1, 0x5d, 0x3e,
  560. 0x0f, 0xa1, 0x24, 0x4d, 0x9a, 0xb5, 0x68, 0x6f, 0xdb, 0x75, 0x78, 0x5f, 0xfc, 0x37, 0xe0, 0xe8,
  561. 0x3b, 0x8a, 0x88, 0xb3, 0xe0, 0x11, 0xea, 0xf9, 0xa7, 0x3b, 0x9c, 0xe0, 0xf9, 0x90, 0xaa, 0x5d,
  562. 0xf0, 0x03, 0x28, 0x0a, 0x9d, 0x62, 0x3b, 0x92, 0x5f, 0x7e, 0x46, 0xd7, 0xa1, 0xb6, 0xad, 0xaf,
  563. 0xb1, 0x37, 0x4b, 0xdf, 0xbd, 0x19, 0x66, 0x4f, 0xf4, 0x96, 0xab, 0x68, 0x9a, 0xfd, 0x7a, 0xbe,
  564. 0x2b, 0x7f, 0x9b, 0x6a, 0x1a, 0x54, 0x87, 0xda, 0x35, 0x55, 0x57, 0x71, 0xdc, 0x4f, 0xa5, 0x1a,
  565. 0x32, 0x8b, 0x08, 0x4e, 0xa1, 0xba, 0x19, 0xd6, 0x2b, 0x51, 0x01, 0x4f, 0x32, 0xe9, 0x3b, 0x4d,
  566. 0x4f, 0x8f, 0x4b, 0x32, 0x19, 0x9c, 0x2d, 0xbb, 0xa3, 0xf7, 0xa6, 0x9b, 0x0d, 0xc8, 0x5a, 0x89,
  567. 0xab, 0xad, 0xd1, 0x73, 0x7c, 0x77, 0x96, 0x3e, 0x3f, 0x33, 0xff, 0xcc, 0x96, 0x75, 0xd1, 0x43,
  568. 0x45, 0xce, 0x71, 0xa2, 0xce, 0x71, 0xaa, 0x66, 0x6d, 0x31, 0x6e, 0x2f, 0x3a, 0xe3, 0x92, 0xf9,
  569. 0xc9, 0x2e, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x4b, 0xd2, 0x94, 0x74, 0x03, 0x00, 0x00,
  570. }