GetChrpannelInfoRes.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: api/LargeScreenData.proto
  5. namespace Proto\Api;
  6. use Google\Protobuf\Internal\GPBType;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\GPBUtil;
  9. /**
  10. * Generated from protobuf message <code>proto.api.GetChrpannelInfoRes</code>
  11. */
  12. class GetChrpannelInfoRes extends \Google\Protobuf\Internal\Message
  13. {
  14. /**
  15. * 充电桩名称
  16. *
  17. * Generated from protobuf field <code>string chrpannel_name = 1;</code>
  18. */
  19. protected $chrpannel_name = '';
  20. /**
  21. * 充电桩编号
  22. *
  23. * Generated from protobuf field <code>string chrpannel_sn = 2;</code>
  24. */
  25. protected $chrpannel_sn = '';
  26. /**
  27. * 在线状态 1-在线 0-离线
  28. *
  29. * Generated from protobuf field <code>int32 online_status = 3;</code>
  30. */
  31. protected $online_status = 0;
  32. /**
  33. * 通讯时间 时间长秒
  34. *
  35. * Generated from protobuf field <code>int64 comm_time = 4;</code>
  36. */
  37. protected $comm_time = 0;
  38. /**
  39. * 充电座数量
  40. *
  41. * Generated from protobuf field <code>int32 box_count = 5;</code>
  42. */
  43. protected $box_count = 0;
  44. /**
  45. * 额定容量
  46. *
  47. * Generated from protobuf field <code>int32 capacity = 6;</code>
  48. */
  49. protected $capacity = 0;
  50. /**
  51. * 软件版本
  52. *
  53. * Generated from protobuf field <code>string software_version = 7;</code>
  54. */
  55. protected $software_version = '';
  56. /**
  57. * 硬件版本
  58. *
  59. * Generated from protobuf field <code>string hardware_version = 8;</code>
  60. */
  61. protected $hardware_version = '';
  62. /**
  63. * 充电桩生产日期 时间戳秒
  64. *
  65. * Generated from protobuf field <code>string chrpannel_date = 9;</code>
  66. */
  67. protected $chrpannel_date = '';
  68. /**
  69. * 本周充电度数数组,下标0-6代表周一到周日
  70. *
  71. * Generated from protobuf field <code>repeated .proto.api.GetChrpannelInfoRes.ChargePileCount charge_pile_counts = 10;</code>
  72. */
  73. private $charge_pile_counts;
  74. /**
  75. * 端口
  76. *
  77. * Generated from protobuf field <code>repeated .proto.api.GetChrpannelInfoRes.BoxState box_list = 11;</code>
  78. */
  79. private $box_list;
  80. /**
  81. * 经度
  82. *
  83. * Generated from protobuf field <code>float longitude = 12;</code>
  84. */
  85. protected $longitude = 0.0;
  86. /**
  87. * 纬度
  88. *
  89. * Generated from protobuf field <code>float latitude = 13;</code>
  90. */
  91. protected $latitude = 0.0;
  92. /**
  93. * Constructor.
  94. *
  95. * @param array $data {
  96. * Optional. Data for populating the Message object.
  97. *
  98. * @type string $chrpannel_name
  99. * 充电桩名称
  100. * @type string $chrpannel_sn
  101. * 充电桩编号
  102. * @type int $online_status
  103. * 在线状态 1-在线 0-离线
  104. * @type int|string $comm_time
  105. * 通讯时间 时间长秒
  106. * @type int $box_count
  107. * 充电座数量
  108. * @type int $capacity
  109. * 额定容量
  110. * @type string $software_version
  111. * 软件版本
  112. * @type string $hardware_version
  113. * 硬件版本
  114. * @type string $chrpannel_date
  115. * 充电桩生产日期 时间戳秒
  116. * @type array<\Proto\Api\GetChrpannelInfoRes\ChargePileCount>|\Google\Protobuf\Internal\RepeatedField $charge_pile_counts
  117. * 本周充电度数数组,下标0-6代表周一到周日
  118. * @type array<\Proto\Api\GetChrpannelInfoRes\BoxState>|\Google\Protobuf\Internal\RepeatedField $box_list
  119. * 端口
  120. * @type float $longitude
  121. * 经度
  122. * @type float $latitude
  123. * 纬度
  124. * }
  125. */
  126. public function __construct($data = NULL) {
  127. \GPBMetadata\Api\LargeScreenData::initOnce();
  128. parent::__construct($data);
  129. }
  130. /**
  131. * 充电桩名称
  132. *
  133. * Generated from protobuf field <code>string chrpannel_name = 1;</code>
  134. * @return string
  135. */
  136. public function getChrpannelName()
  137. {
  138. return $this->chrpannel_name;
  139. }
  140. /**
  141. * 充电桩名称
  142. *
  143. * Generated from protobuf field <code>string chrpannel_name = 1;</code>
  144. * @param string $var
  145. * @return $this
  146. */
  147. public function setChrpannelName($var)
  148. {
  149. GPBUtil::checkString($var, True);
  150. $this->chrpannel_name = $var;
  151. return $this;
  152. }
  153. /**
  154. * 充电桩编号
  155. *
  156. * Generated from protobuf field <code>string chrpannel_sn = 2;</code>
  157. * @return string
  158. */
  159. public function getChrpannelSn()
  160. {
  161. return $this->chrpannel_sn;
  162. }
  163. /**
  164. * 充电桩编号
  165. *
  166. * Generated from protobuf field <code>string chrpannel_sn = 2;</code>
  167. * @param string $var
  168. * @return $this
  169. */
  170. public function setChrpannelSn($var)
  171. {
  172. GPBUtil::checkString($var, True);
  173. $this->chrpannel_sn = $var;
  174. return $this;
  175. }
  176. /**
  177. * 在线状态 1-在线 0-离线
  178. *
  179. * Generated from protobuf field <code>int32 online_status = 3;</code>
  180. * @return int
  181. */
  182. public function getOnlineStatus()
  183. {
  184. return $this->online_status;
  185. }
  186. /**
  187. * 在线状态 1-在线 0-离线
  188. *
  189. * Generated from protobuf field <code>int32 online_status = 3;</code>
  190. * @param int $var
  191. * @return $this
  192. */
  193. public function setOnlineStatus($var)
  194. {
  195. GPBUtil::checkInt32($var);
  196. $this->online_status = $var;
  197. return $this;
  198. }
  199. /**
  200. * 通讯时间 时间长秒
  201. *
  202. * Generated from protobuf field <code>int64 comm_time = 4;</code>
  203. * @return int|string
  204. */
  205. public function getCommTime()
  206. {
  207. return $this->comm_time;
  208. }
  209. /**
  210. * 通讯时间 时间长秒
  211. *
  212. * Generated from protobuf field <code>int64 comm_time = 4;</code>
  213. * @param int|string $var
  214. * @return $this
  215. */
  216. public function setCommTime($var)
  217. {
  218. GPBUtil::checkInt64($var);
  219. $this->comm_time = $var;
  220. return $this;
  221. }
  222. /**
  223. * 充电座数量
  224. *
  225. * Generated from protobuf field <code>int32 box_count = 5;</code>
  226. * @return int
  227. */
  228. public function getBoxCount()
  229. {
  230. return $this->box_count;
  231. }
  232. /**
  233. * 充电座数量
  234. *
  235. * Generated from protobuf field <code>int32 box_count = 5;</code>
  236. * @param int $var
  237. * @return $this
  238. */
  239. public function setBoxCount($var)
  240. {
  241. GPBUtil::checkInt32($var);
  242. $this->box_count = $var;
  243. return $this;
  244. }
  245. /**
  246. * 额定容量
  247. *
  248. * Generated from protobuf field <code>int32 capacity = 6;</code>
  249. * @return int
  250. */
  251. public function getCapacity()
  252. {
  253. return $this->capacity;
  254. }
  255. /**
  256. * 额定容量
  257. *
  258. * Generated from protobuf field <code>int32 capacity = 6;</code>
  259. * @param int $var
  260. * @return $this
  261. */
  262. public function setCapacity($var)
  263. {
  264. GPBUtil::checkInt32($var);
  265. $this->capacity = $var;
  266. return $this;
  267. }
  268. /**
  269. * 软件版本
  270. *
  271. * Generated from protobuf field <code>string software_version = 7;</code>
  272. * @return string
  273. */
  274. public function getSoftwareVersion()
  275. {
  276. return $this->software_version;
  277. }
  278. /**
  279. * 软件版本
  280. *
  281. * Generated from protobuf field <code>string software_version = 7;</code>
  282. * @param string $var
  283. * @return $this
  284. */
  285. public function setSoftwareVersion($var)
  286. {
  287. GPBUtil::checkString($var, True);
  288. $this->software_version = $var;
  289. return $this;
  290. }
  291. /**
  292. * 硬件版本
  293. *
  294. * Generated from protobuf field <code>string hardware_version = 8;</code>
  295. * @return string
  296. */
  297. public function getHardwareVersion()
  298. {
  299. return $this->hardware_version;
  300. }
  301. /**
  302. * 硬件版本
  303. *
  304. * Generated from protobuf field <code>string hardware_version = 8;</code>
  305. * @param string $var
  306. * @return $this
  307. */
  308. public function setHardwareVersion($var)
  309. {
  310. GPBUtil::checkString($var, True);
  311. $this->hardware_version = $var;
  312. return $this;
  313. }
  314. /**
  315. * 充电桩生产日期 时间戳秒
  316. *
  317. * Generated from protobuf field <code>string chrpannel_date = 9;</code>
  318. * @return string
  319. */
  320. public function getChrpannelDate()
  321. {
  322. return $this->chrpannel_date;
  323. }
  324. /**
  325. * 充电桩生产日期 时间戳秒
  326. *
  327. * Generated from protobuf field <code>string chrpannel_date = 9;</code>
  328. * @param string $var
  329. * @return $this
  330. */
  331. public function setChrpannelDate($var)
  332. {
  333. GPBUtil::checkString($var, True);
  334. $this->chrpannel_date = $var;
  335. return $this;
  336. }
  337. /**
  338. * 本周充电度数数组,下标0-6代表周一到周日
  339. *
  340. * Generated from protobuf field <code>repeated .proto.api.GetChrpannelInfoRes.ChargePileCount charge_pile_counts = 10;</code>
  341. * @return \Google\Protobuf\Internal\RepeatedField
  342. */
  343. public function getChargePileCounts()
  344. {
  345. return $this->charge_pile_counts;
  346. }
  347. /**
  348. * 本周充电度数数组,下标0-6代表周一到周日
  349. *
  350. * Generated from protobuf field <code>repeated .proto.api.GetChrpannelInfoRes.ChargePileCount charge_pile_counts = 10;</code>
  351. * @param array<\Proto\Api\GetChrpannelInfoRes\ChargePileCount>|\Google\Protobuf\Internal\RepeatedField $var
  352. * @return $this
  353. */
  354. public function setChargePileCounts($var)
  355. {
  356. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetChrpannelInfoRes\ChargePileCount::class);
  357. $this->charge_pile_counts = $arr;
  358. return $this;
  359. }
  360. /**
  361. * 端口
  362. *
  363. * Generated from protobuf field <code>repeated .proto.api.GetChrpannelInfoRes.BoxState box_list = 11;</code>
  364. * @return \Google\Protobuf\Internal\RepeatedField
  365. */
  366. public function getBoxList()
  367. {
  368. return $this->box_list;
  369. }
  370. /**
  371. * 端口
  372. *
  373. * Generated from protobuf field <code>repeated .proto.api.GetChrpannelInfoRes.BoxState box_list = 11;</code>
  374. * @param array<\Proto\Api\GetChrpannelInfoRes\BoxState>|\Google\Protobuf\Internal\RepeatedField $var
  375. * @return $this
  376. */
  377. public function setBoxList($var)
  378. {
  379. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetChrpannelInfoRes\BoxState::class);
  380. $this->box_list = $arr;
  381. return $this;
  382. }
  383. /**
  384. * 经度
  385. *
  386. * Generated from protobuf field <code>float longitude = 12;</code>
  387. * @return float
  388. */
  389. public function getLongitude()
  390. {
  391. return $this->longitude;
  392. }
  393. /**
  394. * 经度
  395. *
  396. * Generated from protobuf field <code>float longitude = 12;</code>
  397. * @param float $var
  398. * @return $this
  399. */
  400. public function setLongitude($var)
  401. {
  402. GPBUtil::checkFloat($var);
  403. $this->longitude = $var;
  404. return $this;
  405. }
  406. /**
  407. * 纬度
  408. *
  409. * Generated from protobuf field <code>float latitude = 13;</code>
  410. * @return float
  411. */
  412. public function getLatitude()
  413. {
  414. return $this->latitude;
  415. }
  416. /**
  417. * 纬度
  418. *
  419. * Generated from protobuf field <code>float latitude = 13;</code>
  420. * @param float $var
  421. * @return $this
  422. */
  423. public function setLatitude($var)
  424. {
  425. GPBUtil::checkFloat($var);
  426. $this->latitude = $var;
  427. return $this;
  428. }
  429. }