syntax="proto3"; package remote; enum cs_message { cs_none=0; cs_req=2001; cs_rep=2002; cs_offer=2004; cs_answer=2005; cs_candidate=2006; cs_leave=2007; cs_keepAlive=2008; cs_sigin=2009; cs_robot=2010; cs_closeVideo=2011; cs_state=2014; }; enum sc_message { sc_none=0; sc_req=4001; sc_rep=4002; sc_offer=4004; sc_answer=4005; sc_candidate=4006; sc_sigin =4007; sc_robot=4008; sc_NotifyReq=4009; sc_NotifyRep=4010; sc_NotifyAnswer=4011; sc_NotifyOffer=4012; sc_NotifyCandidate=4013; sc_NotifyLeave=4014; sc_NotifyAdd=4016; sc_NotifyDel=4017; sc_NotifyCloseVideo=4018; sc_NotifyState=4025; }; message Offer { int32 index=1; int32 peer=2; string type=3; string sdp=4; }; message Answer { int32 index=1; int32 peer=2; string type=3; string sdp=4; }; message Candidate { int32 index=1; int32 peer=2; string type=3; string candidate=4; int32 sdpMLineIndex =5; string sdpMid =6; int32 egotype=7; }; message CSReq { int32 peer=1; int32 index=2; int32 egotype=3; }; message SCReq { int32 desc=1; int32 peer=2; int32 egotype=3; }; message CSRep { int32 desc=1; int32 peer=2; int32 index=3; int32 egotype=4; }; message SCRep { int32 desc=1; int32 index=2; int32 egotype=3; int32 peer=4; }; message CSSigin { string account=1; int32 type=2; string name=3; string pass=4; }; message SCSigin { bool ret=1; int32 uid=2; string name=3; }; message Robot { int32 rid=1; string name=2; int32 type=3; int32 state=4; }; message SCAddRobot { Robot robot=1; }; message SCDelRobot { int32 peer=1; int32 egotype=2; }; message CSRobot { }; message SCRobot { repeated Robot robot=1; }; message Leave { int32 peer=1; int32 egotype=2; };