TODO netlogon_user_flags_ntlmv2_enabled
[wireshark-sm.git] / test / protobuf_lang_files / complex_proto_files / editions_syntax.proto
blob6ac56dd50ea4891a2982fe4dfc0a8e93c347909c
1 // Test the edition syntax
2 edition = "2023";
4 package com.example;
6 message Player {
7   // fields have explicit presence, so no explicit setting needed
8   string name = 1;
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];
14   enum Handed {
15     // this overrides the default edition 2023 behavior, which is OPEN
16     option features.enum_type = CLOSED;
17     HANDED_UNSPECIFIED = 0;
18     HANDED_LEFT = 1;
19     HANDED_RIGHT = 2;
20     HANDED_AMBIDEXTROUS = 3;
21   }
23   Handed handed = 4;
25   reserved gender;