You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a dynamic message from a dynamic file descriptor, and I noticed that the dynamic fds seem to ignore proto3 optional settings
Steps to reproduce:
Build FileDescriptorProto using FileDescriptor#new_dynamic_fds
Get MessageDescriptor and create a new instance of the message
Set a proto3 optional field to 0
Serialize message into bytes using MessageDyn.html#write_to_bytes_dyn, observed that 0 is not encoded, field presence is not tracked
In my FileDescriptorProto, I have this MessageDescriptorProto, where I set the proto3_optional to true, and added a synthetic oneof descriptor to make this field explicitly optional
Hi,
I am building a dynamic message from a dynamic file descriptor, and I noticed that the dynamic fds seem to ignore proto3 optional settings
Steps to reproduce:
FileDescriptor#new_dynamic_fds
MessageDyn.html#write_to_bytes_dyn
, observed that 0 is not encoded, field presence is not trackedIn my FileDescriptorProto, I have this MessageDescriptorProto, where I set the
proto3_optional
to true, and added a synthetic oneof descriptor to make this field explicitly optionalIs there an error in my MessageDescriptor proto set up? How can I make the dynamic message from dynamic fds track field presence?
Thank you!
The text was updated successfully, but these errors were encountered: