Goby v2
test.proto
1 
2 import "dccl/option_extensions.proto";
3 
4 message MiniUser
5 {
6  option (dccl.msg).id = 1000001;
7  option (dccl.msg).max_bytes = 2;
8 
9  required uint32 user = 1 [
10  (dccl.field).min = 0,
11  (dccl.field).max = 0x03FF,
12  (dccl.field).in_head = true
13  ];
14 }
15 
16 message MiniOWTT
17 {
18  option (dccl.msg).id = 1000002;
19  option (dccl.msg).max_bytes = 2;
20 
21  required uint32 clock_mode = 1 [
22  (dccl.field).min = 0,
23  (dccl.field).max = 3,
24  (dccl.field).in_head = true
25  ];
26 
27  required uint32 tod = 2 [
28  (dccl.field).min = 0,
29  (dccl.field).max = 0x0F,
30  (dccl.field).in_head = true
31  ];
32 
33  required uint32 user = 3 [
34  (dccl.field).min = 0,
35  (dccl.field).max = 0x0F,
36  (dccl.field).in_head = true
37  ];
38 }
39 
40 message MiniAbort
41 {
42  option (dccl.msg).id = 1000003;
43  option (dccl.msg).max_bytes = 2;
44 
45  required uint32 user = 1 [
46  (dccl.field).min = 0,
47  (dccl.field).max = 0x03FF,
48  (dccl.field).in_head = true
49  ];
50 }
51 
52 message NormalDCCL
53 {
54  option (dccl.msg).id = 1;
55  option (dccl.msg).max_bytes = 32;
56 
57  required int32 a = 1 [(dccl.field).min = 0, (dccl.field).max = 0xFFFF];
58  required int32 b = 2 [(dccl.field).min = 0, (dccl.field).max = 0xFFFF];
59 }