[protobuf] strange problem while parsing an extension

2011-01-13 Thread Simeon Mitev
Hi all, I have a strange behavior with java release 2.3.0 and I need your help: Protos.proto: ... message Request { required Api api_call = 1; extensions 100 to 200; } message RefundRequest { extend Request { optional RefundRequest refund_request = 100; } required

[protobuf] strange behavior while parsing an extension

2011-01-13 Thread Simeon Mitev
to make it simple, here is one proto file and two jUnits tests. The first one passes through and the second one fails. See the comments for details. Protos.proto: enum Api { REFUND = 1; } message Request { required Api api_call = 1; extensions 100 to 200; }

Re: [protobuf] can protocol buffer can be used to send .proto files across machines?

2010-10-18 Thread Simeon Mitev
I might be wrong but I thing that protobuf does not implement any networking at all. Think about it as a framework for extend-able in time custom protocols implementation. It can serialize and deserialize objects by predefined by you structure. That's all. Of course, protobuf can be used for