this syntax might be better (?)

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-11 03:35:55 -07:00
parent fbc0ebb96b
commit 8813c6090f
1 changed files with 18 additions and 18 deletions

View File

@ -1,30 +1,30 @@
syntax = "proto3"; syntax = "proto3";
package witProtobuf; package witProtobuf;
enum EventType { message Event {
EventType type = 1;
int32 id = 2;
repeated Response results = 3;
string name = 4;
string comment = 5;
string email = 6;
repeated int64 reps = 7;
enum EventType {
ADD = 0; ADD = 0;
DELETE = 1; DELETE = 1;
POWERON = 2; POWERON = 2;
POWEROFF = 3; POWEROFF = 3;
HYBERNATE = 4; HYBERNATE = 4;
MIGRATE = 5; MIGRATE = 5;
} }
message Response { message Response {
EventType type = 1; EventType type = 1;
int32 id = 2; int32 id = 2;
string name = 3; string name = 3;
string error = 4; string error = 4;
repeated string snippets = 5; repeated string snippets = 5;
} }
message Event {
EventType type = 1;
int32 id = 2;
repeated Response result = 3;
string name = 4;
string comment = 5;
string email = 6;
repeated int64 reps = 7;
} }