Handle google.protobuf.Any in custom options source code info. - #29468
Draft
copybara-service[bot] wants to merge 1 commit into
Draft
Handle google.protobuf.Any in custom options source code info.#29468copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
copybara-service
Bot
force-pushed
the
test_963968051
branch
5 times, most recently
from
August 29, 2026 18:28
20c584a to
9e4b8b4
Compare
When options include `google.protobuf.Any` fields, the TextFormat parser parses the unpacked message directly and records `any_type_url_field`'s name location as the type URL span, while omitting field locations for `any_value_field`. Previously, OptionInterpreter only iterated over standard set fields, which caused warning logs about missing field locations for `type_url` and `value` and failed to record source locations for fields inside `Any`. PiperOrigin-RevId: 963968051
copybara-service
Bot
force-pushed
the
test_963968051
branch
from
August 29, 2026 18:33
9e4b8b4 to
0fcd441
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handle google.protobuf.Any in custom options source code info.
When options include
google.protobuf.Anyfields, the TextFormat parser parses the unpacked message directly and recordsany_type_url_field's name location as the type URL span, while omitting field locations forany_value_field. Previously, OptionInterpreter only iterated over standard set fields, which caused warning logs about missing field locations fortype_urlandvalueand failed to record source locations for fields insideAny.