I am trying to communicate my Server with another Cloud service which speaks through a specific protocol that was developed based on Google Protocol Buffer. I wrote a Java program in Netbeans which is able to read messages from this Cloud service, but these messages appear in my console in an unreadable format. I was said that I must have installed the appropriate protocol to interpret these messages. So, I installed google protocol buffer for Java and Win: https://github.com/google/protobuf/releases/tag/v3.5.0
Now, I am trying to use protoc commands in cmd to compile my Java program (which reads the input messages from cloud service) to be able to read the incoming data in understandable format.
Can anyone help me answer these two questions:
- Real working example of using Protoc to compile a Java program? Google says use this: protoc -I=$SRC_DIR --java_out=$DST_DIR $SRC_DIR/addressbook.proto https://developers.google.com/protocol-buffers/docs/javatutorial
But I am not able to get this syntax work
- What output would this command generate and how/where can I use it to interpret the messages I am receiving in the Netbeans console (with my Java program created in Netbeans)?
Thank you!