OLD | NEW |
1 syntax = "proto2"; | 1 syntax = "proto2"; |
2 | 2 |
3 package protobuf_unittest; | 3 package protobuf_unittest; |
4 | 4 |
5 import "dart_options.proto"; | 5 import "dart_options.proto"; |
6 | 6 |
7 message Rec { | 7 message Rec { |
8 option (dart_options.implement_map) = true; | 8 option (dart_options.mixin) = "PbMapMixin"; |
9 | 9 |
10 optional int32 num = 1; | 10 optional int32 num = 1; |
11 repeated int32 nums = 2; | 11 repeated int32 nums = 2; |
12 optional string str = 3; | 12 optional string str = 3; |
13 optional NonMap msg = 4; | 13 optional NonMap msg = 4; |
14 } | 14 } |
15 | 15 |
16 message NonMap { | 16 message NonMap { |
17 optional string str = 1; | 17 optional string str = 1; |
18 optional NonMap child = 2; | 18 optional NonMap child = 2; |
19 } | 19 } |
OLD | NEW |