linx-simulator2/node_modules/protobufjs/tests/extend.proto

24 lines
417 B
Protocol Buffer
Raw Normal View History

2019-09-18 08:11:16 +00:00
import "google/protobuf/descriptor.proto"; // Ignored
// import "./google/protobuf/descriptor.proto"; // Not ignored
extend google.protobuf.MessageOptions {
optional int32 foo = 1001;
}
message Foo {
extensions 2 to max;
}
extend Foo {
optional string bar = 2;
}
message Bar {
message Foo {
}
extend .Foo {
optional Foo foo = 3; // references Bar.Foo
}
}