[protobuf] Deserializng JSON tagged unions?

2016-05-06 Thread Marco
I'm looking to generate de/serialization for json tagged union messages from an external rest api, eg. { type: "error", message: "wrong"} or { type:"ok", response: { a: 1, b: 2}}. Reading the docs it seems like an any valued field the type field modified json_name would work similarly,

Re: [protobuf] Decimal in json?

2016-05-06 Thread Ray Rizzuto Jr
Well, it might be as simple as how it is represented in .Net: http://csharpindepth.com/Articles/General/Decimal.aspx Other languages might have different representation, and ranges, so whatever is chosen, there may be cases where the wire format can't be represented in the native type for a

[protobuf] photo file compilation Error for csharp

2016-05-06 Thread gurbhej . sandhu
Dear Supoort, I am getting the compilation error when I try to generate the classes to csharp with following commands. protoc -I= SourceFolder --csharp_out= SourceFolder/Classes SourceFolder/sample.proto proton -proto_path= SourceFolder --csharp_out= SourceFolder/Classes

[protobuf] Checking compatibility

2016-05-06 Thread Vinicius Carvalho
Hi there, does protobuf has an equivalent of Avro's checkReaderWriterCompatibility? Can I check if two .proto files would allow match between versions? Also, Avro has GenericRecord as a container object to read any data in a map like style, does protobuf has something similar? Regards --

[protobuf] Usage: ./myproject ADDRESS_BOOK_FILE

2016-05-06 Thread Maximus Meguard
Hi I'm a noob with protocol buffers. I believe I have been following the tutorials closely. But I don't seem to be able to run the compiled c file properly. I'm using the source code as suggested by google (with the addressbook example). Here is the message: Usage: ./myproject

Re: [protobuf] Decimal in json?

2016-05-06 Thread 'Adam Cozzette' via Protocol Buffers
A decimal type sounds like potentially a good candidate for becoming a well-known type with a custom JSON representation. There's a StackOverflow discussion

Re: [protobuf] Proto3 Storing UUID

2016-05-06 Thread 'Adam Cozzette' via Protocol Buffers
The bytes type sounds like a good choice to me. I could also imagine using a pair of fixed64 fields if you want to avoid having to validate the length of the byte string. On Thu, Apr 28, 2016 at 10:39 PM, Osman Ali wrote: > Looking use a 128 bit uuid according to rfc4122.

Re: [protobuf] Repeated Enums

2016-05-06 Thread 'Adam Cozzette' via Protocol Buffers
Thanks for reporting this hole in the documentation; I'll see about updating the Go documentation on repeated fields here . On Mon, May 2, 2016 at 3:42 PM, 'Disney Lam' via Protocol Buffers <

Re: [protobuf] protobuf-dt required password from eclipse marketplace

2016-05-06 Thread 'Adam Cozzette' via Protocol Buffers
Could you provide some more detail on where a password was required? On Sun, May 1, 2016 at 7:34 PM, Yan Yan wrote: > It worked before. Now it required a password. Any idea? Thx. > > -- > You received this message because you are subscribed to the Google Groups > "Protocol