• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto2";
2
3import 'alltypes.proto';
4
5extend AllTypes {
6    optional int32 AllTypes_extensionfield1 = 255 [default = 5];
7}
8
9message ExtensionMessage {
10    extend AllTypes {
11        optional ExtensionMessage AllTypes_extensionfield2 = 254;
12        // required ExtensionMessage AllTypes_extensionfield3 = 253; // No longer allowed by protobuf 3
13        repeated ExtensionMessage AllTypes_extensionfield4 = 252;
14    }
15
16    required string test1 = 1;
17    required int32 test2 = 2;
18}
19
20