DCCL v3
test.proto
1 syntax = "proto2";
2 import "dccl/option_extensions.proto";
3 package dccl.test;
4 
5 message CustomMsg
6 {
7  option (dccl.msg).id = 3;
8  option (dccl.msg).max_bytes = 256;
9  option (dccl.msg).codec = "custom_codec";
10  option (dccl.msg).codec_version = 3;
11 
12  optional uint32 a = 1;
13  optional bool b = 2;
14 }
15 
16 
17 message CustomMsg2
18 {
19  option (dccl.msg).id = 4;
20  option (dccl.msg).max_bytes = 256;
21  option (dccl.msg).codec_version = 3;
22 
23  optional CustomMsg msg = 1;
24  repeated int32 c = 3 [(dccl.field).max=100,
25  (dccl.field).min=0,
26  (dccl.field).max_repeat=4,
27  (dccl.field).codec="int32_test_codec"];
28 }
29