1 import 'alltypes.proto'; 2 3 extend AllTypes { 4 optional int32 AllTypes_extensionfield1 = 255 [default = 5]; 5 } 6 7 message ExtensionMessage { 8 extend AllTypes { 9 optional ExtensionMessage AllTypes_extensionfield2 = 254; 10 required ExtensionMessage AllTypes_extensionfield3 = 253; 11 repeated ExtensionMessage AllTypes_extensionfield4 = 252; 12 } 13 14 required string test1 = 1; 15 required int32 test2 = 2; 16 } 17 18