Skip to content

Support merging protobuf messages using | and |= operations. #28055

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_933649630
Draft

Support merging protobuf messages using | and |= operations. #28055
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_933649630

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 17, 2026

Copy link
Copy Markdown

Support merging protobuf messages using | and |= operations.

This change allows using the | and |= operators as syntactic sugar for merging protobuf messages. m1 | m2 returns a new message resulting from merging m2 into a copy of m1. m1 |= m2 merges m2 into m1 in-place.

This change allows using the `|` and `|=` operators as syntactic sugar for merging protobuf messages. `m1 | m2` returns a new message resulting from merging `m2` into a copy of `m1`. `m1 |= m2` merges `m2` into `m1` in-place.

PiperOrigin-RevId: 933649630
@copybara-service copybara-service Bot changed the title Internal change Support merging protobuf messages using | and |= operations. Jun 17, 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.

1 participant