github.com/jhump/protoreflect@v1.16.0/desc/protoprint/testfiles/desc_test2-custom-sort.proto (about) 1 syntax = "proto2"; 2 3 extend TopLevel { 4 optional TopLevel otl = 100; 5 6 optional group GroupX = 104 { 7 optional string groupxs = 1042; 8 9 optional int64 groupxi = 1041; 10 } 11 } 12 13 message Whatzit { 14 repeated jhump.protoreflect.desc.Bar gyzmeau = 1; 15 } 16 17 message Whatchamacallit { 18 required jhump.protoreflect.desc.Foo foos = 1; 19 } 20 21 message Frobnitz { 22 oneof def { 23 uint32 g3 = 10; 24 25 sint32 g2 = 9; 26 27 int32 g1 = 8; 28 } 29 30 repeated string f = 7 [deprecated = true]; 31 32 optional TestMessage.NestedEnum e = 6 [default = VALUE2]; 33 34 optional TestMessage.NestedMessage d = 5; 35 36 oneof abc { 37 TestMessage.NestedEnum c2 = 4; 38 39 TestMessage.NestedMessage c1 = 3; 40 } 41 42 optional AnotherTestMessage b = 2; 43 44 optional TestMessage a = 1; 45 } 46 47 option ruby_package = "protoreflect-testprotos"; 48 49 option java_package = "com.github.jhump.protoreflect.internal.testprotos"; 50 51 option java_multiple_files = true; 52 53 option java_generate_equals_and_hash = true; 54 55 option go_package = "github.com/jhump/protoreflect/internal/testprotos"; 56 57 option csharp_namespace = "jhump.protoreflect.testprotos"; 58 59 option cc_enable_arenas = true; 60 61 import "pkg/desc_test_pkg.proto"; 62 63 import "nopkg/desc_test_nopkg.proto"; 64 65 import "desc_test1.proto"; 66 67 package testprotos;