24 lines
417 B
Protocol Buffer
24 lines
417 B
Protocol Buffer
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
|
|
}
|
|
}
|