Thanks.
On 16 Juli, 00:43, Kenton Varda wrote:
> On Wed, Jul 15, 2009 at 10:56 AM, jasonh wrote:
> > Foo f = Foo.newBuilder().mergeFrom(...).setCookie(newCookieVal).build
> > ();
>
> There's actually a shortcut for this: the toBuilder() method of the Message
> interface returns a Builder that
Thanks Jason,
Yes all messages would use the same tag number for the "cookie" field,
and all messages must have that field, but that is all that the router
should know, and it must be able to append data to that field.
I think I have understood what to do now, and thanks for the tip about
where
On Wed, Jul 15, 2009 at 10:56 AM, jasonh wrote:
> Foo f = Foo.newBuilder().mergeFrom(...).setCookie(newCookieVal).build
> ();
There's actually a shortcut for this: the toBuilder() method of the Message
interface returns a Builder that is pre-initialized as a copy of that
message.
--~--~--
On Jul 15, 5:33 am, Kaj Bjurman wrote:
> Hi,
>
> I have just read the tutorials and the some threads in these forums,
> but there's one thing that I can't find an answer for. I'm currently
> using a router that is responsible to route different messages to
> different servers. The protocol that
Hi,
I have just read the tutorials and the some threads in these forums,
but there's one thing that I can't find an answer for. I'm currently
using a router that is responsible to route different messages to
different servers. The protocol that we are currently using is a very
simple. Basically h