Created
August 28, 2018 20:37
-
-
Save beerose/e4af38387f2fb297006158b1de9ccc9f 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