-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use bool HasHasbits(const FieldDescriptor*) instead of manual checks.
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: 633633184
- Loading branch information
1 parent
30a40ee
commit 448e326
Showing
3 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters