[protobuf] Re: Alternate names for enumeration values

2011-02-04 Thread Ben Wright
I have just the solution for you... I'll start by warning you that I use PB mainly in Java, so things may look slightly different in C++ - but this method should still work. You're going to want to define an extension to google.protobuf.EnumValueOptions in your .proto file you will need to add

[protobuf] Re: Generate .proto file from FileDescriptor?

2011-02-04 Thread Ben Wright
Anyone know if this can be accomplished without resorting to JNI? On Feb 3, 4:01 pm, Jason Hsueh jas...@google.com wrote: C++'s FileDescriptor::DebugString() produces text that is reparsable as a .proto file On Thu, Feb 3, 2011 at 12:52 PM, Ben Wright compuware...@gmail.com wrote: I've

[protobuf] Re: Compilation error for ppc/440 target

2011-02-04 Thread dear chap
Unfortunately we have to use the particular compiler in question and cannot upgrade. Is the DescriptorBuilder::OptionInterpreter::AggregateOptionFinder new code ? I dont see this problem with protobuf-2.3.0. -- You received this message because you are subscribed to the Google Groups Protocol

Re: [protobuf] Number of Bits Written to Memory

2011-02-04 Thread Brian Palmer
On Thu, Feb 3, 2011 at 8:58 AM, Tanya turtle...@gmail.com wrote: Basically, we need some way of specifying how the bytes are encoded/ written to memory, and we need to specify the number of bits written each time. Is this possible to do in protocol buffers? And if so, how would it be

Re: [protobuf] Re: New protobuf feature proposal: Generated classes for streaming / visitors

2011-02-04 Thread Kenton Varda
On Wed, Feb 2, 2011 at 10:13 AM, Henner Zeller henner.zel...@googlemail.com wrote: I guess the naming is confusing in the example. The Visit is per field-name; but since the typed is named the same as the field in this example, it is confusing. Yes, sorry. Better example: message

Re: [protobuf] 2.4.0a released.

2011-02-04 Thread Kenton Varda
On Wed, Feb 2, 2011 at 9:59 PM, David Yu david.yu@gmail.com wrote: Where the jars at? (Or do we have to build the jars from source?) Have to build from source. (Though we're going to try to get the Maven repo updated. Long story.) I'm trying to benchmark 2.4.0a with its java perf

Re: [protobuf] where is input_stream.py?

2011-02-04 Thread Jason Hsueh
This file was deleted as part of the python serialization optimizations that were released in 2.3.0. A lot of the functionality now exists in decoder.py. You shouldn't be relying on internal parts of the package though, so it should only serve as a reference point for you. On Fri, Feb 4, 2011 at

[protobuf] Multiple messages using std::streams

2011-02-04 Thread Gabriel Becedillas
I had a hard time trying to serialize multiple messages in a std::ostream, and then trying to parse them one at a time from an std::istream, so I'm sharing my code for two reasons: - It may be useful for someone else. - To receive comments from more experienced people. template typename TMessage

Re: [protobuf] Protobuf 2.4 and Android

2011-02-04 Thread Pherl Liu
The protobuf in android source code is a branched protobuf for google voice, which is not intended for public use, and may change in the future. Generally, you should use the opensource version of protobuf in your app, set the option optimize_for = LITE_RUNTIME; in your proto file and use the

[protobuf] Re: Issue 241 in protobuf: Java Tutorial / Generated code doc lacks reference to ExtensionRegistry

2011-02-04 Thread protobuf
Updates: Status: Fixed Comment #2 on issue 241 by liuj...@google.com: Java Tutorial / Generated code doc lacks reference to ExtensionRegistry http://code.google.com/p/protobuf/issues/detail?id=241 (No comment was entered for this change.) -- You received this message because you are

[protobuf] Re: Issue 230 in protobuf: Documentation of the import behavior

2011-02-04 Thread protobuf
Updates: Status: Fixed Comment #2 on issue 230 by liuj...@google.com: Documentation of the import behavior http://code.google.com/p/protobuf/issues/detail?id=230 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups

[protobuf] Re: Issue 250 in protobuf: [PATCH] Maven-plugin does not work with M2Eclipse

2011-02-04 Thread protobuf
Updates: Owner: g...@google.com Comment #1 on issue 250 by liuj...@google.com: [PATCH] Maven-plugin does not work with M2Eclipse http://code.google.com/p/protobuf/issues/detail?id=250 (No comment was entered for this change.) -- You received this message because you are subscribed