github.com/jhump/protoreflect@v1.16.0/internal/testprotos/desc_test_proto3.proto (about) 1 syntax = "proto3"; 2 3 option go_package = "github.com/jhump/protoreflect/internal/testprotos"; 4 5 package testprotos; 6 7 import "desc_test1.proto"; 8 import "pkg/desc_test_pkg.proto"; 9 10 enum Proto3Enum { 11 UNKNOWN = 0; 12 VALUE1 = 1; 13 VALUE2 = 2; 14 } 15 16 message TestRequest { 17 repeated Proto3Enum foo = 1; 18 string bar = 2; 19 TestMessage baz = 3; 20 TestMessage.NestedMessage.AnotherNestedMessage snafu = 4; 21 map<string, bool> flags = 5; 22 map<string, TestMessage> others = 6; 23 } 24 25 message TestResponse { 26 AnotherTestMessage atm = 1; 27 repeated int32 vs = 2; 28 } 29 30 service TestService { 31 rpc DoSomething (TestRequest) returns (jhump.protoreflect.desc.Bar); 32 rpc DoSomethingElse (stream TestMessage) returns (TestResponse); 33 rpc DoSomethingAgain (jhump.protoreflect.desc.Bar) returns (stream AnotherTestMessage); 34 rpc DoSomethingForever (stream TestRequest) returns (stream TestResponse); 35 }