dust.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: dust.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 DustMonitorData struct {
  20. Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date"`
  21. Pm10 float64 `protobuf:"fixed64,2,opt,name=pm10,proto3" json:"pm10"`
  22. Pm25 float64 `protobuf:"fixed64,3,opt,name=pm25,proto3" json:"pm25"`
  23. Tsp float64 `protobuf:"fixed64,4,opt,name=tsp,proto3" json:"tsp"`
  24. // 温度
  25. T01 float64 `protobuf:"fixed64,5,opt,name=t01,proto3" json:"t01"`
  26. // 湿度
  27. H01 float64 `protobuf:"fixed64,6,opt,name=h01,proto3" json:"h01"`
  28. // 风向
  29. W01 float64 `protobuf:"fixed64,7,opt,name=w01,proto3" json:"w01"`
  30. // 风速
  31. W02 float64 `protobuf:"fixed64,8,opt,name=w02,proto3" json:"w02"`
  32. // 雨量
  33. R01 float64 `protobuf:"fixed64,9,opt,name=r01,proto3" json:"r01"`
  34. // 气压
  35. P01 float64 `protobuf:"fixed64,10,opt,name=p01,proto3" json:"p01"`
  36. // 噪声
  37. B03 float64 `protobuf:"fixed64,11,opt,name=b03,proto3" json:"b03"`
  38. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  39. XXX_unrecognized []byte `json:"-"`
  40. XXX_sizecache int32 `json:"-"`
  41. }
  42. func (m *DustMonitorData) Reset() { *m = DustMonitorData{} }
  43. func (m *DustMonitorData) String() string { return proto.CompactTextString(m) }
  44. func (*DustMonitorData) ProtoMessage() {}
  45. func (*DustMonitorData) Descriptor() ([]byte, []int) {
  46. return fileDescriptor_c1229a132507a4a7, []int{0}
  47. }
  48. func (m *DustMonitorData) XXX_Unmarshal(b []byte) error {
  49. return xxx_messageInfo_DustMonitorData.Unmarshal(m, b)
  50. }
  51. func (m *DustMonitorData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  52. return xxx_messageInfo_DustMonitorData.Marshal(b, m, deterministic)
  53. }
  54. func (m *DustMonitorData) XXX_Merge(src proto.Message) {
  55. xxx_messageInfo_DustMonitorData.Merge(m, src)
  56. }
  57. func (m *DustMonitorData) XXX_Size() int {
  58. return xxx_messageInfo_DustMonitorData.Size(m)
  59. }
  60. func (m *DustMonitorData) XXX_DiscardUnknown() {
  61. xxx_messageInfo_DustMonitorData.DiscardUnknown(m)
  62. }
  63. var xxx_messageInfo_DustMonitorData proto.InternalMessageInfo
  64. func (m *DustMonitorData) GetDate() string {
  65. if m != nil {
  66. return m.Date
  67. }
  68. return ""
  69. }
  70. func (m *DustMonitorData) GetPm10() float64 {
  71. if m != nil {
  72. return m.Pm10
  73. }
  74. return 0
  75. }
  76. func (m *DustMonitorData) GetPm25() float64 {
  77. if m != nil {
  78. return m.Pm25
  79. }
  80. return 0
  81. }
  82. func (m *DustMonitorData) GetTsp() float64 {
  83. if m != nil {
  84. return m.Tsp
  85. }
  86. return 0
  87. }
  88. func (m *DustMonitorData) GetT01() float64 {
  89. if m != nil {
  90. return m.T01
  91. }
  92. return 0
  93. }
  94. func (m *DustMonitorData) GetH01() float64 {
  95. if m != nil {
  96. return m.H01
  97. }
  98. return 0
  99. }
  100. func (m *DustMonitorData) GetW01() float64 {
  101. if m != nil {
  102. return m.W01
  103. }
  104. return 0
  105. }
  106. func (m *DustMonitorData) GetW02() float64 {
  107. if m != nil {
  108. return m.W02
  109. }
  110. return 0
  111. }
  112. func (m *DustMonitorData) GetR01() float64 {
  113. if m != nil {
  114. return m.R01
  115. }
  116. return 0
  117. }
  118. func (m *DustMonitorData) GetP01() float64 {
  119. if m != nil {
  120. return m.P01
  121. }
  122. return 0
  123. }
  124. func (m *DustMonitorData) GetB03() float64 {
  125. if m != nil {
  126. return m.B03
  127. }
  128. return 0
  129. }
  130. type LatestDustMonitorDataRequest struct {
  131. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  132. Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type"`
  133. ProjectId int64 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  134. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  135. XXX_unrecognized []byte `json:"-"`
  136. XXX_sizecache int32 `json:"-"`
  137. }
  138. func (m *LatestDustMonitorDataRequest) Reset() { *m = LatestDustMonitorDataRequest{} }
  139. func (m *LatestDustMonitorDataRequest) String() string { return proto.CompactTextString(m) }
  140. func (*LatestDustMonitorDataRequest) ProtoMessage() {}
  141. func (*LatestDustMonitorDataRequest) Descriptor() ([]byte, []int) {
  142. return fileDescriptor_c1229a132507a4a7, []int{1}
  143. }
  144. func (m *LatestDustMonitorDataRequest) XXX_Unmarshal(b []byte) error {
  145. return xxx_messageInfo_LatestDustMonitorDataRequest.Unmarshal(m, b)
  146. }
  147. func (m *LatestDustMonitorDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  148. return xxx_messageInfo_LatestDustMonitorDataRequest.Marshal(b, m, deterministic)
  149. }
  150. func (m *LatestDustMonitorDataRequest) XXX_Merge(src proto.Message) {
  151. xxx_messageInfo_LatestDustMonitorDataRequest.Merge(m, src)
  152. }
  153. func (m *LatestDustMonitorDataRequest) XXX_Size() int {
  154. return xxx_messageInfo_LatestDustMonitorDataRequest.Size(m)
  155. }
  156. func (m *LatestDustMonitorDataRequest) XXX_DiscardUnknown() {
  157. xxx_messageInfo_LatestDustMonitorDataRequest.DiscardUnknown(m)
  158. }
  159. var xxx_messageInfo_LatestDustMonitorDataRequest proto.InternalMessageInfo
  160. func (m *LatestDustMonitorDataRequest) GetSn() string {
  161. if m != nil {
  162. return m.Sn
  163. }
  164. return ""
  165. }
  166. func (m *LatestDustMonitorDataRequest) GetType() int32 {
  167. if m != nil {
  168. return m.Type
  169. }
  170. return 0
  171. }
  172. func (m *LatestDustMonitorDataRequest) GetProjectId() int64 {
  173. if m != nil {
  174. return m.ProjectId
  175. }
  176. return 0
  177. }
  178. type LatestDustMonitorDataReply struct {
  179. Data *DustMonitorData `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
  180. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  181. XXX_unrecognized []byte `json:"-"`
  182. XXX_sizecache int32 `json:"-"`
  183. }
  184. func (m *LatestDustMonitorDataReply) Reset() { *m = LatestDustMonitorDataReply{} }
  185. func (m *LatestDustMonitorDataReply) String() string { return proto.CompactTextString(m) }
  186. func (*LatestDustMonitorDataReply) ProtoMessage() {}
  187. func (*LatestDustMonitorDataReply) Descriptor() ([]byte, []int) {
  188. return fileDescriptor_c1229a132507a4a7, []int{2}
  189. }
  190. func (m *LatestDustMonitorDataReply) XXX_Unmarshal(b []byte) error {
  191. return xxx_messageInfo_LatestDustMonitorDataReply.Unmarshal(m, b)
  192. }
  193. func (m *LatestDustMonitorDataReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  194. return xxx_messageInfo_LatestDustMonitorDataReply.Marshal(b, m, deterministic)
  195. }
  196. func (m *LatestDustMonitorDataReply) XXX_Merge(src proto.Message) {
  197. xxx_messageInfo_LatestDustMonitorDataReply.Merge(m, src)
  198. }
  199. func (m *LatestDustMonitorDataReply) XXX_Size() int {
  200. return xxx_messageInfo_LatestDustMonitorDataReply.Size(m)
  201. }
  202. func (m *LatestDustMonitorDataReply) XXX_DiscardUnknown() {
  203. xxx_messageInfo_LatestDustMonitorDataReply.DiscardUnknown(m)
  204. }
  205. var xxx_messageInfo_LatestDustMonitorDataReply proto.InternalMessageInfo
  206. func (m *LatestDustMonitorDataReply) GetData() *DustMonitorData {
  207. if m != nil {
  208. return m.Data
  209. }
  210. return nil
  211. }
  212. type DustMonitorHistoryRequest struct {
  213. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  214. Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type"`
  215. Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time"`
  216. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  217. XXX_unrecognized []byte `json:"-"`
  218. XXX_sizecache int32 `json:"-"`
  219. }
  220. func (m *DustMonitorHistoryRequest) Reset() { *m = DustMonitorHistoryRequest{} }
  221. func (m *DustMonitorHistoryRequest) String() string { return proto.CompactTextString(m) }
  222. func (*DustMonitorHistoryRequest) ProtoMessage() {}
  223. func (*DustMonitorHistoryRequest) Descriptor() ([]byte, []int) {
  224. return fileDescriptor_c1229a132507a4a7, []int{3}
  225. }
  226. func (m *DustMonitorHistoryRequest) XXX_Unmarshal(b []byte) error {
  227. return xxx_messageInfo_DustMonitorHistoryRequest.Unmarshal(m, b)
  228. }
  229. func (m *DustMonitorHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  230. return xxx_messageInfo_DustMonitorHistoryRequest.Marshal(b, m, deterministic)
  231. }
  232. func (m *DustMonitorHistoryRequest) XXX_Merge(src proto.Message) {
  233. xxx_messageInfo_DustMonitorHistoryRequest.Merge(m, src)
  234. }
  235. func (m *DustMonitorHistoryRequest) XXX_Size() int {
  236. return xxx_messageInfo_DustMonitorHistoryRequest.Size(m)
  237. }
  238. func (m *DustMonitorHistoryRequest) XXX_DiscardUnknown() {
  239. xxx_messageInfo_DustMonitorHistoryRequest.DiscardUnknown(m)
  240. }
  241. var xxx_messageInfo_DustMonitorHistoryRequest proto.InternalMessageInfo
  242. func (m *DustMonitorHistoryRequest) GetSn() string {
  243. if m != nil {
  244. return m.Sn
  245. }
  246. return ""
  247. }
  248. func (m *DustMonitorHistoryRequest) GetType() int32 {
  249. if m != nil {
  250. return m.Type
  251. }
  252. return 0
  253. }
  254. func (m *DustMonitorHistoryRequest) GetTime() int64 {
  255. if m != nil {
  256. return m.Time
  257. }
  258. return 0
  259. }
  260. type DustMonitorHistoryReply struct {
  261. List []*DustMonitorData `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
  262. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  263. XXX_unrecognized []byte `json:"-"`
  264. XXX_sizecache int32 `json:"-"`
  265. }
  266. func (m *DustMonitorHistoryReply) Reset() { *m = DustMonitorHistoryReply{} }
  267. func (m *DustMonitorHistoryReply) String() string { return proto.CompactTextString(m) }
  268. func (*DustMonitorHistoryReply) ProtoMessage() {}
  269. func (*DustMonitorHistoryReply) Descriptor() ([]byte, []int) {
  270. return fileDescriptor_c1229a132507a4a7, []int{4}
  271. }
  272. func (m *DustMonitorHistoryReply) XXX_Unmarshal(b []byte) error {
  273. return xxx_messageInfo_DustMonitorHistoryReply.Unmarshal(m, b)
  274. }
  275. func (m *DustMonitorHistoryReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  276. return xxx_messageInfo_DustMonitorHistoryReply.Marshal(b, m, deterministic)
  277. }
  278. func (m *DustMonitorHistoryReply) XXX_Merge(src proto.Message) {
  279. xxx_messageInfo_DustMonitorHistoryReply.Merge(m, src)
  280. }
  281. func (m *DustMonitorHistoryReply) XXX_Size() int {
  282. return xxx_messageInfo_DustMonitorHistoryReply.Size(m)
  283. }
  284. func (m *DustMonitorHistoryReply) XXX_DiscardUnknown() {
  285. xxx_messageInfo_DustMonitorHistoryReply.DiscardUnknown(m)
  286. }
  287. var xxx_messageInfo_DustMonitorHistoryReply proto.InternalMessageInfo
  288. func (m *DustMonitorHistoryReply) GetList() []*DustMonitorData {
  289. if m != nil {
  290. return m.List
  291. }
  292. return nil
  293. }
  294. type DustListRequest struct {
  295. ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  296. Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page"`
  297. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
  298. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  299. XXX_unrecognized []byte `json:"-"`
  300. XXX_sizecache int32 `json:"-"`
  301. }
  302. func (m *DustListRequest) Reset() { *m = DustListRequest{} }
  303. func (m *DustListRequest) String() string { return proto.CompactTextString(m) }
  304. func (*DustListRequest) ProtoMessage() {}
  305. func (*DustListRequest) Descriptor() ([]byte, []int) {
  306. return fileDescriptor_c1229a132507a4a7, []int{5}
  307. }
  308. func (m *DustListRequest) XXX_Unmarshal(b []byte) error {
  309. return xxx_messageInfo_DustListRequest.Unmarshal(m, b)
  310. }
  311. func (m *DustListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  312. return xxx_messageInfo_DustListRequest.Marshal(b, m, deterministic)
  313. }
  314. func (m *DustListRequest) XXX_Merge(src proto.Message) {
  315. xxx_messageInfo_DustListRequest.Merge(m, src)
  316. }
  317. func (m *DustListRequest) XXX_Size() int {
  318. return xxx_messageInfo_DustListRequest.Size(m)
  319. }
  320. func (m *DustListRequest) XXX_DiscardUnknown() {
  321. xxx_messageInfo_DustListRequest.DiscardUnknown(m)
  322. }
  323. var xxx_messageInfo_DustListRequest proto.InternalMessageInfo
  324. func (m *DustListRequest) GetProjectId() int64 {
  325. if m != nil {
  326. return m.ProjectId
  327. }
  328. return 0
  329. }
  330. func (m *DustListRequest) GetPage() int32 {
  331. if m != nil {
  332. return m.Page
  333. }
  334. return 0
  335. }
  336. func (m *DustListRequest) GetPageSize() int32 {
  337. if m != nil {
  338. return m.PageSize
  339. }
  340. return 0
  341. }
  342. type DustListItem struct {
  343. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  344. Sn string `protobuf:"bytes,2,opt,name=sn,proto3" json:"sn"`
  345. State int32 `protobuf:"varint,3,opt,name=state,proto3" json:"state"`
  346. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name"`
  347. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  348. XXX_unrecognized []byte `json:"-"`
  349. XXX_sizecache int32 `json:"-"`
  350. }
  351. func (m *DustListItem) Reset() { *m = DustListItem{} }
  352. func (m *DustListItem) String() string { return proto.CompactTextString(m) }
  353. func (*DustListItem) ProtoMessage() {}
  354. func (*DustListItem) Descriptor() ([]byte, []int) {
  355. return fileDescriptor_c1229a132507a4a7, []int{6}
  356. }
  357. func (m *DustListItem) XXX_Unmarshal(b []byte) error {
  358. return xxx_messageInfo_DustListItem.Unmarshal(m, b)
  359. }
  360. func (m *DustListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  361. return xxx_messageInfo_DustListItem.Marshal(b, m, deterministic)
  362. }
  363. func (m *DustListItem) XXX_Merge(src proto.Message) {
  364. xxx_messageInfo_DustListItem.Merge(m, src)
  365. }
  366. func (m *DustListItem) XXX_Size() int {
  367. return xxx_messageInfo_DustListItem.Size(m)
  368. }
  369. func (m *DustListItem) XXX_DiscardUnknown() {
  370. xxx_messageInfo_DustListItem.DiscardUnknown(m)
  371. }
  372. var xxx_messageInfo_DustListItem proto.InternalMessageInfo
  373. func (m *DustListItem) GetId() int64 {
  374. if m != nil {
  375. return m.Id
  376. }
  377. return 0
  378. }
  379. func (m *DustListItem) GetSn() string {
  380. if m != nil {
  381. return m.Sn
  382. }
  383. return ""
  384. }
  385. func (m *DustListItem) GetState() int32 {
  386. if m != nil {
  387. return m.State
  388. }
  389. return 0
  390. }
  391. func (m *DustListItem) GetName() string {
  392. if m != nil {
  393. return m.Name
  394. }
  395. return ""
  396. }
  397. type DustListReply struct {
  398. Online int64 `protobuf:"varint,1,opt,name=online,proto3" json:"online"`
  399. Offline int64 `protobuf:"varint,2,opt,name=offline,proto3" json:"offline"`
  400. Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total"`
  401. Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page"`
  402. PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
  403. List []*DustListItem `protobuf:"bytes,6,rep,name=list,proto3" json:"list"`
  404. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  405. XXX_unrecognized []byte `json:"-"`
  406. XXX_sizecache int32 `json:"-"`
  407. }
  408. func (m *DustListReply) Reset() { *m = DustListReply{} }
  409. func (m *DustListReply) String() string { return proto.CompactTextString(m) }
  410. func (*DustListReply) ProtoMessage() {}
  411. func (*DustListReply) Descriptor() ([]byte, []int) {
  412. return fileDescriptor_c1229a132507a4a7, []int{7}
  413. }
  414. func (m *DustListReply) XXX_Unmarshal(b []byte) error {
  415. return xxx_messageInfo_DustListReply.Unmarshal(m, b)
  416. }
  417. func (m *DustListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  418. return xxx_messageInfo_DustListReply.Marshal(b, m, deterministic)
  419. }
  420. func (m *DustListReply) XXX_Merge(src proto.Message) {
  421. xxx_messageInfo_DustListReply.Merge(m, src)
  422. }
  423. func (m *DustListReply) XXX_Size() int {
  424. return xxx_messageInfo_DustListReply.Size(m)
  425. }
  426. func (m *DustListReply) XXX_DiscardUnknown() {
  427. xxx_messageInfo_DustListReply.DiscardUnknown(m)
  428. }
  429. var xxx_messageInfo_DustListReply proto.InternalMessageInfo
  430. func (m *DustListReply) GetOnline() int64 {
  431. if m != nil {
  432. return m.Online
  433. }
  434. return 0
  435. }
  436. func (m *DustListReply) GetOffline() int64 {
  437. if m != nil {
  438. return m.Offline
  439. }
  440. return 0
  441. }
  442. func (m *DustListReply) GetTotal() int64 {
  443. if m != nil {
  444. return m.Total
  445. }
  446. return 0
  447. }
  448. func (m *DustListReply) GetPage() int32 {
  449. if m != nil {
  450. return m.Page
  451. }
  452. return 0
  453. }
  454. func (m *DustListReply) GetPageSize() int32 {
  455. if m != nil {
  456. return m.PageSize
  457. }
  458. return 0
  459. }
  460. func (m *DustListReply) GetList() []*DustListItem {
  461. if m != nil {
  462. return m.List
  463. }
  464. return nil
  465. }
  466. type DustAqiRequest struct {
  467. Sn string `protobuf:"bytes,1,opt,name=sn,proto3" json:"sn"`
  468. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  469. XXX_unrecognized []byte `json:"-"`
  470. XXX_sizecache int32 `json:"-"`
  471. }
  472. func (m *DustAqiRequest) Reset() { *m = DustAqiRequest{} }
  473. func (m *DustAqiRequest) String() string { return proto.CompactTextString(m) }
  474. func (*DustAqiRequest) ProtoMessage() {}
  475. func (*DustAqiRequest) Descriptor() ([]byte, []int) {
  476. return fileDescriptor_c1229a132507a4a7, []int{8}
  477. }
  478. func (m *DustAqiRequest) XXX_Unmarshal(b []byte) error {
  479. return xxx_messageInfo_DustAqiRequest.Unmarshal(m, b)
  480. }
  481. func (m *DustAqiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  482. return xxx_messageInfo_DustAqiRequest.Marshal(b, m, deterministic)
  483. }
  484. func (m *DustAqiRequest) XXX_Merge(src proto.Message) {
  485. xxx_messageInfo_DustAqiRequest.Merge(m, src)
  486. }
  487. func (m *DustAqiRequest) XXX_Size() int {
  488. return xxx_messageInfo_DustAqiRequest.Size(m)
  489. }
  490. func (m *DustAqiRequest) XXX_DiscardUnknown() {
  491. xxx_messageInfo_DustAqiRequest.DiscardUnknown(m)
  492. }
  493. var xxx_messageInfo_DustAqiRequest proto.InternalMessageInfo
  494. func (m *DustAqiRequest) GetSn() string {
  495. if m != nil {
  496. return m.Sn
  497. }
  498. return ""
  499. }
  500. type DustAqiReply struct {
  501. Aqi float64 `protobuf:"fixed64,1,opt,name=aqi,proto3" json:"aqi"`
  502. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  503. XXX_unrecognized []byte `json:"-"`
  504. XXX_sizecache int32 `json:"-"`
  505. }
  506. func (m *DustAqiReply) Reset() { *m = DustAqiReply{} }
  507. func (m *DustAqiReply) String() string { return proto.CompactTextString(m) }
  508. func (*DustAqiReply) ProtoMessage() {}
  509. func (*DustAqiReply) Descriptor() ([]byte, []int) {
  510. return fileDescriptor_c1229a132507a4a7, []int{9}
  511. }
  512. func (m *DustAqiReply) XXX_Unmarshal(b []byte) error {
  513. return xxx_messageInfo_DustAqiReply.Unmarshal(m, b)
  514. }
  515. func (m *DustAqiReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  516. return xxx_messageInfo_DustAqiReply.Marshal(b, m, deterministic)
  517. }
  518. func (m *DustAqiReply) XXX_Merge(src proto.Message) {
  519. xxx_messageInfo_DustAqiReply.Merge(m, src)
  520. }
  521. func (m *DustAqiReply) XXX_Size() int {
  522. return xxx_messageInfo_DustAqiReply.Size(m)
  523. }
  524. func (m *DustAqiReply) XXX_DiscardUnknown() {
  525. xxx_messageInfo_DustAqiReply.DiscardUnknown(m)
  526. }
  527. var xxx_messageInfo_DustAqiReply proto.InternalMessageInfo
  528. func (m *DustAqiReply) GetAqi() float64 {
  529. if m != nil {
  530. return m.Aqi
  531. }
  532. return 0
  533. }
  534. func init() {
  535. proto.RegisterType((*DustMonitorData)(nil), "v1.DustMonitorData")
  536. proto.RegisterType((*LatestDustMonitorDataRequest)(nil), "v1.LatestDustMonitorDataRequest")
  537. proto.RegisterType((*LatestDustMonitorDataReply)(nil), "v1.LatestDustMonitorDataReply")
  538. proto.RegisterType((*DustMonitorHistoryRequest)(nil), "v1.DustMonitorHistoryRequest")
  539. proto.RegisterType((*DustMonitorHistoryReply)(nil), "v1.DustMonitorHistoryReply")
  540. proto.RegisterType((*DustListRequest)(nil), "v1.DustListRequest")
  541. proto.RegisterType((*DustListItem)(nil), "v1.DustListItem")
  542. proto.RegisterType((*DustListReply)(nil), "v1.DustListReply")
  543. proto.RegisterType((*DustAqiRequest)(nil), "v1.DustAqiRequest")
  544. proto.RegisterType((*DustAqiReply)(nil), "v1.DustAqiReply")
  545. }
  546. func init() {
  547. proto.RegisterFile("dust.proto", fileDescriptor_c1229a132507a4a7)
  548. }
  549. var fileDescriptor_c1229a132507a4a7 = []byte{
  550. // 511 bytes of a gzipped FileDescriptorProto
  551. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdb, 0x6e, 0x13, 0x3f,
  552. 0x10, 0xc6, 0xb5, 0x9b, 0x43, 0x9b, 0xe9, 0xff, 0x5f, 0x22, 0x83, 0xc0, 0x9c, 0xa4, 0xd5, 0x02,
  553. 0xa2, 0x37, 0x49, 0xd7, 0x1b, 0xf5, 0x01, 0xa8, 0x8a, 0x44, 0xa5, 0x72, 0xb3, 0xbd, 0x41, 0xdc,
  554. 0x54, 0x0e, 0xeb, 0xa6, 0x46, 0xd9, 0x43, 0xd6, 0x93, 0x44, 0xe9, 0x43, 0xf1, 0x46, 0xbc, 0x0b,
  555. 0xf2, 0xd8, 0x1b, 0x68, 0x44, 0x2e, 0xb8, 0xca, 0xf8, 0xe7, 0x91, 0xe7, 0xfb, 0xbe, 0x8c, 0x16,
  556. 0x20, 0x5f, 0x1a, 0x1c, 0xd7, 0x4d, 0x85, 0x15, 0x0b, 0x57, 0x22, 0xfe, 0x19, 0xc0, 0xa3, 0x8b,
  557. 0xa5, 0xc1, 0xcf, 0x55, 0xa9, 0xb1, 0x6a, 0x2e, 0x24, 0x4a, 0xc6, 0xa0, 0x9b, 0x4b, 0x54, 0x3c,
  558. 0x88, 0x82, 0x93, 0x41, 0x46, 0xb5, 0x65, 0x75, 0x21, 0x12, 0x1e, 0x46, 0xc1, 0x49, 0x90, 0x51,
  559. 0xed, 0x58, 0x7a, 0xc6, 0x3b, 0x2d, 0x4b, 0xcf, 0xd8, 0x10, 0x3a, 0x68, 0x6a, 0xde, 0x25, 0x64,
  560. 0x4b, 0x22, 0x89, 0xe0, 0x3d, 0x4f, 0x12, 0x61, 0xc9, 0x5d, 0x22, 0x78, 0xdf, 0x91, 0x3b, 0x47,
  561. 0xd6, 0x89, 0xe0, 0x07, 0x8e, 0xac, 0x5b, 0x92, 0xf2, 0xc3, 0x96, 0xa4, 0x96, 0x34, 0x89, 0xe0,
  562. 0x03, 0x47, 0x1a, 0xd7, 0x53, 0x27, 0x82, 0x83, 0x23, 0xb5, 0x23, 0xd3, 0x64, 0xc2, 0x8f, 0x1c,
  563. 0x99, 0x26, 0x93, 0x58, 0xc2, 0xab, 0x2b, 0x89, 0xca, 0xe0, 0x8e, 0xc9, 0x4c, 0x2d, 0x96, 0xca,
  564. 0x20, 0x3b, 0x86, 0xd0, 0x94, 0xde, 0x69, 0x68, 0x4a, 0xeb, 0x09, 0x37, 0xb5, 0x22, 0x9f, 0xbd,
  565. 0x8c, 0x6a, 0xf6, 0x1a, 0xa0, 0x6e, 0xaa, 0xef, 0xea, 0x1b, 0xde, 0xe8, 0x9c, 0xdc, 0x76, 0xb2,
  566. 0x81, 0x27, 0x97, 0x79, 0xfc, 0x11, 0x5e, 0xec, 0x19, 0x51, 0xcf, 0x37, 0xec, 0x3d, 0x85, 0x29,
  567. 0x69, 0xc4, 0x51, 0xfa, 0x78, 0xbc, 0x12, 0xe3, 0xdd, 0x3e, 0x6a, 0x88, 0xaf, 0xe1, 0xf9, 0x1f,
  568. 0x17, 0x9f, 0xb4, 0xc1, 0xaa, 0xd9, 0xfc, 0x8b, 0x4c, 0xcb, 0x74, 0xa1, 0xbc, 0x40, 0xaa, 0xe3,
  569. 0x73, 0x78, 0xf6, 0xb7, 0x47, 0xbd, 0xb0, 0xb9, 0x36, 0xc8, 0x83, 0xa8, 0xb3, 0x57, 0x98, 0x6d,
  570. 0x88, 0xa5, 0xdb, 0x90, 0x2b, 0x6d, 0xb0, 0x95, 0xf3, 0x30, 0x91, 0x60, 0x27, 0x11, 0x5a, 0x0c,
  571. 0x39, 0xdb, 0xaa, 0xb3, 0x35, 0x7b, 0x09, 0x03, 0xfb, 0x7b, 0x63, 0xf4, 0xbd, 0x93, 0xd8, 0xcb,
  572. 0x0e, 0x2d, 0xb8, 0xd6, 0xf7, 0x2a, 0xfe, 0x02, 0xff, 0xb5, 0x23, 0x2e, 0x51, 0x15, 0xd6, 0xee,
  573. 0xf6, 0xdd, 0x50, 0xe7, 0xde, 0x7e, 0xb8, 0xb5, 0xff, 0x04, 0x7a, 0x06, 0xed, 0x8a, 0xba, 0x87,
  574. 0xdc, 0xc1, 0x8e, 0x2d, 0x65, 0xa1, 0x68, 0xf9, 0x06, 0x19, 0xd5, 0xf1, 0x8f, 0x00, 0xfe, 0xff,
  575. 0xad, 0xde, 0xfa, 0x7e, 0x0a, 0xfd, 0xaa, 0x9c, 0xeb, 0x52, 0xf9, 0xf7, 0xfd, 0x89, 0x71, 0x38,
  576. 0xa8, 0x6e, 0x6f, 0xe9, 0x22, 0xa4, 0x8b, 0xf6, 0x68, 0xa7, 0x61, 0x85, 0x72, 0xee, 0x93, 0x75,
  577. 0x87, 0xad, 0xc9, 0xee, 0x3e, 0x93, 0xbd, 0x87, 0x26, 0xd9, 0x5b, 0x1f, 0x78, 0x9f, 0x02, 0x1f,
  578. 0xb6, 0x81, 0xb7, 0xa6, 0x7d, 0xda, 0x11, 0x1c, 0x5b, 0xfa, 0x61, 0xa1, 0xf7, 0xfc, 0xf7, 0x71,
  579. 0xe4, 0xc2, 0xa2, 0x0e, 0x6b, 0x68, 0x08, 0x1d, 0xb9, 0xd0, 0xd4, 0x10, 0x64, 0xb6, 0x3c, 0x7f,
  580. 0xf7, 0xf5, 0x8d, 0x29, 0x64, 0x83, 0x23, 0xa3, 0x51, 0x8d, 0x0a, 0x59, 0xca, 0x99, 0x2a, 0x54,
  581. 0x89, 0xa3, 0x99, 0x44, 0xb5, 0x96, 0x9b, 0xd3, 0x7a, 0x7a, 0xba, 0x12, 0xd3, 0x3e, 0x7d, 0x06,
  582. 0x26, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x46, 0xfa, 0x8f, 0x22, 0x14, 0x04, 0x00, 0x00,
  583. }