codelipenghui opened a new pull request, #25261: URL: https://github.com/apache/pulsar/pull/25261
### Motivation\nFixes #25202.\n\nPulsar protobuf schema APIs were bounded to GeneratedMessageV3, which breaks usage with protobuf v4 generated classes (for example Any).\n\n### Modifications\n- Widened protobuf schema-related generic bounds from GeneratedMessageV3 to Message in client API/binding and implementations.\n- Updated protobuf schema reader/writer/native classes and runtime validation checks to use Message.\n- Kept strict generated-message validation via descriptor/default-instance reflective paths.\n- Added API signature regression test to lock in Message upper bounds.\n- Added/updated protobuf schema tests for client and native paths.\n- Updated pulsar-functions protobuf class detection to work with protobuf v4 (Message-based detection).\n- Added protobuf-v4 required CI job for client + functions tests using v4 property overrides.\n\n### Testing\n- Ran functions protobuf-related tests locally out of sandbox:\n - org.apache.pulsar.functions.instance.JavaInstanceRunnabl eTest\n - org.apache.pulsar.functions.source.TopicSchemaTest\n -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
