Trying to use the prost
This commit is contained in:
18
lib/proto/items.proto
Normal file
18
lib/proto/items.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package snazzy.items;
|
||||
|
||||
// A snazzy new shirt!
|
||||
message Shirt {
|
||||
// Label sizes
|
||||
enum Size {
|
||||
SMALL = 0;
|
||||
MEDIUM = 1;
|
||||
LARGE = 2;
|
||||
}
|
||||
|
||||
// The base color
|
||||
string color = 1;
|
||||
// The size as stated on the label
|
||||
Size size = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user