You mean MutableExtension()?  Yes, you can't use SetExtension() on
message-typed extensions because regular fields of message type don't have a
set_foo() accessor.  So, you must use MutableExtension() instead.

On Tue, Aug 25, 2009 at 5:34 AM, Jesper Eskilson <> wrote:

> On Tue, Aug 25, 2009 at 10:51 AM, Jesper Eskilson<>
> wrote:
> > I'm getting a C++ template error message I'm having trouble
> > understanding. I have two .proto files, one called "cdp.proto" which
> > defines ServiceCommand:
> Problem solved. I realized that I need to use the GenericExtension()
> method just like when setting regular fields.
> --
> /Jesper
> >

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to