[protobuf] Re: Filtering/Query Support for Protocol Buffer

2012-06-04 Thread Shail
Thanks. I see that you have provided link which talks about XQuery like support for Python. I am using C# C++ version for protocol buffers.Is currently any plan of XPath/SQL query like support for C++/C#? Are you aware of any third party library or Open source code which can be used along with

Re: [protobuf] Re: Filtering/Query Support for Protocol Buffer

2012-06-04 Thread Pavel Shramov
On Sun, Jun 03, 2012 at 11:02:13PM -0700, Shail wrote: Thanks. I see that you have provided link which talks about XQuery like support for Python. I am using C# C++ version for protocol buffers.Is currently any plan of XPath/SQL query like support for C++/C#? You may try to contact Greg

[protobuf] Re: Compiling all .proto files under a particular directory

2012-06-04 Thread charfeddine.ahmed
Forget about this. I ended up using a Batch File where the compiler is called within a loop. On Jun 3, 7:56 pm, charfeddine.ahmed charfeddine.ah...@gmail.com wrote: I need to launch Google Protobuf upon an entire directory that contains many .proto files. Is there any way I can do this ?

[protobuf] Re: not able to install protocol buffer

2012-06-04 Thread charfeddine.ahmed
This is a common issue with libraries. Either send the library to the system library path, or better to investigate further on how your application was instructed to find that library. I usually build application in such a way they expect the needed libraries next to them. On Jun 1, 11:48 am,

[protobuf] Members Identifiers

2012-06-04 Thread charfeddine.ahmed
Why do we need to put a unique id to each member in a .proto file ? It is annoying when we need to make changes (add, remove members). -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to

Re: [protobuf] Members Identifiers

2012-06-04 Thread Marc Gravell
it only has to be unique to the particular message - not unique globally. The why is simply: because that is what it uses on the wire to identify different members. If they weren't unique, clearly it wouldn't work. If they weren't explicit (but were, say, assumed positionally) then it would not

Re: [protobuf] Members Identifiers

2012-06-04 Thread Marc Gravell
Do you have a minimal example? On 4 June 2012 11:48, Ahmed Charfeddine charfeddine.ah...@gmail.com wrote: Knowlegeable answer. Ok it is very natural that within the scope of a single message, ids are required to be unique. But I'm putting all messages in one file and the compiler was

[protobuf] Serialization Error

2012-06-04 Thread Farooq Mushtaq
While serializing I am getting error Possible recursion detected (offset: 2 level(s)). I have check tag of every ProtoMember of each class I am using. Each tag is unique but still finding this error. How can I handle this. I am new to Protocol Buffer. -- You received this message because you are

[protobuf] Dynamic messages

2012-06-04 Thread Tomas Kislan
Hello, i have little problem with dynamic messages as i want to send with required message_type, and according to that type i want to send different nested message along it example: message Message { required int64 type = 1; optional NestedMessage = 20; optional AnotherNestedMessage = 21;

Re: [protobuf] Serialization Error

2012-06-04 Thread Marc Gravell
This relates to protobuf-net; you've already emailed me directly, and I replied. You raised an issue report: I replied. Please read (and act on) my existing replies. Marc On 4 Jun 2012, at 12:00, Farooq Mushtaq farooqmushta...@gmail.com wrote: While serializing I am getting error Possible

[protobuf] Interacting with PYTHON Android API Library? (generated by ProtoBuf!)

2012-06-04 Thread Ryan Yu
I am a beginning programmer trying to retrieve information about Android apps using the unofficial Android API: http://code.google.com/p/android-market-api/ I've taken the market.proto file from the link above and complied it to a .py file. My understanding was that this would produce a Python

Re: [protobuf] Dynamic messages

2012-06-04 Thread Jason Hsueh
Required-field checking is only recursively applied when a message is present. If your top-level Message only contains NestedMessage, the initialization code should not be checking the AnotherNestedMessage field to make sure that that submessage has all required fields populated. Can you provide a

Re: [protobuf] DescriptorPool: call to FindFileByName() required before call to FindMessageTypeByName()?

2012-06-04 Thread Jason Hsueh
This is a result of SourceTreeDescirptorDatabase not implementing FindFileContainingSymbol() - it doesn't maintain an index of the types available in the database within the database, just the list of files that are available. This is a sufficient implementation for the proto compiler, where one

Re: [protobuf] Compiler issue when using FileDescriptor set in my own message

2012-06-04 Thread Jason Hsueh
The issue is import paths - the pre-generated versions of descriptor.pb.{h,cc} are generated relative to the source root. Instead of importing descriptor.proto, you should have something like import google/protobuf/descriptor.proto; This should make the code generator reference the declared

Re: [protobuf] Interacting with PYTHON Android API Library? (generated by ProtoBuf!)

2012-06-04 Thread Jason Hsueh
You should refer to the python API docs: https://developers.google.com/protocol-buffers/docs/pythontutorial https://developers.google.com/protocol-buffers/docs/reference/python-generated As you've found the generated .py aren't really helpful - it just includes metadata that is used along with