[protobuf] Unable to get through error: Protocol message contained an invalid tag (zero).

2016-02-05 Thread Vishal Singh
Hi, I am building an application using Sitewhere in which the message exchange between device and the server is done using Protocol Buffer format. The server sends a command to the device after converting the message in this format, but at the device end when the bytes array is converted to

[protobuf] Questions about Services

2016-02-05 Thread kevin chaves
Hi, I'm completely new to using protocol buffers and there are some things that aren't very clear. I may be missing something very simple but the documentation says the simple services are being deprecated so you have to turn them on using option cc_generic_services = false;. What is the

[protobuf] Re: memory leak from ParseFromArray()

2016-02-05 Thread Josh Haberman
Hi Rob, Is there any way to get more information about the objects it says have leaked? I'm surprised that your tool is showing objects being freed on exit that aren't freed by deleting outp and calling google::protobuf::ShutdownProtobufLibrary(). I don't think the protobuf library installs

[protobuf] Re: Any JSON coding question

2016-02-05 Thread Josh Haberman
Hi Tim, I think your analysis is correct. The answer to your question is that it's not possible to transcode Any from JSON <-> protobuf unless you have the schema. That is one of the reasons why the type URL exists as a way to fetch schemas for types you otherwise wouldn't know about. I'm

[protobuf] Fwd: Protobuf question for mailing list

2016-02-05 Thread Tim Kientzle
I’m trying to implement Any, including proper JSON and protobuf encoding, and the following scenario has me stumped: > I’m looking at the any.proto file, which includes this example: > Sample proto file: // package google.profile; // message Person { // string first_name = 1;