OLD | NEW |
1 syntax = "proto2"; | 1 syntax = "proto2"; |
2 | 2 |
3 import "dart_options.proto"; | 3 import "dart_options.proto"; |
4 | 4 |
5 option (dart_options.imports) = { | 5 option (dart_options.imports) = { |
6 mixins: [{ | 6 mixins: [{ |
7 name: "Mixin1" | 7 name: "Mixin1" |
8 import_from: "package:protoc_plugin/testing/mixins.dart" | 8 import_from: "package:protoc_plugin/testing/mixins.dart" |
9 }, | 9 }, |
10 { | 10 { |
11 name: "Mixin2" | 11 name: "Mixin2" |
12 import_from: "package:protoc_plugin/testing/mixins.dart" | 12 import_from: "package:protoc_plugin/testing/mixins.dart" |
13 }, | 13 }, |
14 { | 14 { |
15 name: "Mixin3" | 15 name: "Mixin3" |
16 import_from: "package:protoc_plugin/testing/mixins.dart" | 16 import_from: "package:protoc_plugin/testing/mixins.dart" |
17 parent: "Mixin1" | 17 parent: "Mixin1" |
18 }]; | 18 }]; |
19 }; | 19 }; |
20 | 20 |
21 option (dart_options.default_mixin) = "Mixin1"; | 21 option (dart_options.default_mixin) = "Mixin1"; |
22 | 22 |
23 message NoMixinPB { | 23 message NoMixinPB { |
24 option (dart_options.mixin) = ""; | 24 option (dart_options.mixin) = ""; |
25 } | 25 } |
26 | 26 |
27 message Mixin1PB { | 27 message Mixin1PB { |
28 optional string interface_string = 1; | 28 optional string interface_string = 1 [ |
| 29 (dart_options.override_getter) = true, |
| 30 (dart_options.override_setter) = true, |
| 31 (dart_options.override_has_method) = true |
| 32 ]; |
29 } | 33 } |
30 | 34 |
31 message Mixin2PB { | 35 message Mixin2PB { |
32 option (dart_options.mixin) = "Mixin2"; | 36 option (dart_options.mixin) = "Mixin2"; |
33 | 37 |
34 optional string overridden_has_method = 3; | 38 optional string overridden_has_method = 3 [ |
| 39 (dart_options.override_has_method) = true |
| 40 ]; |
35 } | 41 } |
36 | 42 |
37 message Mixin3PB { | 43 message Mixin3PB { |
38 option (dart_options.mixin) = "Mixin3"; | 44 option (dart_options.mixin) = "Mixin3"; |
39 | 45 |
40 optional string interface_string = 1; | 46 optional string interface_string = 1 [ |
| 47 (dart_options.override_getter) = true, |
| 48 (dart_options.override_setter) = true, |
| 49 (dart_options.override_has_method) = true |
| 50 ]; |
41 } | 51 } |
OLD | NEW |