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

allow generating methods for each field #28

Closed
Tracked by #23
egonelbre opened this issue Jul 19, 2024 · 1 comment
Closed
Tracked by #23

allow generating methods for each field #28

egonelbre opened this issue Jul 19, 2024 · 1 comment

Comments

@egonelbre
Copy link
Member

egonelbre commented Jul 19, 2024

Protobuf generates method to allow accessing each field. This also means that when some field is renamed or changed you can add a custom method that handles the backwards compatibility.

However, it does come with a significant cost, because the messages end up in interfaces -- which in turn means none of the methods can properly elided -- most of the time.

There should be an option to generate them, in case it's needed. This will also make transitioning storj.io/storj easier.

@storj-gerrit
Copy link

storj-gerrit bot commented Aug 15, 2024

Change protoc-gen-pico: generate enum accessors mentions this issue.

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