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.
 
 
 
 
 

466 lines
9.6 KiB

// See README.txt for information and build instructions.
//
// Note: START and END tags are used in comments to define sections used in
// tutorials. They are not part of the syntax for Protocol Buffers.
//
// To get an in-depth walkthrough of this file and the related examples, see:
// https://developers.google.com/protocol-buffers/docs/tutorials
// [START declaration]
syntax = "proto3";
package tutorial;
// [START csharp_declaration]
option csharp_namespace = "Mirle.Component.API.ShuttleCarController.Models";
// import "google/protobuf/timestamp.proto";
// [END csharp_declaration]
// [START service]
service WCSGreeter {
rpc UnaryMessage(WrapperMessage) returns (WrapperMessage); //138 136 132
rpc ClientSteamMessage(stream WrapperMessage) returns ( WrapperMessage); //134 144
}
// [END service]
// [START messages]
message WrapperMessage {
int32 ID = 1000;
int32 SeqNum = 1001;
string ip_address = 1002;
string LocalSystemTime = 1003;
oneof msg {
P11_ShuttleCOnlineRequest p11 = 11;
S12_ShuttleCOnlineResponse s12 = 12;
P13_ShuttleCOfflineRequest p13 = 13;
S14_ShuttleCOfflineResponse s14 = 14;
P15_DateTimeSyncRequest p15 = 15;
S16_DateTimeSyncResponse s16 = 16;
P17_StatusChangeReport p17 = 17;
P19_StatusRequest p19 = 19;
S20_StatusResponse s20 = 20;
P21_ReleaseRepairDoorInterlockRequest p21 = 21;
S22_ReleaseRepairDoorInterlockResponse s22 = 22;
P23_CancelReleaseRepairDoorInterlockRequest p23 = 23;
S24_CancelReleaseRepairDoorInterlockResponse s24 = 24;
P25_RepairDoorReleaseStautsReport p25 = 25;
S26_RepairDoorReleaseStatusResponse s26 = 26;
P29_RepairDoorInterlockStatusChangeReport p29 = 29;
S30_RepairDoorInterlockStatusChangeResponse s30 = 30;
P31_FireDoorRequest p31 = 31;
S32_FireDoorResponse s32 = 32;
P33_FireDoorStatusChangeReport p33 = 33;
P35_QueryFireDoorStatusRequest p35 = 35;
S36_QueryFireDoorStatusResponse s36 = 36;
P41_CommandRequest p41 = 41;
S42_CommandResponse s42 = 42;
P43_CancelCommandRequest p43 = 43;
S44_CommandCancelResponse s44 = 44;
P45_PauseRequest p45 = 45;
S46_PauseResponse s46 = 46;
P51_AlarmReport p51 = 51;
S52_AlarmResponse s52 = 52;
P61_CommandStatusReport p61 = 61;
S62_CommandStatusResponse s62 = 62;
P63_QueryCommandStatusRequest p63 = 63;
S64_QueryCommandStatusResponse s64 = 64;
P65_QueryAllCOmmandStatusRequest p65 = 65;
S66_QueryAllCommandStatusResponse s66 = 66;
P67_VehicleStatusReport p67 = 67;
S68_VehicleStatusResponse s68 = 68;
P69_QueryVehicleStatusRequest p69 = 69;
S70_QueryVehicleStatusResponse s70 = 70;
P71_BlockAreaReport p71 = 71;
S72_BlockAreaResponse s72 = 72;
P73_QueryAllBlockAreaRequest p73 = 73;
S74_QueryAllBlockAreaResponse s74 = 74;
P75_SeparateAreaCountReport p75 = 75;
S76_SeparateAreaCountResponse s76 = 76;
P77_UpdateShelfStateRequest p77 = 77;
S78_UpdateShelfStateResponse s78 = 78;
P81_VehicleUnknownCarrierReport p81 = 81;
S82_VehicleUnknownCarrierResponse s82 = 82;
P83_ChangeLayerRequest p83 = 83;
S84_ChangeLayerResponse s84 = 84;
P85_ChangeLayerStatusReport p85 = 85;
S86_ChangeLayerStatusResponse s86 = 86;
P89_CancelChangeLayerRequest p89 = 89;
S90_CamcelChangeLayerResponse s90 = 90;
P91_LifterArrivalReport p91 = 91;
S92_LifterArrivalResponse s92 = 92;
P95_BlockShelfRequest p95 = 95;
S96_BlockShelfResponse s96 = 96;
P131_TrafficRailLockRequest p131 = 131;
S132_TrafficRailLockResponse s132 = 132;
P133_TrafficRailStatusChangeReport p133 = 133;
P135_QueryTrafficRailStatusRequest p135 = 135;
S136_QueryTrafficRailStatusRequest s136 = 136;
}
}
message P11_ShuttleCOnlineRequest {
}
message S12_ShuttleCOnlineResponse {
int32 ReplyCode = 1;
}
message P13_ShuttleCOfflineRequest {
}
message S14_ShuttleCOfflineResponse {
int32 ReplyCode = 1;
}
message P15_DateTimeSyncRequest
{
string SyncDateTime = 1;
}
message S16_DateTimeSyncResponse {
int32 ReplyCode = 1;
string ResponseTime = 2;
}
enum TSCStatus{
Pause = 0;
Pausing = 1;
Auto = 2;
Init = 3;
}
message P17_StatusChangeReport {
TSCStatus status = 1;
}
message P19_StatusRequest {
}
message S20_StatusResponse {
TSCStatus status = 1;
string ResponseTime = 2;
}
message P21_ReleaseRepairDoorInterlockRequest{
string Repair_Door_ID = 1;
}
message S22_ReleaseRepairDoorInterlockResponse {
int32 ReplyCode = 1;
string Repair_Door_ID = 2;
int32 ResultCode = 3;
}
message P23_CancelReleaseRepairDoorInterlockRequest {
string Repair_Door_ID = 1;
}
message S24_CancelReleaseRepairDoorInterlockResponse {
int32 ReplyCode = 1;
string Repair_Door_ID = 2;
int32 ResultCode = 3;
}
message P25_RepairDoorReleaseStautsReport {
string Repair_Door_ID = 1;
int32 ResultCode = 2;
}
message S26_RepairDoorReleaseStatusResponse {
int32 ReplyCode = 1;
}
message P29_RepairDoorInterlockStatusChangeReport {
string Repair_Door_ID = 1;
int32 Door_Status = 2;
int32 Door_Lock_Status = 3;
}
message S30_RepairDoorInterlockStatusChangeResponse {
int32 ReplyCode = 1;
string Repair_Door_ID = 2;
int32 Door_Lock_State_Code = 3;
}
message P31_FireDoorRequest {
string Door_ID = 1;
int32 Door_Action = 2;
int32 Crossing_Lock = 3;
}
message S32_FireDoorResponse{
int32 ReplyCode = 1;
string Door_ID = 2;
int32 Door_Action = 3;
int32 Door_Lock_State_Code = 4;
}
message P33_FireDoorStatusChangeReport{
string Door_ID = 1;
int32 Door_Status = 2;
int32 Crossing_Lock = 3;
int32 Alarm_Status = 4;
}
message P35_QueryFireDoorStatusRequest {
string Door_ID = 1;
}
message DoorStatus {
string Door_ID = 1;
int32 Door_Status = 2;
int32 Crossing_Lock = 3;
int32 Alarm_Status = 4;
}
message S36_QueryFireDoorStatusResponse {
repeated DoorStatus Door_list = 1;
}
message P41_CommandRequest {
string Cmd_ID =1;
int32 Cmd_Type =2;
int32 Priority =3;
string Source =4;
string Destination =5;
string Cst_ID =6;
int32 Cst_Type =7;
int32 Vehicle_ID =8;
}
message S42_CommandResponse {
string Cmd_ID = 1;
int32 ReturnCode = 2;
}
message P43_CancelCommandRequest {
string Cmd_ID = 1;
}
message S44_CommandCancelResponse {
int32 ReplyCode = 1;
}
enum PauseEvent {
PauseAct = 0;
Continue = 1;
}
message P45_PauseRequest {
PauseEvent EventType = 1;
int32 PauseType =2;
}
message S46_PauseResponse{
int32 EventType = 1;
int32 ReplyCode = 2;
}
message P51_AlarmReport {
int32 Vehicle_ID = 1;
int32 Alarm_Type =2;
string Alarm_Code =3;
string CST_ID =4;
}
message S52_AlarmResponse{
int32 ReplyCode =1;
}
message P61_CommandStatusReport {
string Cmd_ID = 1;
string Vehicle_ID = 2;
int32 Cmd_Status = 3;
int32 Result_Code = 4;
}
message S62_CommandStatusResponse {
int32 ReplyCode =1;
string Cmd_ID =2;
int32 Cmd_Status =3;
}
message P63_QueryCommandStatusRequest {
string Cmd_ID = 1;
}
message S64_QueryCommandStatusResponse {
int32 ReplyCode =1;
}
message P65_QueryAllCOmmandStatusRequest {
}
message S66_QueryAllCommandStatusResponse {
int32 ReplyCode = 1;
}
message P67_VehicleStatusReport {
int32 Vehicle_ID = 1;
int32 Vehicle_Located_Layer = 2;
int32 Vehicle_Status = 3;
}
message S68_VehicleStatusResponse {
int32 ReplyCode =1;
}
message P69_QueryVehicleStatusRequest {
int32 Query_Type = 1;
int32 Vehicle_ID = 2;
}
message S70_QueryVehicleStatusResponse {
int32 ReplyCode = 1;
}
message P71_BlockAreaReport {
int32 Area_ID = 1;
int32 Block_Status = 2;
}
message S72_BlockAreaResponse {
int32 ReplyCode = 1;
}
message P73_QueryAllBlockAreaRequest {
}
message S74_QueryAllBlockAreaResponse {
int32 ReplyCode = 1;
}
message P75_SeparateAreaCountReport {
int32 Layer_no = 1;
int32 Lifter_seq = 2;
int32 X_Axis_MIN = 3;
int32 X_Axis_MAX = 4;
int32 Lifter_Service_Status = 5;
}
message S76_SeparateAreaCountResponse {
int32 ReplyCode = 1;
}
message P77_UpdateShelfStateRequest {
string Shelf_ID = 1;
int32 Has_Carrier = 2;
int32 Carrier_ID = 3;
}
message S78_UpdateShelfStateResponse {
int32 ReplyCode = 1;
}
message P81_VehicleUnknownCarrierReport {
int32 Vehicle_ID = 1;
string Carrier = 2;
}
message S82_VehicleUnknownCarrierResponse {
int32 ReplyCode = 1;
}
message P83_ChangeLayerRequest {
string Cmd_ID = 1;
int32 Source_Layer = 2;
int32 Destination_Layer = 3;
int32 Lifter_ID = 4;
}
message S84_ChangeLayerResponse {
string Cmd_ID = 1;
int32 Source_Layer = 2;
int32 Destination_Layer = 3;
int32 Lifter_ID = 4;
int32 ReplyCode = 5;
}
message P85_ChangeLayerStatusReport {
string Cmd_ID = 1;
int32 Change_Layer_Status = 2;
int32 Result_Code = 3;
}
message S86_ChangeLayerStatusResponse {
string Cmd_ID = 1;
int32 ReplyCode = 2;
}
message P89_CancelChangeLayerRequest {
string Cmd_ID = 1;
int32 Vehicle_ID = 2;
}
message S90_CamcelChangeLayerResponse {
string Cmd_ID = 1;
int32 ResultCode = 2;
}
message P91_LifterArrivalReport {
int32 Lifter_ID = 1;
int32 Lifter_Location = 2;
}
message S92_LifterArrivalResponse {
int32 ReplyCode = 1;
}
message P95_BlockShelfRequest {
string Shelf_ID = 1;
int32 Vehicle_ID =2;
}
message S96_BlockShelfResponse {
int32 ReplyCode = 1;
}
message P131_TrafficRailLockRequest {
string Rail_ID = 1;
int32 Traffic_InterLock = 2;
}
message S132_TrafficRailLockResponse {
int32 ReplyCode = 1;
string ReasonMsg = 2;
string Rail_ID = 3;
int32 VH_InterLock = 4;
int32 SC_InterLock = 5;
int32 IS_OutOfService = 6;
}
message P133_TrafficRailStatusChangeReport {
string Rail_ID = 1;
int32 VH_InterLock = 2;
int32 SC_InterLock = 3;
int32 IS_OutOfService = 4;
}
message P135_QueryTrafficRailStatusRequest {
string RAIL_ID =1;
}
message RailStatus {
string Rail_ID = 1;
int32 VH_InterLock = 2;
int32 SC_InterLock = 3;
int32 IS_OutOfService = 4;
}
message S136_QueryTrafficRailStatusRequest {
repeated RailStatus RAIL_List = 1;
}
// [END messages]