add proto comments

This commit is contained in:
Asim Aslam
2021-06-11 22:59:26 +01:00
parent 22665d417e
commit 877e40342f

View File

@@ -10,21 +10,25 @@ service Emoji {
rpc Print(PrintRequest) returns (PrintResponse) {} rpc Print(PrintRequest) returns (PrintResponse) {}
} }
// Find an alias and return the emoji // Find an emoji by its alias e.g :beer:
message FindRequest { message FindRequest {
// the alias code e.g :beer:
string alias = 1; string alias = 1;
} }
message FindResponse { message FindResponse {
// the unicode emoji 🍺
string emoji = 2; string emoji = 2;
} }
// Get the flag for a country. Requires country code e.g GB for great britain // Get the flag for a country. Requires country code e.g GB for great britain
message FlagRequest { message FlagRequest {
// country code e.g GB
string code = 1; string code = 1;
} }
message FlagResponse { message FlagResponse {
// the emoji flag
string flag = 2; string flag = 2;
} }