DCCL v3
test.proto
1 
2 import "dccl/option_extensions.proto";
3 package dccl.test;
4 
5 message NormalDCCL1Byte
6 {
7  option (dccl.msg).id = 1;
8  option (dccl.msg).max_bytes = 32;
9  option (dccl.msg).codec_version = 3;
10 
11  required int32 a = 1 [(dccl.field).min=0,
12  (dccl.field).max=0xFFFF];
13  required int32 b = 2 [(dccl.field).min=0,
14  (dccl.field).max=0xFFFF];
15 
16 }
17 
18 
19 message NormalDCCL2Byte
20 {
21  option (dccl.msg).id = 1000;
22  option (dccl.msg).max_bytes = 32;
23  option (dccl.msg).codec_version = 3;
24 
25  required int32 a = 1 [(dccl.field).min=0,
26  (dccl.field).max=0xFFFF];
27  required int32 b = 2 [(dccl.field).min=0,
28  (dccl.field).max=0xFFFF];
29 
30 }
31