Skip to content

Add KNPComGoogleProtobufExtensionRegistryLite compatibility alias and include ExtensionRegistryLite.h from GeneratedMessage.h. - #2944

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1029062286
Nov 26, 2026

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Add KNPComGoogleProtobufExtensionRegistryLite compatibility alias and include ExtensionRegistryLite.h from GeneratedMessage.h.

To align J2ObjC protobuf headers with Kotlin/Native protobuf codegen in Objective-C and Swift:

  • Add @compatibility_alias KNPComGoogleProtobufExtensionRegistryLite ComGoogleProtobufExtensionRegistryLite; in ExtensionRegistryLite.h.
  • Include com/google/protobuf/ExtensionRegistryLite.h from GeneratedMessage.h instead of forward-declaring ComGoogleProtobufExtensionRegistryLite so the alias is available from generated proto headers.

@copybara-service
copybara-service Bot force-pushed the test_1029062286 branch 2 times, most recently from 413e7f5 to 530e167 Compare November 26, 2026 15:51
@copybara-service copybara-service Bot changed the title Add J2ObjC companion and KNP compatibility alias for ExtensionRegistryLite to match Kotlin/Native protobuf codegen in Objective-C and Swift. Add KNPComGoogleProtobufExtensionRegistryLite compatibility alias and include ExtensionRegistryLite.h from GeneratedMessage.h. Nov 26, 2026
…nd include `ExtensionRegistryLite.h` from `GeneratedMessage.h`.

To align J2ObjC protobuf headers with Kotlin/Native protobuf codegen in Objective-C and Swift:
- Add `@compatibility_alias KNPComGoogleProtobufExtensionRegistryLite ComGoogleProtobufExtensionRegistryLite;` in `ExtensionRegistryLite.h`.
- Include `com/google/protobuf/ExtensionRegistryLite.h` from `GeneratedMessage.h` instead of forward-declaring `ComGoogleProtobufExtensionRegistryLite` so the alias is available from generated proto headers.

PiperOrigin-RevId: 1030708655
@copybara-service
copybara-service Bot merged commit df15c27 into master Nov 26, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the test_1029062286 branch November 26, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant