Re: [protobuf] Job.proto:11:18: "DescriptorProto" is not defined.

2012-10-01 Thread Jason Hsueh
To start with you need to use the qualify with the package as google.protobuf.DescriptorProto. See the section on Name Resolution: https://developers.google.com/protocol-buffers/docs/proto#packages Assuming your paths are set up correctly it should work after that. On Fri, Sep 28, 2012 at 2:19 AM

[protobuf] ignoring part of the message -?

2012-10-01 Thread victorl
Hi, My "message" is an UDP packet header and I have to ignore the rest of the packet. How can I express that in .proto syntax? Note that the header length is fixed (70B), but the packet length is not Also, would it be possible to validate that those first 70B really conform to the message

[protobuf] Job.proto:11:18: "DescriptorProto" is not defined.

2012-10-01 Thread Fahad Madani
Hi, I am trying to compile my .proto file using protoc compiler and generate java classes for the same. Below is my Job.proto file *import "google/protobuf/descriptor.proto"; option java_package = "com.myfile.test"; option java_outer_classname = "JobProto"; message Job{ required string com

[protobuf] Re: Using Protocol Buffer in other Languages

2012-10-01 Thread cisco tierra
Hi. You can write your own parser, the structure to follow it is not difficult. You can download the source code for protobuffer and you will have the compiler/cpp, compiler/java and compiler/python parsers to "copy". I wrote the first version of parser to generate code for fitnesse in two day

[protobuf] streaming multiple messages to 1 stream

2012-10-01 Thread kenrick koo
I've read the suggestion about first writing the size of each message followed by the message in order to workaround the issue that protocol buffer parsers don't know where 1 message ends and another begins. Could someone show example code on how to do this for a C# client sending a message to

[protobuf] Re: Python3 Protobufs

2012-10-01 Thread Charles Law
I assumed that the type/value errors are no longer valid in Python 3, so I removed the 3 checks in reflection_test.testStringUTF8Encoding(). All unit tests now pass! On Tuesday, September 25, 2012 1:47:09 PM UTC-7, Charles Law wrote: > > I thought about this a little, and realized that both un

[protobuf] Re: Issue 389 in protobuf: Patch: for VC11 need set preprocessor definition _VARIADIC_MAX=10;

2012-10-01 Thread protobuf
Comment #3 on issue 389 by alexande...@mail.ru: Patch: for VC11 need set preprocessor definition _VARIADIC_MAX=10; http://code.google.com/p/protobuf/issues/detail?id=389 Ok, but also need add in gtest, gtest-lite and test_plugin -- You received this message because you are subscribed to the