我是grpc的新手,我试图运行一个示例,我正在运行protoc --java_out = $ SUR_DIR $ .proto文件,此命令不会为仅生成请求的服务生成主类/ res及其构建器类
syntax = "proto3";
option java_multiple_files = true;
package org.baeldung.grpc;
service HelloService {
rpc hello(HelloRequest) returns (HelloResponse);
}
message HelloRequest {
string firstName = 1;
string lastName = 2;
}
message HelloResponse {
string greeting = 1;
}
ServiceBAseImpl不会仅在其下方创建
HelloRequest elloRequestOrBuilder HelloResponse elloResponseOrBuilder HelloServiceOuterClass(最终)