We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
# file p.proto message M { optional double d1 = 1 [default = 0.0]; optional double d2 = 2 [default = 1.0]; optional double d3 = 3 [default = 1.1]; }
>>> import p_pb2 >>> m = p_pb2.M() >>> type(m.d1) <type 'int'> >>> type(m.d2) <type 'int'> >>> type(m.d3) <type 'float'>
I thought the behavior is confusing. Is it possible to make the type of default value consistent with the type defined in proto file?
The text was updated successfully, but these errors were encountered:
It has been changed to always return a float value for the default
Sorry, something went wrong.
anandolee
No branches or pull requests
I thought the behavior is confusing. Is it possible to make the type of default value consistent with the type defined in proto file?
The text was updated successfully, but these errors were encountered: