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 PackedExtensions {
12  extend ExtendableMessage {
13    repeated int32    packed_int32    = 10 [ packed = true ];
14    repeated uint32   packed_uint32   = 11 [ packed = true ];
15    repeated sint32   packed_sint32   = 12 [ packed = true ];
16    repeated int64    packed_int64    = 13 [ packed = true ];
17    repeated uint64   packed_uint64   = 14 [ packed = true ];
18    repeated sint64   packed_sint64   = 15 [ packed = true ];
19    repeated fixed32  packed_fixed32  = 16 [ packed = true ];
20    repeated sfixed32 packed_sfixed32 = 17 [ packed = true ];
21    repeated fixed64  packed_fixed64  = 18 [ packed = true ];
22    repeated sfixed64 packed_sfixed64 = 19 [ packed = true ];
23    repeated bool     packed_bool     = 20 [ packed = true ];
24    repeated float    packed_float    = 21 [ packed = true ];
25    repeated double   packed_double   = 22 [ packed = true ];
26    repeated AnEnum   packed_enum     = 23 [ packed = true ];
27    // Non-packable types omitted.
28  }
29}
30