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

Custom options with proto3 #1460

Closed
Globegitter opened this issue Apr 27, 2016 · 2 comments
Closed

Custom options with proto3 #1460

Globegitter opened this issue Apr 27, 2016 · 2 comments

Comments

@Globegitter
Copy link

We are trying to use custom options in our application and running into issues under go (golang/protobuf#178). Reading more into the docs I am also seeing that extenstions have been deprecated with proto3, on which custom option currently relies. So I am wondering what the plan is with custom options? Are they still going to be supported going forward (I assume so, as they are being mentioned in the docs)? And if they are supported how would they even work under proto3?

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Apr 27, 2016

Custom options are still supported. It's the only place where you can use extensions in proto3. It works the same way as in proto2. Languages that don't support proto2 may provide a special API to access custom options as they don't support extensions.

@Globegitter
Copy link
Author

Ok, thank you for adding some clarification on that. Then we can happily carry on using this feature.

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

2 participants