Yeah you were right I am using C++ and the mutable functions work
perfectly for what I want. Thanks a lot

On Aug 19, 5:17 pm, Henner Zeller <henner.zel...@googlemail.com>
wrote:
> 2010/8/19 Julian González <julian....@gmail.com>:
>
> > I have the following:
>
> > message Configuration
> > {
> >        required LogInfo logInfo = 1;
> >        required ApmCfg apmCfg = 2;
> >        repeated Rail rail = 3;
> >        required TriggerInfo triggerInfo = 4;
> > }
>
> > I have an object of type Configuration, but I do not see any setter
> > for logInfo, apmCfg or triggerInfo or a way to access those members,
> > just a way to read them.
>
> which language ?
> In C++ you can access the instances with the mutable_XX() accessors
> that return a pointer to the object in question:
>
>   config_object->mutable_loginfo()->set_field_in_loginf()
>
>
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Protocol Buffers" group.
> > To post to this group, send email to proto...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > protobuf+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/protobuf?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to