Created
August 28, 2018 20:37
-
-
Save beerose/1d22c701478eebcdde88006b90e8aea9 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
syntax = "proto3"; | |
package chatty; | |
service ChatService { | |
rpc SendMessage (SendMessageRequest) returns (SendMessageReply) {} | |
rpc FetchMessages (FetchMessagesRequest) returns (FetchMessagesReply) {} | |
} | |
message SendMessageRequest { | |
ChatMessage chat_message = 1; | |
} | |
message SendMessageReply {} | |
message FetchMessagesRequest {} | |
message FetchMessagesReply { | |
repeated ChatMessage messages = 1; | |
} | |
message ChatMessage { | |
string sender = 1; | |
string text = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment