尽管没有正式支持PHP服务器,但我是否仍应从protoc + grpc_php_plugin获得服务? 正在运行:
#!/usr/bin/env bash
protoc --proto_path=./ \
--php_out=./generated \
--grpc_out=./generated \
--plugin=protoc-gen-grpc=../../../../grpc/bins/opt/grpc_php_plugin \
./greeter.proto
结束:
syntax = "proto3";
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
// The request message containing the user's name.
message HelloRequest {
string name = 1;
}
// The response message containing the greetings
message HelloReply {
string message = 1;
}
我只得到GreeterClient.php
。
我是否也应该得到GreeterService.php
?