DCCL v3
test.proto
1 
2 import "dccl/option_extensions.proto";
3 import "dccl/arithmetic/protobuf/arithmetic_extensions.proto";
4 package dccl.test;
5 
6 
7 enum Enum1
8 {
9  ENUM_A = 1;
10  ENUM_B = 2;
11  ENUM_C = 3;
12 }
13 
14 
15 enum Enum2
16 {
17  ENUM2_A = 1;
18  ENUM2_B = 2;
19  ENUM2_C = 3;
20  ENUM2_D = 4;
21  ENUM2_E = 5;
22 }
23 
24 
25 
26 message ArithmeticDoubleTestMsg
27 {
28  option (dccl.msg).id = 1;
29  option (dccl.msg).max_bytes = 512;
30  option (dccl.msg).codec_version = 3;
31 
32  repeated double value = 101 [(dccl.field).codec = "_arithmetic",
33  (dccl.field).(arithmetic).model = "model",
34  (dccl.field).(arithmetic).debug_assert = true,
35  (dccl.field).max_repeat=4];
36 }
37 message ArithmeticEnumTestMsg
38 {
39  option (dccl.msg).id = 2;
40  option (dccl.msg).max_bytes = 512;
41  option (dccl.msg).codec_version = 3;
42 
43  repeated Enum1 value = 114 [(dccl.field).codec = "_arithmetic",
44  (dccl.field).(arithmetic).model = "model",
45  (dccl.field).(arithmetic).debug_assert = true,
46  (dccl.field).max_repeat=4];
47 
48 }
49 
50 message ArithmeticSingleEnumTestMsg
51 {
52  option (dccl.msg).id = 3;
53  option (dccl.msg).max_bytes = 512;
54  option (dccl.msg).codec_version = 3;
55 
56  required Enum1 value = 114 [(dccl.field).codec = "_arithmetic",
57  (dccl.field).(arithmetic).model = "model",
58  (dccl.field).(arithmetic).debug_assert = true];
59 
60 }
61 
62 message ArithmeticEnum2TestMsg
63 {
64  option (dccl.msg).id = 4;
65  option (dccl.msg).max_bytes = 512;
66  option (dccl.msg).codec_version = 3;
67 
68  repeated Enum2 value = 114 [(dccl.field).codec = "_arithmetic",
69  (dccl.field).(arithmetic).model = "model",
70  (dccl.field).(arithmetic).debug_assert = true,
71  (dccl.field).max_repeat=8];
72 
73 }
74 
75 message ArithmeticDouble2TestMsg
76 {
77  option (dccl.msg).id = 5;
78  option (dccl.msg).max_bytes = 10000;
79  option (dccl.msg).codec_version = 3;
80 
81  repeated int32 value = 101 [(dccl.field).codec = "_arithmetic",
82  (dccl.field).(arithmetic).model = "model",
83  (dccl.field).(arithmetic).debug_assert = true,
84  (dccl.field).max_repeat=100];
85 }
86 
87 
88 message ArithmeticDouble3TestMsg
89 {
90  option (dccl.msg).id = 6;
91  option (dccl.msg).max_bytes = 10000;
92  option (dccl.msg).codec_version = 3;
93 
94  repeated int32 value = 101 [(dccl.field).codec = "_arithmetic",
95  (dccl.field).(arithmetic).model = "model",
96  (dccl.field).max_repeat=4,
97  (dccl.field).(arithmetic).debug_assert = true];
98 }
99 
100 
101  // repeated float float_arithmetic_repeat = 102 [(dccl.field).(arithmetic).model = "float_model",
102  // (dccl.field).max_repeat=4];
103 
104  // repeated int32 int32_arithmetic_repeat = 103 [(dccl.field).(arithmetic).model = "int_model",
105  // (dccl.field).max_repeat=4];
106 
107  // repeated bool bool_arithmetic_repeat = 113 [(dccl.field).(arithmetic).model = "bool_model",
108  // (dccl.field).max_repeat=4];
109 
110