You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

465 lines
9.6 KiB

8 months ago
  1. // See README.txt for information and build instructions.
  2. //
  3. // Note: START and END tags are used in comments to define sections used in
  4. // tutorials. They are not part of the syntax for Protocol Buffers.
  5. //
  6. // To get an in-depth walkthrough of this file and the related examples, see:
  7. // https://developers.google.com/protocol-buffers/docs/tutorials
  8. // [START declaration]
  9. syntax = "proto3";
  10. package tutorial;
  11. // [START csharp_declaration]
  12. option csharp_namespace = "Mirle.Component.API.ShuttleCarController.Models";
  13. // import "google/protobuf/timestamp.proto";
  14. // [END csharp_declaration]
  15. // [START service]
  16. service WCSGreeter {
  17. rpc UnaryMessage(WrapperMessage) returns (WrapperMessage); //138 136 132
  18. rpc ClientSteamMessage(stream WrapperMessage) returns ( WrapperMessage); //134 144
  19. }
  20. // [END service]
  21. // [START messages]
  22. message WrapperMessage {
  23. int32 ID = 1000;
  24. int32 SeqNum = 1001;
  25. string ip_address = 1002;
  26. string LocalSystemTime = 1003;
  27. oneof msg {
  28. P11_ShuttleCOnlineRequest p11 = 11;
  29. S12_ShuttleCOnlineResponse s12 = 12;
  30. P13_ShuttleCOfflineRequest p13 = 13;
  31. S14_ShuttleCOfflineResponse s14 = 14;
  32. P15_DateTimeSyncRequest p15 = 15;
  33. S16_DateTimeSyncResponse s16 = 16;
  34. P17_StatusChangeReport p17 = 17;
  35. P19_StatusRequest p19 = 19;
  36. S20_StatusResponse s20 = 20;
  37. P21_ReleaseRepairDoorInterlockRequest p21 = 21;
  38. S22_ReleaseRepairDoorInterlockResponse s22 = 22;
  39. P23_CancelReleaseRepairDoorInterlockRequest p23 = 23;
  40. S24_CancelReleaseRepairDoorInterlockResponse s24 = 24;
  41. P25_RepairDoorReleaseStautsReport p25 = 25;
  42. S26_RepairDoorReleaseStatusResponse s26 = 26;
  43. P29_RepairDoorInterlockStatusChangeReport p29 = 29;
  44. S30_RepairDoorInterlockStatusChangeResponse s30 = 30;
  45. P31_FireDoorRequest p31 = 31;
  46. S32_FireDoorResponse s32 = 32;
  47. P33_FireDoorStatusChangeReport p33 = 33;
  48. P35_QueryFireDoorStatusRequest p35 = 35;
  49. S36_QueryFireDoorStatusResponse s36 = 36;
  50. P41_CommandRequest p41 = 41;
  51. S42_CommandResponse s42 = 42;
  52. P43_CancelCommandRequest p43 = 43;
  53. S44_CommandCancelResponse s44 = 44;
  54. P45_PauseRequest p45 = 45;
  55. S46_PauseResponse s46 = 46;
  56. P51_AlarmReport p51 = 51;
  57. S52_AlarmResponse s52 = 52;
  58. P61_CommandStatusReport p61 = 61;
  59. S62_CommandStatusResponse s62 = 62;
  60. P63_QueryCommandStatusRequest p63 = 63;
  61. S64_QueryCommandStatusResponse s64 = 64;
  62. P65_QueryAllCOmmandStatusRequest p65 = 65;
  63. S66_QueryAllCommandStatusResponse s66 = 66;
  64. P67_VehicleStatusReport p67 = 67;
  65. S68_VehicleStatusResponse s68 = 68;
  66. P69_QueryVehicleStatusRequest p69 = 69;
  67. S70_QueryVehicleStatusResponse s70 = 70;
  68. P71_BlockAreaReport p71 = 71;
  69. S72_BlockAreaResponse s72 = 72;
  70. P73_QueryAllBlockAreaRequest p73 = 73;
  71. S74_QueryAllBlockAreaResponse s74 = 74;
  72. P75_SeparateAreaCountReport p75 = 75;
  73. S76_SeparateAreaCountResponse s76 = 76;
  74. P77_UpdateShelfStateRequest p77 = 77;
  75. S78_UpdateShelfStateResponse s78 = 78;
  76. P81_VehicleUnknownCarrierReport p81 = 81;
  77. S82_VehicleUnknownCarrierResponse s82 = 82;
  78. P83_ChangeLayerRequest p83 = 83;
  79. S84_ChangeLayerResponse s84 = 84;
  80. P85_ChangeLayerStatusReport p85 = 85;
  81. S86_ChangeLayerStatusResponse s86 = 86;
  82. P89_CancelChangeLayerRequest p89 = 89;
  83. S90_CamcelChangeLayerResponse s90 = 90;
  84. P91_LifterArrivalReport p91 = 91;
  85. S92_LifterArrivalResponse s92 = 92;
  86. P95_BlockShelfRequest p95 = 95;
  87. S96_BlockShelfResponse s96 = 96;
  88. P131_TrafficRailLockRequest p131 = 131;
  89. S132_TrafficRailLockResponse s132 = 132;
  90. P133_TrafficRailStatusChangeReport p133 = 133;
  91. P135_QueryTrafficRailStatusRequest p135 = 135;
  92. S136_QueryTrafficRailStatusRequest s136 = 136;
  93. }
  94. }
  95. message P11_ShuttleCOnlineRequest {
  96. }
  97. message S12_ShuttleCOnlineResponse {
  98. int32 ReplyCode = 1;
  99. }
  100. message P13_ShuttleCOfflineRequest {
  101. }
  102. message S14_ShuttleCOfflineResponse {
  103. int32 ReplyCode = 1;
  104. }
  105. message P15_DateTimeSyncRequest
  106. {
  107. string SyncDateTime = 1;
  108. }
  109. message S16_DateTimeSyncResponse {
  110. int32 ReplyCode = 1;
  111. string ResponseTime = 2;
  112. }
  113. enum TSCStatus{
  114. Pause = 0;
  115. Pausing = 1;
  116. Auto = 2;
  117. Init = 3;
  118. }
  119. message P17_StatusChangeReport {
  120. TSCStatus status = 1;
  121. }
  122. message P19_StatusRequest {
  123. }
  124. message S20_StatusResponse {
  125. TSCStatus status = 1;
  126. string ResponseTime = 2;
  127. }
  128. message P21_ReleaseRepairDoorInterlockRequest{
  129. string Repair_Door_ID = 1;
  130. }
  131. message S22_ReleaseRepairDoorInterlockResponse {
  132. int32 ReplyCode = 1;
  133. string Repair_Door_ID = 2;
  134. int32 ResultCode = 3;
  135. }
  136. message P23_CancelReleaseRepairDoorInterlockRequest {
  137. string Repair_Door_ID = 1;
  138. }
  139. message S24_CancelReleaseRepairDoorInterlockResponse {
  140. int32 ReplyCode = 1;
  141. string Repair_Door_ID = 2;
  142. int32 ResultCode = 3;
  143. }
  144. message P25_RepairDoorReleaseStautsReport {
  145. string Repair_Door_ID = 1;
  146. int32 ResultCode = 2;
  147. }
  148. message S26_RepairDoorReleaseStatusResponse {
  149. int32 ReplyCode = 1;
  150. }
  151. message P29_RepairDoorInterlockStatusChangeReport {
  152. string Repair_Door_ID = 1;
  153. int32 Door_Status = 2;
  154. int32 Door_Lock_Status = 3;
  155. }
  156. message S30_RepairDoorInterlockStatusChangeResponse {
  157. int32 ReplyCode = 1;
  158. string Repair_Door_ID = 2;
  159. int32 Door_Lock_State_Code = 3;
  160. }
  161. message P31_FireDoorRequest {
  162. string Door_ID = 1;
  163. int32 Door_Action = 2;
  164. int32 Crossing_Lock = 3;
  165. }
  166. message S32_FireDoorResponse{
  167. int32 ReplyCode = 1;
  168. string Door_ID = 2;
  169. int32 Door_Action = 3;
  170. int32 Door_Lock_State_Code = 4;
  171. }
  172. message P33_FireDoorStatusChangeReport{
  173. string Door_ID = 1;
  174. int32 Door_Status = 2;
  175. int32 Crossing_Lock = 3;
  176. int32 Alarm_Status = 4;
  177. }
  178. message P35_QueryFireDoorStatusRequest {
  179. string Door_ID = 1;
  180. }
  181. message DoorStatus {
  182. string Door_ID = 1;
  183. int32 Door_Status = 2;
  184. int32 Crossing_Lock = 3;
  185. int32 Alarm_Status = 4;
  186. }
  187. message S36_QueryFireDoorStatusResponse {
  188. repeated DoorStatus Door_list = 1;
  189. }
  190. message P41_CommandRequest {
  191. string Cmd_ID =1;
  192. int32 Cmd_Type =2;
  193. int32 Priority =3;
  194. string Source =4;
  195. string Destination =5;
  196. string Cst_ID =6;
  197. int32 Cst_Type =7;
  198. int32 Vehicle_ID =8;
  199. }
  200. message S42_CommandResponse {
  201. string Cmd_ID = 1;
  202. int32 ReturnCode = 2;
  203. }
  204. message P43_CancelCommandRequest {
  205. string Cmd_ID = 1;
  206. }
  207. message S44_CommandCancelResponse {
  208. int32 ReplyCode = 1;
  209. }
  210. enum PauseEvent {
  211. PauseAct = 0;
  212. Continue = 1;
  213. }
  214. message P45_PauseRequest {
  215. PauseEvent EventType = 1;
  216. int32 PauseType =2;
  217. }
  218. message S46_PauseResponse{
  219. int32 EventType = 1;
  220. int32 ReplyCode = 2;
  221. }
  222. message P51_AlarmReport {
  223. int32 Vehicle_ID = 1;
  224. int32 Alarm_Type =2;
  225. string Alarm_Code =3;
  226. string CST_ID =4;
  227. }
  228. message S52_AlarmResponse{
  229. int32 ReplyCode =1;
  230. }
  231. message P61_CommandStatusReport {
  232. string Cmd_ID = 1;
  233. string Vehicle_ID = 2;
  234. int32 Cmd_Status = 3;
  235. int32 Result_Code = 4;
  236. }
  237. message S62_CommandStatusResponse {
  238. int32 ReplyCode =1;
  239. string Cmd_ID =2;
  240. int32 Cmd_Status =3;
  241. }
  242. message P63_QueryCommandStatusRequest {
  243. string Cmd_ID = 1;
  244. }
  245. message S64_QueryCommandStatusResponse {
  246. int32 ReplyCode =1;
  247. }
  248. message P65_QueryAllCOmmandStatusRequest {
  249. }
  250. message S66_QueryAllCommandStatusResponse {
  251. int32 ReplyCode = 1;
  252. }
  253. message P67_VehicleStatusReport {
  254. int32 Vehicle_ID = 1;
  255. int32 Vehicle_Located_Layer = 2;
  256. int32 Vehicle_Status = 3;
  257. }
  258. message S68_VehicleStatusResponse {
  259. int32 ReplyCode =1;
  260. }
  261. message P69_QueryVehicleStatusRequest {
  262. int32 Query_Type = 1;
  263. int32 Vehicle_ID = 2;
  264. }
  265. message S70_QueryVehicleStatusResponse {
  266. int32 ReplyCode = 1;
  267. }
  268. message P71_BlockAreaReport {
  269. int32 Area_ID = 1;
  270. int32 Block_Status = 2;
  271. }
  272. message S72_BlockAreaResponse {
  273. int32 ReplyCode = 1;
  274. }
  275. message P73_QueryAllBlockAreaRequest {
  276. }
  277. message S74_QueryAllBlockAreaResponse {
  278. int32 ReplyCode = 1;
  279. }
  280. message P75_SeparateAreaCountReport {
  281. int32 Layer_no = 1;
  282. int32 Lifter_seq = 2;
  283. int32 X_Axis_MIN = 3;
  284. int32 X_Axis_MAX = 4;
  285. int32 Lifter_Service_Status = 5;
  286. }
  287. message S76_SeparateAreaCountResponse {
  288. int32 ReplyCode = 1;
  289. }
  290. message P77_UpdateShelfStateRequest {
  291. string Shelf_ID = 1;
  292. int32 Has_Carrier = 2;
  293. int32 Carrier_ID = 3;
  294. }
  295. message S78_UpdateShelfStateResponse {
  296. int32 ReplyCode = 1;
  297. }
  298. message P81_VehicleUnknownCarrierReport {
  299. int32 Vehicle_ID = 1;
  300. string Carrier = 2;
  301. }
  302. message S82_VehicleUnknownCarrierResponse {
  303. int32 ReplyCode = 1;
  304. }
  305. message P83_ChangeLayerRequest {
  306. string Cmd_ID = 1;
  307. int32 Source_Layer = 2;
  308. int32 Destination_Layer = 3;
  309. int32 Lifter_ID = 4;
  310. }
  311. message S84_ChangeLayerResponse {
  312. string Cmd_ID = 1;
  313. int32 Source_Layer = 2;
  314. int32 Destination_Layer = 3;
  315. int32 Lifter_ID = 4;
  316. int32 ReplyCode = 5;
  317. }
  318. message P85_ChangeLayerStatusReport {
  319. string Cmd_ID = 1;
  320. int32 Change_Layer_Status = 2;
  321. int32 Result_Code = 3;
  322. }
  323. message S86_ChangeLayerStatusResponse {
  324. string Cmd_ID = 1;
  325. int32 ReplyCode = 2;
  326. }
  327. message P89_CancelChangeLayerRequest {
  328. string Cmd_ID = 1;
  329. int32 Vehicle_ID = 2;
  330. }
  331. message S90_CamcelChangeLayerResponse {
  332. string Cmd_ID = 1;
  333. int32 ResultCode = 2;
  334. }
  335. message P91_LifterArrivalReport {
  336. int32 Lifter_ID = 1;
  337. int32 Lifter_Location = 2;
  338. }
  339. message S92_LifterArrivalResponse {
  340. int32 ReplyCode = 1;
  341. }
  342. message P95_BlockShelfRequest {
  343. string Shelf_ID = 1;
  344. int32 Vehicle_ID =2;
  345. }
  346. message S96_BlockShelfResponse {
  347. int32 ReplyCode = 1;
  348. }
  349. message P131_TrafficRailLockRequest {
  350. string Rail_ID = 1;
  351. int32 Traffic_InterLock = 2;
  352. }
  353. message S132_TrafficRailLockResponse {
  354. int32 ReplyCode = 1;
  355. string ReasonMsg = 2;
  356. string Rail_ID = 3;
  357. int32 VH_InterLock = 4;
  358. int32 SC_InterLock = 5;
  359. int32 IS_OutOfService = 6;
  360. }
  361. message P133_TrafficRailStatusChangeReport {
  362. string Rail_ID = 1;
  363. int32 VH_InterLock = 2;
  364. int32 SC_InterLock = 3;
  365. int32 IS_OutOfService = 4;
  366. }
  367. message P135_QueryTrafficRailStatusRequest {
  368. string RAIL_ID =1;
  369. }
  370. message RailStatus {
  371. string Rail_ID = 1;
  372. int32 VH_InterLock = 2;
  373. int32 SC_InterLock = 3;
  374. int32 IS_OutOfService = 4;
  375. }
  376. message S136_QueryTrafficRailStatusRequest {
  377. repeated RailStatus RAIL_List = 1;
  378. }
  379. // [END messages]