device.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  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. type GetAllDustSnRequest struct {
  291. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  292. XXX_unrecognized []byte `json:"-"`
  293. XXX_sizecache int32 `json:"-"`
  294. }
  295. func (m *GetAllDustSnRequest) Reset() { *m = GetAllDustSnRequest{} }
  296. func (m *GetAllDustSnRequest) String() string { return proto.CompactTextString(m) }
  297. func (*GetAllDustSnRequest) ProtoMessage() {}
  298. func (*GetAllDustSnRequest) Descriptor() ([]byte, []int) {
  299. return fileDescriptor_870276a56ac00da5, []int{6}
  300. }
  301. func (m *GetAllDustSnRequest) XXX_Unmarshal(b []byte) error {
  302. return xxx_messageInfo_GetAllDustSnRequest.Unmarshal(m, b)
  303. }
  304. func (m *GetAllDustSnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  305. return xxx_messageInfo_GetAllDustSnRequest.Marshal(b, m, deterministic)
  306. }
  307. func (m *GetAllDustSnRequest) XXX_Merge(src proto.Message) {
  308. xxx_messageInfo_GetAllDustSnRequest.Merge(m, src)
  309. }
  310. func (m *GetAllDustSnRequest) XXX_Size() int {
  311. return xxx_messageInfo_GetAllDustSnRequest.Size(m)
  312. }
  313. func (m *GetAllDustSnRequest) XXX_DiscardUnknown() {
  314. xxx_messageInfo_GetAllDustSnRequest.DiscardUnknown(m)
  315. }
  316. var xxx_messageInfo_GetAllDustSnRequest proto.InternalMessageInfo
  317. type GetAllDustSnReply struct {
  318. Sns []string `protobuf:"bytes,1,rep,name=sns,proto3" json:"sns"`
  319. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  320. XXX_unrecognized []byte `json:"-"`
  321. XXX_sizecache int32 `json:"-"`
  322. }
  323. func (m *GetAllDustSnReply) Reset() { *m = GetAllDustSnReply{} }
  324. func (m *GetAllDustSnReply) String() string { return proto.CompactTextString(m) }
  325. func (*GetAllDustSnReply) ProtoMessage() {}
  326. func (*GetAllDustSnReply) Descriptor() ([]byte, []int) {
  327. return fileDescriptor_870276a56ac00da5, []int{7}
  328. }
  329. func (m *GetAllDustSnReply) XXX_Unmarshal(b []byte) error {
  330. return xxx_messageInfo_GetAllDustSnReply.Unmarshal(m, b)
  331. }
  332. func (m *GetAllDustSnReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  333. return xxx_messageInfo_GetAllDustSnReply.Marshal(b, m, deterministic)
  334. }
  335. func (m *GetAllDustSnReply) XXX_Merge(src proto.Message) {
  336. xxx_messageInfo_GetAllDustSnReply.Merge(m, src)
  337. }
  338. func (m *GetAllDustSnReply) XXX_Size() int {
  339. return xxx_messageInfo_GetAllDustSnReply.Size(m)
  340. }
  341. func (m *GetAllDustSnReply) XXX_DiscardUnknown() {
  342. xxx_messageInfo_GetAllDustSnReply.DiscardUnknown(m)
  343. }
  344. var xxx_messageInfo_GetAllDustSnReply proto.InternalMessageInfo
  345. func (m *GetAllDustSnReply) GetSns() []string {
  346. if m != nil {
  347. return m.Sns
  348. }
  349. return nil
  350. }
  351. type DeviceInfoByIdRequest struct {
  352. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  353. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  354. XXX_unrecognized []byte `json:"-"`
  355. XXX_sizecache int32 `json:"-"`
  356. }
  357. func (m *DeviceInfoByIdRequest) Reset() { *m = DeviceInfoByIdRequest{} }
  358. func (m *DeviceInfoByIdRequest) String() string { return proto.CompactTextString(m) }
  359. func (*DeviceInfoByIdRequest) ProtoMessage() {}
  360. func (*DeviceInfoByIdRequest) Descriptor() ([]byte, []int) {
  361. return fileDescriptor_870276a56ac00da5, []int{8}
  362. }
  363. func (m *DeviceInfoByIdRequest) XXX_Unmarshal(b []byte) error {
  364. return xxx_messageInfo_DeviceInfoByIdRequest.Unmarshal(m, b)
  365. }
  366. func (m *DeviceInfoByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  367. return xxx_messageInfo_DeviceInfoByIdRequest.Marshal(b, m, deterministic)
  368. }
  369. func (m *DeviceInfoByIdRequest) XXX_Merge(src proto.Message) {
  370. xxx_messageInfo_DeviceInfoByIdRequest.Merge(m, src)
  371. }
  372. func (m *DeviceInfoByIdRequest) XXX_Size() int {
  373. return xxx_messageInfo_DeviceInfoByIdRequest.Size(m)
  374. }
  375. func (m *DeviceInfoByIdRequest) XXX_DiscardUnknown() {
  376. xxx_messageInfo_DeviceInfoByIdRequest.DiscardUnknown(m)
  377. }
  378. var xxx_messageInfo_DeviceInfoByIdRequest proto.InternalMessageInfo
  379. func (m *DeviceInfoByIdRequest) GetId() int64 {
  380. if m != nil {
  381. return m.Id
  382. }
  383. return 0
  384. }
  385. type DeviceInfoByIdReply struct {
  386. // 项目编号
  387. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  388. // 设备名
  389. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  390. // 设备唯一编码
  391. Sn string `protobuf:"bytes,3,opt,name=sn,proto3" json:"sn"`
  392. // 设备编码
  393. DeviceCode int32 `protobuf:"varint,4,opt,name=device_code,json=deviceCode,proto3" json:"device_code"`
  394. // 设备秘钥
  395. Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key"`
  396. Id int64 `protobuf:"varint,6,opt,name=id,proto3" json:"id"`
  397. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  398. XXX_unrecognized []byte `json:"-"`
  399. XXX_sizecache int32 `json:"-"`
  400. }
  401. func (m *DeviceInfoByIdReply) Reset() { *m = DeviceInfoByIdReply{} }
  402. func (m *DeviceInfoByIdReply) String() string { return proto.CompactTextString(m) }
  403. func (*DeviceInfoByIdReply) ProtoMessage() {}
  404. func (*DeviceInfoByIdReply) Descriptor() ([]byte, []int) {
  405. return fileDescriptor_870276a56ac00da5, []int{9}
  406. }
  407. func (m *DeviceInfoByIdReply) XXX_Unmarshal(b []byte) error {
  408. return xxx_messageInfo_DeviceInfoByIdReply.Unmarshal(m, b)
  409. }
  410. func (m *DeviceInfoByIdReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  411. return xxx_messageInfo_DeviceInfoByIdReply.Marshal(b, m, deterministic)
  412. }
  413. func (m *DeviceInfoByIdReply) XXX_Merge(src proto.Message) {
  414. xxx_messageInfo_DeviceInfoByIdReply.Merge(m, src)
  415. }
  416. func (m *DeviceInfoByIdReply) XXX_Size() int {
  417. return xxx_messageInfo_DeviceInfoByIdReply.Size(m)
  418. }
  419. func (m *DeviceInfoByIdReply) XXX_DiscardUnknown() {
  420. xxx_messageInfo_DeviceInfoByIdReply.DiscardUnknown(m)
  421. }
  422. var xxx_messageInfo_DeviceInfoByIdReply proto.InternalMessageInfo
  423. func (m *DeviceInfoByIdReply) GetProjectId() int64 {
  424. if m != nil {
  425. return m.ProjectId
  426. }
  427. return 0
  428. }
  429. func (m *DeviceInfoByIdReply) GetName() string {
  430. if m != nil {
  431. return m.Name
  432. }
  433. return ""
  434. }
  435. func (m *DeviceInfoByIdReply) GetSn() string {
  436. if m != nil {
  437. return m.Sn
  438. }
  439. return ""
  440. }
  441. func (m *DeviceInfoByIdReply) GetDeviceCode() int32 {
  442. if m != nil {
  443. return m.DeviceCode
  444. }
  445. return 0
  446. }
  447. func (m *DeviceInfoByIdReply) GetKey() string {
  448. if m != nil {
  449. return m.Key
  450. }
  451. return ""
  452. }
  453. func (m *DeviceInfoByIdReply) GetId() int64 {
  454. if m != nil {
  455. return m.Id
  456. }
  457. return 0
  458. }
  459. func init() {
  460. proto.RegisterType((*DeviceInfoRequest)(nil), "v1.DeviceInfoRequest")
  461. proto.RegisterType((*DeviceInfoReply)(nil), "v1.DeviceInfoReply")
  462. proto.RegisterType((*DeviceStatusUpdateRequest)(nil), "v1.DeviceStatusUpdateRequest")
  463. proto.RegisterType((*DeviceStatusUpdateReply)(nil), "v1.DeviceStatusUpdateReply")
  464. proto.RegisterType((*DeviceParamSetRequest)(nil), "v1.DeviceParamSetRequest")
  465. proto.RegisterType((*DeviceParamSetReply)(nil), "v1.DeviceParamSetReply")
  466. proto.RegisterType((*GetAllDustSnRequest)(nil), "v1.GetAllDustSnRequest")
  467. proto.RegisterType((*GetAllDustSnReply)(nil), "v1.GetAllDustSnReply")
  468. proto.RegisterType((*DeviceInfoByIdRequest)(nil), "v1.DeviceInfoByIdRequest")
  469. proto.RegisterType((*DeviceInfoByIdReply)(nil), "v1.DeviceInfoByIdReply")
  470. }
  471. func init() {
  472. proto.RegisterFile("device.proto", fileDescriptor_870276a56ac00da5)
  473. }
  474. var fileDescriptor_870276a56ac00da5 = []byte{
  475. // 343 bytes of a gzipped FileDescriptorProto
  476. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x92, 0xcf, 0x4e, 0xc2, 0x40,
  477. 0x10, 0xc6, 0xd3, 0x16, 0x48, 0x18, 0x8d, 0xc2, 0x62, 0xb5, 0x1c, 0x8c, 0xa4, 0x89, 0x91, 0x8b,
  478. 0x12, 0xe2, 0x13, 0x88, 0x24, 0x86, 0x9b, 0x29, 0xf1, 0xe2, 0x41, 0x52, 0xd8, 0x31, 0xa9, 0x96,
  479. 0xdd, 0xb5, 0xbb, 0x60, 0xfa, 0x24, 0x1e, 0x7c, 0x59, 0xb3, 0x7f, 0x50, 0x44, 0x89, 0x57, 0x6f,
  480. 0xbb, 0xd3, 0xd9, 0xef, 0xf7, 0xcd, 0x7c, 0x85, 0x5d, 0x8a, 0xcb, 0x6c, 0x86, 0x17, 0xa2, 0xe0,
  481. 0x8a, 0x13, 0x7f, 0xd9, 0x8f, 0x87, 0xd0, 0x1c, 0x9a, 0xda, 0x88, 0x3d, 0xf2, 0x04, 0x5f, 0x16,
  482. 0x28, 0x15, 0xd9, 0x03, 0x5f, 0xb2, 0xc8, 0xeb, 0x78, 0xdd, 0x7a, 0xe2, 0x4b, 0x46, 0x4e, 0x60,
  483. 0xc7, 0x3e, 0x9c, 0xcc, 0x38, 0xc5, 0xc8, 0xef, 0x78, 0xdd, 0x6a, 0x02, 0xb6, 0x74, 0xcd, 0x29,
  484. 0xc6, 0x6f, 0x1e, 0xec, 0xaf, 0xcb, 0x88, 0xbc, 0x24, 0xc7, 0x00, 0xa2, 0xe0, 0x4f, 0x38, 0x53,
  485. 0x93, 0x8c, 0x1a, 0xb1, 0x20, 0xa9, 0xbb, 0xca, 0x88, 0x12, 0x02, 0x15, 0x96, 0xce, 0xad, 0x58,
  486. 0x3d, 0x31, 0x67, 0xc7, 0x0d, 0xb6, 0x71, 0x2b, 0x9b, 0x5c, 0xd2, 0x80, 0xe0, 0x19, 0xcb, 0xa8,
  487. 0x6a, 0x5e, 0xe8, 0xa3, 0x96, 0xc8, 0x68, 0x54, 0x33, 0x34, 0x3f, 0xa3, 0x31, 0x85, 0xb6, 0x35,
  488. 0x36, 0x56, 0xa9, 0x5a, 0xc8, 0x3b, 0x41, 0x53, 0x85, 0xdb, 0xe6, 0x3c, 0x84, 0x9a, 0x34, 0x6d,
  489. 0x6e, 0x44, 0x77, 0xdb, 0xf4, 0x11, 0xfc, 0x98, 0xbf, 0x0d, 0x47, 0xbf, 0x51, 0x44, 0x5e, 0xc6,
  490. 0x0f, 0x10, 0xda, 0x4f, 0xb7, 0x69, 0x91, 0xce, 0xc7, 0xa8, 0xb6, 0xc1, 0x0f, 0xa0, 0x2a, 0x74,
  491. 0x8b, 0xdb, 0x88, 0xbd, 0xfc, 0x8d, 0x0e, 0xa1, 0xb5, 0xa9, 0xaf, 0xb1, 0x21, 0xb4, 0x6e, 0x50,
  492. 0x5d, 0xe5, 0xf9, 0x70, 0x21, 0xd5, 0x98, 0x39, 0x68, 0x7c, 0x0a, 0xcd, 0xef, 0x65, 0x9d, 0x54,
  493. 0x03, 0x02, 0xc9, 0x64, 0xe4, 0x75, 0x02, 0xbd, 0x45, 0xc9, 0x64, 0x7c, 0xb6, 0x32, 0xad, 0xe3,
  494. 0x1c, 0x94, 0x23, 0xba, 0x66, 0xfa, 0x33, 0x4c, 0xbd, 0xde, 0x77, 0x6f, 0x85, 0xff, 0xea, 0xfc,
  495. 0x37, 0xe1, 0x0f, 0xc2, 0xfb, 0x96, 0xe2, 0xaf, 0x58, 0x9c, 0xcf, 0x39, 0xcb, 0x14, 0x2f, 0x7a,
  496. 0x62, 0xda, 0x5b, 0xf6, 0xa7, 0x35, 0xf3, 0xfb, 0x5f, 0x7e, 0x04, 0x00, 0x00, 0xff, 0xff, 0xaf,
  497. 0x70, 0xc6, 0x9e, 0x0e, 0x03, 0x00, 0x00,
  498. }