[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] Deserializng JSON tagged unions?

2016-05-10 Thread Marco
2:19 PM UTC-4, Feng Xiao wrote: > > > > On Fri, May 6, 2016 at 8:18 PM, Marco <a.f@gmail.com > > wrote: > >> I'm looking to generate de/serialization for json tagged union messages >> from an external rest api, eg. >> { type: "error", mess

[protobuf] protocol buffers and client-server communication

2011-01-22 Thread Marco@worldcorp
(having in total N + M) types of messages. I am guessing i will need 1 proto file for each type of message, correct? w/kindest regards marco -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf

[protobuf] Problem when generating classes

2011-01-28 Thread Marco@worldcorp
) throws java.io.IOException { return newBuilder().mergeDelimitedFrom(input, extensionRegistry) .buildParsed(); } could anyone tell me what have i done wrong in my .proto file? thanks and regards marco -- You received this message because you are subscribed to the Google

[protobuf] Re: Problem when generating classes

2011-01-29 Thread Marco@worldcorp
Hi ok i think i found the problem. I am compiling using protobuffer 2.2.0 , and in my project i am using libraries from protobuf 2.3.0 rgds marco On Jan 28, 11:45 pm, Marco@worldcorp mmistr...@gmail.com wrote: Hi all  i am starting to learn protobuffers so that i can use them alongside

[protobuf] why am i getting this exception?

2011-01-29 Thread Marco@worldcorp
(MessageProtos.java:215) could anyone help pls? w/kindest regards marco -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf

[protobuf] Re: why am i getting this exception?

2011-01-29 Thread Marco@worldcorp
Hello, PLs ignore my message It was a Netty problem as i was using multiple decoders / encoders / frames and that was messing up the result sorry for bothering regards marco On Jan 29, 11:09 am, Marco@worldcorp mmistr...@gmail.com wrote: HI all  i have wrote a simple messages.proto

[protobuf] Error with Netty and extensions

2011-02-06 Thread Marco@worldcorp
) at java.lang.Thread.run(Thread.java:662) Do i need to somehow declare extensions whenever i register my ProtocolDecoder / ProtocolEncoder? If i don't set any extensions, the client-server communication works fine could anyone help? w/kindest regards marco -- You received

[protobuf] field of type timestamp or date with protobuf message

2011-02-12 Thread Marco@worldcorp
HI all is it possible to add a field of type timestamp , or date, to a protobuf message.. i have quickly read the guide, and i saw no trace of timestamps or fields of type date. could anyone assist? w/kindest regards marco -- You received this message because you are subscribed

[protobuf] XSD to define .proto format?

2011-05-20 Thread Marco Tedone
Hi all, Is there an XML schema (XSD) which defines the .proto file format? I need it so that JAXB can create the POJOs to fill a .proto file. Regards, Marco -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email

[protobuf] Numeric range not supported?

2011-05-30 Thread Marco Tedone
/simpleType However I couldn't find equivalent translation in the proto language definition. I could find defaults and enums, but not number ranges. Regards, Marco -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email

[protobuf] Maps in protobuf / 2

2011-06-16 Thread Marco Mistroni
HI all sorry i hijacked a previous thread .. Is it possibel to define Maps in protobuff? i have some serverside code which returns a MapString, Double, and i was wondering if there was a way in protobuf to define a Map could anyone help ? w/kindest regards marco -- You received this message

[protobuf] Uploading the maven-protoc-plugin to Maven Central?

2011-06-19 Thread Marco Tedone
Hi all, Is there a reason why the plugin hasn't been uploaded to Maven Central? If you want I could take ownership of that but then I'd have to be the owner of the com.google.protobuf Maven groupId, which I don't think is a good idea. There are already two other maven-protoc-plugin out there,

RE: [protobuf] Uploading the maven-protoc-plugin to Maven Central?

2011-06-21 Thread Marco Tedone
and runs under the MIT license *and* is on Maven central: http://repo2.maven.org/maven2/uk/co/jemos/maven/plugins/maven-jemosProtoc-plugin/ Regards, Marco -Original Message- From: Gregory Kick [mailto:g...@google.com] Sent: 21 June 2011 18:26 To: Pherl Liu Cc: Marco Tedone; Protocol

RE: [protobuf] Uploading the maven-protoc-plugin to Maven Central?

2011-06-21 Thread Marco Tedone
I have already talked to dtrott and he confirmed his plugin runs under the BSD license. Time allowing I will attempt to contact him and suggest an official release. In the meantime I'm releasing version 0.0.2.RELEASE of my one. Regards, Marco -Original Message- From: Gregory Kick

[protobuf] PROTOMAK 0.0.2.RELEASE just released

2011-06-24 Thread Marco Tedone
Hi, Protomak is a tool to auto-convert XSDs to .proto files. We have just released version 0.0.2.RELEASE. You can find out more at http://www.jemos.eu/projects/protomak Regards, Marco -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post

[protobuf] What causes TargetInvocationException during serialization

2014-05-16 Thread Marco P.
I am trying to serialize something like this (i'll summarize as the object is more complex): class Anag { } System.Reflection.TargetInvocationException was unhandled Message=TargetInvocationException StackTrace: at System.Reflection.RuntimePropertyInfo.GetValue() at

Re: [protobuf] Deserializng JSON tagged unions?

2016-05-10 Thread Marco Farrugia
rs, > > Tim > > > On May 10, 2016, at 7:08 AM, Marco <a.f.ma...@gmail.com> wrote: > > > > That does work, but it seems like it creates a lot of unnecessary work > if there are many fields. > > > > Is there a better way to handle a schema mo

Re: [protobuf] Issues in the proto 3 spec

2016-11-29 Thread Marco Willemart
Done :-) https://github.com/google/protobuf/issues/2424 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to