1 // Test the edition syntax
7 // fields have explicit presence, so no explicit setting needed
9 // to match the proto2 behavior, LEGACY_REQUIRED is set at the field level
10 int32 id = 2 [features.field_presence = LEGACY_REQUIRED];
11 // to match the proto2 behavior, EXPANDED is set at the field level
12 repeated int32 scores = 3 [features.repeated_field_encoding = EXPANDED];
15 // this overrides the default edition 2023 behavior, which is OPEN
16 option features.enum_type = CLOSED;
17 HANDED_UNSPECIFIED = 0;
20 HANDED_AMBIDEXTROUS = 3;