Goby v2
chat.proto
1 import "goby/common/protobuf/option_extensions.proto";
2 import "dccl/option_extensions.proto";
3 
4 message ChatMessage
5 {
6  option (dccl.msg).id = 2;
7  option (dccl.msg).max_bytes = 32;
8 
9  required int32 destination = 1
10  [(dccl.field).max = 30, (dccl.field).min = 0];
11 
12  required int32 source = 2 [(dccl.field).max = 30, (dccl.field).min = 0];
13 
14  required string telegram = 3 [(dccl.field).max_length = 26];
15 }