this syntax might be better (?)
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
fbc0ebb96b
commit
8813c6090f
20
events.proto
20
events.proto
|
@ -1,6 +1,16 @@
|
|||
syntax = "proto3";
|
||||
package witProtobuf;
|
||||
|
||||
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;
|
||||
DELETE = 1;
|
||||
|
@ -17,14 +27,4 @@ message Response {
|
|||
string error = 4;
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue