5package RSI.RapidServer;
6import "google/protobuf/timestamp.proto";
7import "google/protobuf/any.proto";
10message RequestHeader {
12 google.protobuf.Timestamp time_sent = 1;
15 string client_name = 2;
18 optional ResponseOptimization optimization = 3;
21message ResponseOptimization {
22 optional
bool skip_config = 1;
23 optional
bool skip_info = 2;
24 optional
bool skip_status = 3;
30 int32 object_index = 1;
39 string method_name = 4;
42 int32 line_number = 5;
55 ErrorSource source = 4;
58 string short_message = 5;
61message ResponseHeader {
63 RequestHeader request_header = 1;
66 google.protobuf.Timestamp time_request_received = 2;
69 google.protobuf.Timestamp time_response_sent = 3;
72 repeated ErrorMessage errors = 4;
75 google.protobuf.Any request = 5;
80 PLATFORM_UNSPECIFIED = 0;
88service ServerControlService {
92 rpc GetInfo (ServerGetInfoRequest) returns (ServerGetInfoResponse);
95 rpc Shutdown (ServerShutdownRequest) returns (ServerShutdownResponse);
98 rpc Update (ServerUpdateRequest) returns (ServerUpdateResponse);
101 rpc Restart (ServerRestartRequest) returns (ServerRestartResponse);
104 rpc Reserve (ServerReserveRequest) returns (ServerReserveResponse);
107 rpc GetFile (ServerFileRequest) returns (stream FileChunk);
110 rpc SendFile (stream FileChunk) returns (ServerSendFileResponse);
113 rpc FileExists (ServerFileRequest) returns (ServerFileExistsResponse);
116 rpc DeleteFile (ServerFileRequest) returns (ServerDeleteFileResponse);
119message ServerShutdownRequest {
121 RequestHeader header = 1;
124message ServerShutdownResponse {
126 ResponseHeader header = 1;
129message ServerGetInfoRequest {
131 RequestHeader header = 1;
134message ServerReservation {
137 uint64 session_id = 1;
140message ServerGetInfoResponse {
142 ResponseHeader header = 1;
145 google.protobuf.Timestamp time_started = 2;
157 ServerReservation reservation = 6;
160 Platform platform = 7;
163message ServerUpdateRequest {
165 RequestHeader header = 1;
170 optional
string download_version = 2;
179 optional
string source = 3;
184 optional
string destination = 4;
187message ServerUpdateResponse {
189 ResponseHeader header = 1;
192message ServerRestartRequest {
194 RequestHeader header = 1;
199 optional
string start_directory = 2;
202message ServerRestartResponse {
204 ResponseHeader header = 1;
207message ServerReserveRequest {
209 RequestHeader header = 1;
212 optional
bool release = 2;
216 optional
bool reserve = 3;
219message ServerReserveResponse {
221 ResponseHeader header = 1;
224 ServerReservation reservation = 2;
227message ServerFileRequest {
229 RequestHeader header = 1;
248message ServerSendFileResponse {
250 ResponseHeader header = 1;
253message ServerFileExistsResponse {
255 ResponseHeader header = 1;
261message ServerDeleteFileResponse {
263 ResponseHeader header = 1;