Skip to content

Conversation

@bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Jan 5, 2026

b/435022198

@bshaffer bshaffer requested a review from a team as a code owner January 5, 2026 19:28
@bshaffer bshaffer requested review from ericsalo and removed request for a team January 5, 2026 19:28
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer marked this pull request as draft January 5, 2026 19:28
@mkruskal-google mkruskal-google self-requested a review January 5, 2026 19:29
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer marked this pull request as ready for review January 5, 2026 21:07
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 5, 2026
@bshaffer bshaffer added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 6, 2026
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 6, 2026
case FieldDescriptor::CPPTYPE_STRING:
return "'" + absl::CEscape(field->default_value_string()) + "'";
case FieldDescriptor::CPPTYPE_MESSAGE:
return "null";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be unreachable, might as well ABSL_CHECK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this?

Suggested change
return "null";
ABSL_CHECK(false) << "Message fields cannot have default values.";
return "null";

@copybara-service copybara-service bot closed this in b01099d Jan 8, 2026
protobuf-team-bot added a commit that referenced this pull request Jan 8, 2026
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.

2 participants