I define the rpc service in the proto file, but I cannot find any interface or method in the output java file.
$ protoc -v
libprotoc 2.5.0
proto file:
service EchoService {
rpc Echo (Person) returns (Person);
}
compile script:
#!/bin/bash
for file in `find src/main/proto -name "*.proto"`; do
protoc --proto_path=src/main/proto --java_out=src/main/java/ $file
done
source
share