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,
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
(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
)
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
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
(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
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
)
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
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
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
/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
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
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,
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
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
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
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
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
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
19 matches
Mail list logo