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