DCCL v3
test.proto
1 
2 import "dccl/option_extensions.proto";
3 package dccl.test;
4 
5 message MiniUser
6 {
7  option (dccl.msg).id = 1000001;
8  option (dccl.msg).max_bytes = 2;
9  option (dccl.msg).codec_version = 3;
10 
11  required uint32 user = 1 [(dccl.field).min=0,
12  (dccl.field).max=0x03FF,
13  (dccl.field).in_head=true];
14 }
15 
16 message MiniOWTT
17 {
18  option (dccl.msg).id = 1000002;
19  option (dccl.msg).max_bytes = 2;
20  option (dccl.msg).codec_version = 3;
21 
22  required uint32 clock_mode = 1 [(dccl.field).min=0,
23  (dccl.field).max=3,
24  (dccl.field).in_head=true];
25 
26  required uint32 tod = 2 [(dccl.field).min=0,
27  (dccl.field).max=0x0F,
28  (dccl.field).in_head=true];
29 
30  required uint32 user = 3 [(dccl.field).min=0,
31  (dccl.field).max=0x0F,
32  (dccl.field).in_head=true];
33 }
34 
35 message MiniAbort
36 {
37  option (dccl.msg).id = 1000003;
38  option (dccl.msg).max_bytes = 2;
39  option (dccl.msg).codec_version = 3;
40 
41  required uint32 user = 1 [(dccl.field).min=0,
42  (dccl.field).max=0x03FF,
43  (dccl.field).in_head=true];
44 }