[protobuf] Accessing Custom Options from .desc file

2022-12-18 Thread vignesh suresh
I have a proto with the following definitions. import "google/protobuf/descriptor.proto"; extend google.protobuf.FieldOptions{ optional bool is_key = 50002; } message Foo{ int64 id = 1 [(is_key) = true]; } I generated a .desc file for the above. I was able to access all the Fields and

[protobuf] [compiler] Enforcing backward compatibility rules

2013-05-07 Thread Suresh
protoc compiler itself can be enhanced for this, by taking input the previous version(s) of the .proto file. Does anybody know of such tools? thanks Suresh -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this

[protobuf] Cross compilation of GPB to arm target

2012-11-28 Thread sandeep suresh
Dear experts, Greetings!! I have the following host machine: 32-Bit Dell computer with 32-Bit Ubuntu 12.04 LTS. I was successfully use the GPB for native system, compile and execute some applications without any problems. I want to cross compile GPM for an ARM platform. I tried the following

FindMessageTypeByName in java

2009-04-19 Thread suresh k
essageFactory::generated_factory()->GetPrototype(d)->New() ; msg->ParseFromString("Message data") ; This seems to work for me well. But I'm not able to find the equivalent implementation in Java. Is it possible to do the same in Java ? - Suresh --~--~-~--~~--