2019-05-07 03:29:29 -05:00
|
|
|
syntax = "proto3";
|
2019-05-10 13:57:24 -05:00
|
|
|
package witProtobuf;
|
2019-05-07 03:22:53 -05:00
|
|
|
|
2019-05-07 03:34:50 -05:00
|
|
|
enum EventType {
|
|
|
|
ADD = 0;
|
|
|
|
DELETE = 1;
|
|
|
|
POWERON = 2;
|
|
|
|
POWEROFF = 3;
|
|
|
|
HYBERNATE = 4;
|
|
|
|
MIGRATE = 5;
|
|
|
|
}
|
2019-05-07 03:22:53 -05:00
|
|
|
|
2019-05-10 14:36:09 -05:00
|
|
|
message Response {
|
|
|
|
EventType type = 1;
|
|
|
|
int32 id = 2;
|
|
|
|
string name = 3;
|
|
|
|
string error = 4;
|
|
|
|
repeated string snippets = 5;
|
2019-05-07 03:36:42 -05:00
|
|
|
}
|
2019-05-10 13:57:24 -05:00
|
|
|
|
|
|
|
message Event {
|
|
|
|
EventType type = 1;
|
|
|
|
int32 id = 2;
|
2019-05-10 14:36:09 -05:00
|
|
|
repeated Response result = 3;
|
2019-05-10 13:57:24 -05:00
|
|
|
string name = 4;
|
|
|
|
|
|
|
|
string comment = 5;
|
|
|
|
string email = 6;
|
|
|
|
repeated int64 reps = 7;
|
|
|
|
}
|