OLD | NEW |
1 // Experimental options controlling Dart code generation. | 1 // Experimental options controlling Dart code generation. |
2 syntax = "proto2"; | 2 syntax = "proto2"; |
3 | 3 |
4 package dart_options; | 4 package dart_options; |
5 | 5 |
6 // This file must be modified for google internal use, | 6 // This file must be modified for google internal use, |
7 // because custom options only work when the package name | 7 // because custom options only work when the package name |
8 // agrees with the version of protoc we are using. | 8 // agrees with the version of protoc we are using. |
9 // (The import statement and "google.protobuf." prefix need to be changed.) | 9 // (The import statement and "google.protobuf." prefix need to be changed.) |
10 | 10 |
11 import "descriptor_2_5_opensource.proto"; | 11 import "descriptor_2_5_opensource.proto"; |
12 | 12 |
13 extend google.protobuf.FileOptions { | 13 extend google.protobuf.FileOptions { |
14 | 14 |
15 // If true, GeneratedMessage subclasses should implement Map. | 15 // Applies the named mixin to all messages in this file. |
16 // (May be overridden by the "implement_map" option on a message.) | 16 // (May be overridden by the "mixin" option on a message.) |
17 optional bool implement_map_by_default = 95333044; | 17 // For now, "PbMapMixin" is the only available mixin. |
| 18 optional string default_mixin = 96128839; |
18 } | 19 } |
19 | 20 |
20 extend google.protobuf.MessageOptions { | 21 extend google.protobuf.MessageOptions { |
21 | 22 |
22 // If true, the corresponding GenerateMessage subclass should implement Map. | 23 // Applies the named mixin. |
23 // (It can also be set to false to override implement_map_by_default.) | 24 // For now, "PbMapMixin" is the only available mixin. |
24 optional bool implement_map = 95333044; | 25 // The empty string can be used to turn off mixins for this message. |
| 26 optional string mixin = 96128839; |
25 } | 27 } |
OLD | NEW |