blob: c8e4d35fd622423e43a7aeee4c04ada40e31564d [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;
10 OTHER = 3;
Zhenkai Zhu6fcdee42012-05-30 17:02:49 -070011 }
Zhenkai Zhub6338822012-05-31 13:27:24 -070012 required ChatMessageType type = 3 [default = CHAT];
13 optional string data = 4;
Zhenkai Zhub98e6022012-09-27 13:48:23 -070014 required int32 timestamp = 5;
Zhenkai Zhu6fcdee42012-05-30 17:02:49 -070015}