I am trying to compile my proto into a grpc java client and a python grpc java server.
I can’t get the java generated class to produce the Services.
The following is proto named ‘myproto.proto:
syntax = "proto3";
package amat.metrology_setup.api.services.generic_measurement;
option java_package = "amat.metrology_setup.api.services.generic_measurement";
message AlLData {
map<string, SingleData> map_data = 1;
}
message SingleData{
map<string, string> params = 1;
}
message Empty{
}
service Updaer {
rpc SendData(AlLData) returns (Empty);
rpc GetUpdatedData(Empty) returns (AlLData);
}
Python works well, but the java cannot geneate the matching Updaer.
I’ve read that without the protoc-gen-grpc-java plugin it is expected not to generate services.
Like this:
$protoc -I=$SRC_DIR --java_out=$DST_DIR $SRC_DIR/my_proto.proto
I know that I need grpc pluginprotoc-gen-grpc-java to generate the services and that wit
So i’ve done:
$protoc -I=$SRC_DIR --java_out=$DST_DIR --plugin=protoc-gen-grpc-java=$grpc_java_plugin $proto_file
But I still can’t get the services to be compiled. All the paths are valid because the file is being compiled.
what am I missing?