github.com/jhump/protoreflect@v1.16.0/desc/protoprint/testfiles/desc_test_editions-custom-sort.proto (about) 1 edition = "2023"; 2 3 enum Open { 4 OPEN_B = 0; 5 6 OPEN_C = -1; 7 8 OPEN_A = 2; 9 10 option features = { enum_type: OPEN }; 11 } 12 13 enum Closed { 14 CLOSED_C = 1; 15 16 CLOSED_A = 2; 17 18 reserved CLOSED_F, CLOSED_E; 19 } 20 21 message Foo { 22 reserved reserved_field; 23 24 message DelimitedField { 25 int32 b = 1; 26 } 27 28 int32 required_field = 2 [features = { field_presence: LEGACY_REQUIRED }]; 29 30 DelimitedField delimitedfield = 4 [features = { message_encoding: DELIMITED }]; 31 32 int32 default_field = 3 [default = 99]; 33 34 int32 a = 1; 35 } 36 37 option go_package = "github.com/jhump/protoreflect/internal/testprotos"; 38 39 option features = { enum_type: CLOSED }; 40 41 package testprotos;