syntax = "proto3";
package hello;
service HelloService {
rpc SayHello(HelloReq) returns (HelloResp) {};
}
message HelloReq {
string Name = 1;
}
message HelloResp {
string Result = 1;
}
message CustomError {
string Error = 1;
}
如果请求中有错误,我可以让我的服务器发送CustomError吗?