25 lines
326 B
Protocol Buffer
25 lines
326 B
Protocol Buffer
syntax = "proto3";
|
|
package witProto;
|
|
|
|
enum EventType {
|
|
ADD = 0;
|
|
DELETE = 1;
|
|
POWERON = 2;
|
|
POWEROFF = 3;
|
|
HYBERNATE = 4;
|
|
MIGRATE = 5;
|
|
}
|
|
|
|
message Event {
|
|
EventType type = 1;
|
|
string label = 2;
|
|
int32 id = 3;
|
|
repeated int64 reps = 4;
|
|
}
|
|
|
|
message Result {
|
|
string url = 1;
|
|
string title = 2;
|
|
repeated string snippets = 3;
|
|
}
|