Goby3  3.1.5a
2024.05.23
test.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 import "dccl/option_extensions.proto";
3 
4 package goby.test.zeromq.protobuf;
5 
6 message Sample
7 {
8  option (dccl.msg).id = 127;
9  option (dccl.msg).max_bytes = 32;
10  option (dccl.msg).codec_version = 3;
11 
12  optional int32 a = 1 [(dccl.field) = {min: -100 max: 10000}];
13  optional int32 group = 2 [(dccl.field) = {min: 1 max: 10}];
14 }
15 
16 message Widget
17 {
18  option (dccl.msg).id = 126;
19  option (dccl.msg).max_bytes = 32;
20  option (dccl.msg).codec_version = 3;
21 
22  optional int32 b = 1 [(dccl.field) = {min: -10 max: 1000}];
23 }