Created
April 25, 2020 18:53
-
-
Save viggin543/58dcef9c87f72e4569d3510b1edf660c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service Banana { | |
rpc GetBanana (GetBananaRequest) returns (BananaResponse) {} | |
rpc CreateBanana (CreateBananaRequest) returns (BananaResponse) {} | |
} | |
message GetBananaRequest { | |
string id = 1; | |
} | |
message BananaResponse { | |
string id = 1; | |
Color color = 2; | |
int32 price = 3; | |
string nickname = 4; | |
} | |
message CreateBananaRequest { | |
Color color = 1; | |
int32 price = 2; | |
string nickname = 3; | |
} | |
enum Color { | |
GREEN = 0; | |
YELLOW = 1; | |
BROWN = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment