1syntax = "proto3";
2
3option go_package = "github.com/jhump/protoreflect/internal/testprotos";
4
5package testprotos;
6
7import "desc_test1.proto";
8import "pkg/desc_test_pkg.proto";
9
10enum Proto3Enum {
11	UNKNOWN = 0;
12	VALUE1 = 1;
13	VALUE2 = 2;
14}
15
16message 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}
23
24message TestResponse {
25	AnotherTestMessage atm = 1;
26	repeated int32 vs = 2;
27}
28
29service TestService {
30	rpc DoSomething (TestRequest) returns (jhump.protoreflect.desc.Bar);
31	rpc DoSomethingElse (stream TestMessage) returns (TestResponse);
32	rpc DoSomethingAgain (jhump.protoreflect.desc.Bar) returns (stream AnotherTestMessage);
33	rpc DoSomethingForever (stream TestRequest) returns (stream TestResponse);
34}
35