-
Notifications
You must be signed in to change notification settings - Fork 1
/
Support.proto
43 lines (35 loc) · 1003 Bytes
/
Support.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
syntax = "proto3";
import "google/protobuf/empty.proto";
package support;
enum AvailabiltyStatus {
none = 0;
available = 1;
busy = 2;
}
message SupportDetail {
string id = 1;
string firstname = 2;
string lastname = 3;
string title = 4;
string department = 5;
AvailabiltyStatus status = 6;
}
message AddSupportEngineerRequest {
SupportDetail detail = 1;
}
message AddSupportEngineerResponse {
string support_id = 1;
}
message GetAvailableSupportEngineerRequest {
}
message GetAvailableSupportEngineerResponse {
SupportDetail SupportDetail = 1;
}
message SetSupportEngineerStatusToAvailableResponse {
string support_id = 1;
}
service SupportService {
rpc AddSupportEngineer (AddSupportEngineerRequest) returns (AddSupportEngineerResponse) {}
rpc GetAvailableSupportEngineer (GetAvailableSupportEngineerRequest) returns (GetAvailableSupportEngineerResponse) {}
rpc SetSupportEngineerStatusToAvailable(SetSupportEngineerStatusToAvailableResponse) returns (google.protobuf.Empty) {}
}