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
Thanks.
On 16 Juli, 00:43, Kenton Varda ken...@google.com wrote:
On Wed, Jul 15, 2009 at 10:56 AM, jasonh jas...@google.com wrote:
Foo f = Foo.newBuilder().mergeFrom(...).setCookie(newCookieVal).build
();
There's actually a shortcut for this: the toBuilder() method of the Message
On Jul 15, 5:33 am, Kaj Bjurman kaj.bjur...@gmail.com 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.
On Wed, Jul 15, 2009 at 10:56 AM, jasonh jas...@google.com 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