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