Skip to content
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

Use bool HasHasbits(const FieldDescriptor*) instead of manual checks. #16842

Merged
1 commit merged into from
May 14, 2024

Conversation

copybara-service[bot]
Copy link

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.

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
@copybara-service copybara-service bot closed this pull request by merging all changes into main in 448e326 May 14, 2024
@copybara-service copybara-service bot deleted the test_633400555 branch May 14, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant