mirror of
https://github.com/vxcontrol/vxcommon.git
synced 2026-07-20 20:16:03 -04:00
42 lines
762 B
Protocol Buffer
Executable File
42 lines
762 B
Protocol Buffer
Executable File
syntax = "proto2";
|
|
|
|
package protocol;
|
|
|
|
message Packet {
|
|
required string module = 1;
|
|
required string source = 2;
|
|
required string destination = 3;
|
|
required int64 timestamp = 4;
|
|
|
|
message Content {
|
|
message Part {
|
|
required int32 number = 1;
|
|
required int32 total = 2;
|
|
}
|
|
|
|
enum Type {
|
|
DATA = 0;
|
|
FILE = 1;
|
|
TEXT = 2;
|
|
MSG = 3;
|
|
}
|
|
|
|
enum MsgType {
|
|
DEBUG = 0;
|
|
INFO = 1;
|
|
WARNING = 2;
|
|
ERROR = 3;
|
|
}
|
|
|
|
required Type type = 1 [default = DATA];
|
|
required bytes data = 2;
|
|
|
|
optional string name = 3;
|
|
optional Part part = 4;
|
|
optional string uniq = 5;
|
|
optional MsgType msg_type = 6;
|
|
}
|
|
|
|
required Content content = 5;
|
|
}
|