aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/tests/message_sizes/messages1.proto
blob: b66fad71f4cf4fac4e7f4bf897654a0da4a6b9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
syntax = "proto2";

enum MessageStatus {
    FAIL = 0;
    OK = 1;
};

message MessageInfo {
   required fixed32 msg_id = 1;
   optional fixed32 interface_id = 2;
}

message MessageResponseInfo {
   required fixed64 interface_id = 1;
   required fixed32 seq = 2;
   required fixed32 msg_id = 3;
}

message MessageHeader {
   required MessageInfo info = 1;
   optional MessageResponseInfo response_info = 2;
   optional MessageResponse response = 3;
}

message MessageResponse {
   required MessageStatus status = 1;
   required fixed32 seq = 2;
}