Yingdi Yu | 678ca4b | 2013-10-30 11:25:07 -0700 | [diff] [blame] | 1 | package SyncDemo; |
2 | |||||
3 | message ChatMessage { | ||||
4 | required string to = 1; | ||||
5 | required string from = 2; | ||||
6 | enum ChatMessageType { | ||||
7 | CHAT = 0; | ||||
8 | HELLO = 1; | ||||
9 | LEAVE = 2; | ||||
10 | JOIN = 3; | ||||
11 | OTHER = 4; | ||||
12 | } | ||||
13 | required ChatMessageType type = 3 [default = CHAT]; | ||||
14 | optional string data = 4; | ||||
15 | required int32 timestamp = 5; | ||||
16 | } |