DCCL v3
test.proto
1 
2 import "dccl/option_extensions.proto";
3 package dccl.test;
4 
5 message TestMessageA
6 {
7  // can be anything; will be overwritten by UserCustomIdCodec
8  option (dccl.msg).id = 127;
9  option (dccl.msg).max_bytes = 2;
10  option (dccl.msg).codec_version = 3;
11 
12  required uint32 a = 1 [(dccl.field).min=0,
13  (dccl.field).max=0xFF];
14 }
15 
16 message TestMessageB
17 {
18  option (dccl.msg).id = 128;
19  option (dccl.msg).max_bytes = 2;
20  option (dccl.msg).codec_version = 3;
21 
22  required uint32 b = 1 [(dccl.field).min=0,
23  (dccl.field).max=0xFF];
24 }
25