Is it possible to define protocol buffers using Java?
It is instead
service Greeter { rpc SayHello (HelloRequest) returns (HelloReply) {} }
I would like to have
public interface Greeter { @Grpc HelloReply sayHello (HelloRequest req); } @GrpcMessage() public class HelloReply{ @GrpcField(1) string name; }
This is an annotation, like Hibernate / JPA over my POJO, instead of a bunch of generated code.
I could only find the dynamic protocol schemes of the Buffer https://github.com/os72/protobuf-dynamic
java protocol-buffers pojo grpc idl
Paul Verest Nov 04 '16 at 2:30 p.m. 2016-11-04 14:30
source share