OLD | NEW |
(Empty) | |
| 1 syntax = "proto2"; |
| 2 |
| 3 import "dart_options.proto"; |
| 4 |
| 5 option (dart_options.mixins) = { |
| 6 name: "Mixin1" |
| 7 import_from: "package:protoc_plugin/testing/mixins.dart" |
| 8 }; |
| 9 option (dart_options.mixins) = { |
| 10 name: "Mixin2" |
| 11 import_from: "package:protoc_plugin/testing/mixins.dart" |
| 12 }; |
| 13 option (dart_options.mixins) = { |
| 14 name: "Mixin3" |
| 15 import_from: "package:protoc_plugin/testing/mixins.dart" |
| 16 parent: "Mixin1" |
| 17 }; |
| 18 |
| 19 option (dart_options.default_mixin) = "Mixin1"; |
| 20 |
| 21 message NoMixinPB { |
| 22 option (dart_options.mixin) = ""; |
| 23 } |
| 24 |
| 25 message Mixin1PB { |
| 26 optional string interface_string = 1; |
| 27 } |
| 28 |
| 29 message Mixin2PB { |
| 30 option (dart_options.mixin) = "Mixin2"; |
| 31 |
| 32 optional string overridden_has_method = 3; |
| 33 } |
| 34 |
| 35 message Mixin3PB { |
| 36 option (dart_options.mixin) = "Mixin3"; |
| 37 |
| 38 optional string interface_string = 1; |
| 39 } |
OLD | NEW |