-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
"extend" is not allowed in proto3 spec, but is used in tests #4610
Comments
Only MessageOption, which is internal. Don't use it by yourself. |
@TeBoring unfortunately protobuf compiler If this option is not meant to be used outside of Google, then public version of |
|
@anandolee, we can still define custom option in proto3, right? |
In proto3, custom options are allowed, i.e., users can use "extend" keyword to define their own extensions to proto descriptor options. The spec is missing stuff because it was created after protoc, i.e., it's introduced to describe what protoc does, rather than defining what protoc does. If you are implementing protobuf support in a new language it's better to follow what protoc accepts instead of what the spec doc says. |
I know the issue is closed, but can the misleading title (which shows up in searches) be fixed? I believe now is supposed to be not. |
Fixed! (I hate that typo and am amazed how often I make it) |
Spec 3 doesn't mention
extend
unlike Spec 2.However
extend
withsyntax = "proto3"
is used in protobuf tests.The text was updated successfully, but these errors were encountered: