github.com/cloudwego/kitex@v0.9.0/pkg/generic/httppb_test/idl/echo.proto (about) 1 syntax="proto3"; 2 package idl; 3 4 option go_package = "github.com/cloudwego/kitex/pkg/generic/httppb_test/idl"; 5 6 enum TestEnum { 7 Zero = 0; 8 First = 1; 9 } 10 11 message Elem { 12 bool ok = 1; 13 } 14 15 message Message { 16 int32 tiny = 1; 17 int64 large = 2; 18 TestEnum tenum = 3; 19 string str = 4; 20 map<string, Elem> elems = 5; 21 repeated Elem els = 6; 22 // map<int32, Elem> els = 7; 23 } 24 25 service ExampleService { 26 rpc Echo(Message) returns(Message); 27 } 28 29 // protoc --go_out=$GOPATH/src kitex/pkg/generic/httppb_test/idl/echo.proto