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 option (dart_options.implement_map_by_default) = true; | 7 option (dart_options.default_mixin) = "PbMapMixin"; |
8 | 8 |
9 message Rec2 { | 9 message Rec2 { |
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 } | 13 } |
14 | 14 |
15 message NonMap2 { | 15 message NonMap2 { |
16 option (dart_options.implement_map) = false; | 16 option (dart_options.mixin) = ""; |
17 } | 17 } |
OLD | NEW |