| | |
| | | |
| | | // import "google/protobuf/descriptor.proto"; |
| | | import "bhome_msg_api.proto"; |
| | | import "error_msg.proto"; |
| | | |
| | | package bhome.msg; |
| | | |
| | |
| | | bytes topic = 6; // for request route |
| | | } |
| | | |
| | | message BHMsg { // deprecated |
| | | bytes msg_id = 1; |
| | | int64 timestamp = 2; |
| | | int32 type = 3; |
| | | repeated BHAddress route = 4; // for reply and proxy. |
| | | bytes body = 5; |
| | | message MsgRequest { |
| | | MsgType type = 1; |
| | | // oneof body; |
| | | } |
| | | |
| | | message MsgReply { |
| | | ErrorMsg err_msg = 1; |
| | | // oneof reply |
| | | } |
| | | |
| | | message BHMsgBody { |
| | | oneof reqrep { |
| | | MsgRequest request = 1; |
| | | MsgReply reply = 2; |
| | | } |
| | | } |
| | | |
| | | enum MsgType { |