Skip to content

Conversation

@copybara-service
Copy link

Add metadata annotations for generated Python protobuf symbols.

The pyi generator now includes Kythe annotations for:

  • Extension field constants (e.g., EXTENSION_FIELD).
  • Field number constants (e.g., STRING_FIELD_FIELD_NUMBER).
  • Create methods in generated Stubby client classes.

These annotations allow the Python indexer to link these generated symbols back to their definitions in the .proto files.

The pyi generator now includes Kythe annotations for:
*   Extension field constants (e.g., `EXTENSION_FIELD`).
*   Field number constants (e.g., `STRING_FIELD_FIELD_NUMBER`).
*   `Create` methods in generated Stubby client classes.

These annotations allow the Python indexer to link these generated symbols back to their definitions in the `.proto` files.

PiperOrigin-RevId: 852971617
@copybara-service copybara-service bot merged commit 4f076d9 into main Jan 7, 2026
@copybara-service copybara-service bot deleted the test_852350690 branch January 7, 2026 00:06
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