It is not sufficient to check schema_.HasHasbits() followed by naively skipping repeated and oneof fields as that can miss proto3 messages with message fields and other scalar fields without "optional" keyword. Use internal::cpp::HasHasbits(const FieldDescriptor*) instead. PiperOrigin-RevId: 633633184pull/16842/head
parent
30a40eefe5
commit
448e326200
3 changed files with 86 additions and 3 deletions
Loading…
Reference in new issue