DCCL v4
test1.proto
1 // Copyright 2011-2023:
2 // GobySoft, LLC (2013-)
3 // Massachusetts Institute of Technology (2007-2014)
4 // Community contributors (see AUTHORS file)
5 // File authors:
6 // Toby Schneider <toby@gobysoft.org>
7 //
8 //
9 // This file is part of the Dynamic Compact Control Language Library
10 // ("DCCL").
11 //
12 // DCCL is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU Lesser General Public License as published by
14 // the Free Software Foundation, either version 2.1 of the License, or
15 // (at your option) any later version.
16 //
17 // DCCL is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU Lesser General Public License for more details.
21 //
22 // You should have received a copy of the GNU Lesser General Public License
23 // along with DCCL. If not, see <http://www.gnu.org/licenses/>.
24 syntax = "proto2";
25 import "dccl/option_extensions.proto";
26 
27 package dccl.test;
28 
29 message TestMessage1
30 {
31  option (dccl.msg) = {
32  id: 4,
33  max_bytes: 64,
34  codec_version: 4
35  };
36 
37  optional int32 a = 1 [(dccl.field) = { min: 0, max: 100 }];
38 }
39 
40 
41 message TestMessage2
42 {
43  option (dccl.msg) = {
44  id: 5,
45  max_bytes: 64,
46  codec_version: 4
47  };
48 
49  optional int32 b = 1 [(dccl.field) = { min: 0, max: 100 }];
50 }