blob: 6ea6ea4724b3cc3b321a0163897d34d1e95cfcf0 [file] [log] [blame]
Zhenkai Zhu6fcdee42012-05-30 17:02:49 -07001package SyncDemo;
2
3message ChatMessage {
Zhenkai Zhub6338822012-05-31 13:27:24 -07004 required string to = 1;
5 required string from = 2;
Zhenkai Zhu6fcdee42012-05-30 17:02:49 -07006 enum ChatMessageType {
7 CHAT = 0;
Zhenkai Zhu5a8d5aa2012-05-30 21:25:23 -07008 HELLO = 1;
Zhenkai Zhu65238672012-09-25 13:10:57 -07009 LEAVE = 2;
Zhenkai Zhu25e33e52012-09-28 13:00:07 -070010 JOIN = 3;
11 OTHER = 4;
Zhenkai Zhu6fcdee42012-05-30 17:02:49 -070012 }
Zhenkai Zhub6338822012-05-31 13:27:24 -070013 required ChatMessageType type = 3 [default = CHAT];
14 optional string data = 4;
Zhenkai Zhub98e6022012-09-27 13:48:23 -070015 required int32 timestamp = 5;
Zhenkai Zhu6fcdee42012-05-30 17:02:49 -070016}