DCCL v3
test.proto
1 
2 import "dccl/option_extensions.proto";
3 package dccl.test;
4 
5 enum Enum1
6 {
7  ENUM_A = 1;
8  ENUM_B = 2;
9  ENUM_C = 3;
10 }
11 
12 message NativeProtobufTest
13 {
14  option (dccl.msg).id = 1;
15  option (dccl.msg).max_bytes = 1024;
16 
17  option (dccl.msg).codec_version = 3;
18  option (dccl.msg).codec_group = "dccl.native_protobuf";
19 
20  optional double double_default_optional = 1;
21  optional float float_default_optional = 2;
22  optional int32 int32_default_optional = 3;
23  optional int64 int64_default_optional = 4;
24  optional uint32 uint32_default_optional = 5;
25  optional uint64 uint64_default_optional = 6;
26  optional sint32 sint32_default_optional = 7;
27  optional sint64 sint64_default_optional = 8;
28  optional fixed32 fixed32_default_optional = 9;
29  optional fixed64 fixed64_default_optional = 10;
30  optional sfixed32 sfixed32_default_optional = 11;
31  optional sfixed64 sfixed64_default_optional = 12;
32 
33  optional bool bool_default_optional = 13;
34  optional Enum1 enum_default_optional = 16;
35 
36  required double double_default_required = 21;
37  required float float_default_required = 22;
38  required int32 int32_default_required = 23;
39  required int64 int64_default_required = 24;
40  required uint32 uint32_default_required = 25;
41  required uint64 uint64_default_required = 26;
42  required sint32 sint32_default_required = 27;
43  required sint64 sint64_default_required = 28;
44  required fixed32 fixed32_default_required = 29;
45  required fixed64 fixed64_default_required = 30;
46  required sfixed32 sfixed32_default_required = 31;
47  required sfixed64 sfixed64_default_required = 32;
48 
49  required bool bool_default_required = 33;
50  optional Enum1 enum_default_required = 34;
51 
52  repeated double double_default_repeat = 101 [(dccl.field).max_repeat=4];
53  repeated int32 int32_default_repeat = 103 [(dccl.field).max_repeat=4];
54 
55 }