rpc.proto revision 420c9859
1420c9859SShuo Chenoption java_package = "muduo.rpc.proto"; 2420c9859SShuo Chenoption java_outer_classname = "RpcProto"; 3420c9859SShuo Chen 4420c9859SShuo Chenenum MessageType 5420c9859SShuo Chen{ 6420c9859SShuo Chen REQUEST = 1; 7420c9859SShuo Chen RESPONSE = 2; 8420c9859SShuo Chen ERROR = 3; 9420c9859SShuo Chen} 10420c9859SShuo Chen 11420c9859SShuo Chenenum ErrorCode 12420c9859SShuo Chen{ 13420c9859SShuo Chen WRONG_PROTO = 1; 14420c9859SShuo Chen NO_SERVICE = 2; 15420c9859SShuo Chen NO_METHOD = 3; 16420c9859SShuo Chen INVALID_REQUEST = 4; 17420c9859SShuo Chen INVALID_RESPONSE = 5; 18420c9859SShuo Chen} 19420c9859SShuo Chen 20420c9859SShuo Chenmessage RpcMessage 21420c9859SShuo Chen{ 22420c9859SShuo Chen required MessageType type = 1; 23420c9859SShuo Chen required fixed64 id = 2; 24420c9859SShuo Chen 25420c9859SShuo Chen optional string service = 3; 26420c9859SShuo Chen optional string method = 4; 27420c9859SShuo Chen optional bytes request = 5; 28420c9859SShuo Chen 29420c9859SShuo Chen optional bytes response = 6; 30420c9859SShuo Chen 31420c9859SShuo Chen optional ErrorCode error = 7; 32420c9859SShuo Chen} 33