1 // Free Software published under an MIT-like license. See LICENSE
3 // Copyright (c) 2012 Google, Inc. All rights reserved.
5 // Original author: Alejandro SedeƱo
9 import "extend-test-base.proto";
11 package protobuf_extend_unittest;
14 extensions 200 to 299;
18 // Extend file-local Foo with this Bar.
20 optional Bar foo_227 = 227;
22 // Extend file-local Foo with imported Bar.
24 optional protobuf_extend_base_unittest.Bar foo_228 = 228;
26 // Extend imported Foo with this Bar.
27 extend protobuf_extend_base_unittest.Foo {
28 optional Bar foo_127 = 127;
30 // Extend imported Foo with imported Bar.
31 extend protobuf_extend_base_unittest.Foo {
32 optional protobuf_extend_base_unittest.Bar foo_128 = 128;
36 // NB: Unlike Foo and Bar, no Quux is defined in our import.
37 // Unlike Foo and Bar, no Baz is defined in this proto file.
39 // Extend imported Baz with self.
40 extend protobuf_extend_base_unittest.Baz {
41 optional Quux ext = 327;