-
Notifications
You must be signed in to change notification settings - Fork 282
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
默认值会被encode #36
Comments
是的, 不用的字段,不加@protobuf注解就会忽略 |
10个optional字段,如果没有赋值,encode出来的bytes应该是空的. |
google实现的protobuf 判空是需要 调用 hasxxx的方式,而不是根据值来判断的 |
是的,如果没有赋值,hasXXX == false 就不会encode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一个类有10个字段,如果只使用了其中1个字段,其他9个字段 "应该" 不会encode.
The text was updated successfully, but these errors were encountered: