1syntax = "proto2";
2
3option java_multiple_files = true;
4option java_package = "com.google.protobuf.nano";
5
6import "google/protobuf/unittest_extension_nano.proto";
7
8// Must be compiled separately due to extension number reuse.
9// The reuse is deliberate, for testing wire compatibility.
10
11message SingularExtensions {
12  extend ExtendableMessage {
13    optional int32          some_int32    = 10;
14    optional uint32         some_uint32   = 11;
15    optional sint32         some_sint32   = 12;
16    optional int64          some_int64    = 13;
17    optional uint64         some_uint64   = 14;
18    optional sint64         some_sint64   = 15;
19    optional fixed32        some_fixed32  = 16;
20    optional sfixed32       some_sfixed32 = 17;
21    optional fixed64        some_fixed64  = 18;
22    optional sfixed64       some_sfixed64 = 19;
23    optional bool           some_bool     = 20;
24    optional float          some_float    = 21;
25    optional double         some_double   = 22;
26    optional AnEnum         some_enum     = 23;
27    optional string         some_string   = 24;
28    optional bytes          some_bytes    = 25;
29    optional AnotherMessage some_message  = 26;
30    optional group          SomeGroup     = 27 {
31      optional int32 a = 1;
32    }
33  }
34}
35