helloworld.proto
syntax = "proto3";
import "google/protobuf/empty.proto";
option go_package = ".;proto";
service HelloWrold{
rpc SayHello(HelloRequest) returns (google.protobuf.Empty);
}
message HelloRequest{
string content = 1;
string name = 2;
}
# grpcio
python -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I. helloworld.proto
# grpc-go
protoc -I . helloworld.proto --go_out=plugins=grpc:.