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