Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easy way to modify a message object #25

Open
sinopec opened this issue May 25, 2012 · 0 comments
Open

easy way to modify a message object #25

sinopec opened this issue May 25, 2012 · 0 comments

Comments

@sinopec
Copy link

sinopec commented May 25, 2012

I can't find an API to modify a PB object like setting a field of an object.

It seems that to modify an object of PBGeneratedMessage

First I have to get the object builder,
and then set the field value through builder
and then call the build function of builder.

How can I directly modify the field value of an object. Just like what We can do in c++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant