github.com/hoveychen/protoreflect@v1.4.7-0.20221103114119-0b4b3385ec76/internal/testprotos/desc_test_proto3.proto (about)

     1  syntax = "proto3";
     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  
    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  }
    23  
    24  message TestResponse {
    25  	AnotherTestMessage atm = 1;
    26  	repeated int32 vs = 2;
    27  }
    28  
    29  service TestService {
    30  	rpc DoSomething (TestRequest) returns (hoveychen.protoreflect.desc.Bar);
    31  	rpc DoSomethingElse (stream TestMessage) returns (TestResponse);
    32  	rpc DoSomethingAgain (hoveychen.protoreflect.desc.Bar) returns (stream AnotherTestMessage);
    33  	rpc DoSomethingForever (stream TestRequest) returns (stream TestResponse);
    34  }