github.com/jhump/protoreflect@v1.16.0/internal/testprotos/grpc/dummy.proto (about) 1 syntax = "proto3"; 2 3 option go_package = "github.com/jhump/protoreflect/internal/testprotos/grpc"; 4 5 package testprotos; 6 7 import "desc_test1.proto"; 8 import "pkg/desc_test_pkg.proto"; 9 10 message DummyRequest { 11 repeated bytes foo = 1; 12 string bar = 2; 13 TestMessage baz = 3; 14 TestMessage.NestedMessage.AnotherNestedMessage snafu = 4; 15 map<string, bool> flags = 5; 16 map<string, TestMessage> others = 6; 17 } 18 19 message DummyResponse { 20 AnotherTestMessage atm = 1; 21 repeated int32 vs = 2; 22 } 23 24 // Basically looks just like TestService in "../desc_test_proto3.proto". Except we only 25 // generate gRPC-related code for this package, not in "..". This copy lets us test reflection 26 // over said gRPC-related code from grpcreflect. 27 service DummyService { 28 rpc DoSomething (DummyRequest) returns (jhump.protoreflect.desc.Bar); 29 rpc DoSomethingElse (stream TestMessage) returns (DummyResponse); 30 rpc DoSomethingAgain (jhump.protoreflect.desc.Bar) returns (stream AnotherTestMessage); 31 rpc DoSomethingForever (stream DummyRequest) returns (stream DummyResponse); 32 }