Trying to use the prost
This commit is contained in:
6
lib/proto/audio_backend.proto
Normal file
6
lib/proto/audio_backend.proto
Normal file
@@ -0,0 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package termix.audio_backend;
|
||||
|
||||
service AudioBackend {
|
||||
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
syntax = "proto3";
|
||||
package helloworld;
|
||||
|
||||
service Greeter {
|
||||
rpc SayHello (HelloRequest) returns (HelloReply);
|
||||
}
|
||||
|
||||
message HelloRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message HelloReply {
|
||||
string message = 1;
|
||||
}
|
||||
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