File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ option py_generic_services = true;
4545// A custom file option (defined below).
4646option (file_opt1) = 9876543210 ;
4747
48+ import "google/protobuf/any.proto" ;
4849import "google/protobuf/descriptor.proto" ;
4950
5051// We don't put this in a package within proto2 because we need to make sure
@@ -329,6 +330,9 @@ message Aggregate {
329330
330331 // An embedded message set
331332 optional AggregateMessageSet mset = 5 ;
333+
334+ // An any
335+ optional google.protobuf.Any any = 6 ;
332336}
333337
334338// Allow Aggregate to be used as an option at all possible locations
@@ -376,6 +380,12 @@ option (fileopt) = {
376380 s : 'EmbeddedMessageSetElement'
377381 }
378382 }
383+
384+ any {
385+ [type.googleapis.com/protobuf_unittest.AggregateMessageSetElement] {
386+ s : 'EmbeddedMessageSetElement'
387+ }
388+ }
379389};
380390
381391message AggregateMessage {
You can’t perform that action at this time.
0 commit comments