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