From fea2f2b47896994a43c7a8c9541589d4e37c88e0 Mon Sep 17 00:00:00 2001 From: J2ObjC Team Date: Thu, 4 Sep 2025 12:47:02 -0700 Subject: [PATCH] BEGIN_PUBLIC Restore extension accessors in gencode END_PUBLIC PiperOrigin-RevId: 803137265 --- protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h | 3 +++ protobuf/runtime/src/com/google/protobuf/GeneratedMessage.mm | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h index 3c2c8a162e..b5919203e5 100644 --- a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h +++ b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h @@ -137,6 +137,9 @@ J2OBJC_TYPE_LITERAL_HEADER(ComGoogleProtobufGeneratedMessage_ExtendableMessage) - (id)setExtensionWithComGoogleProtobufExtensionLite: (ComGoogleProtobufExtensionLite *)extension withInt:(jint)index withId:(id)value; - (id)setExtensionWithComGoogleProtobufExtension:(CGPExtension *)extension withId:(id)value; +- (id)setExtensionWithComGoogleProtobufExtension:(CGPExtension *)extension + withInt:(jint)index + withId:(id)value; - (id)setExtensionWithComGoogleProtobufGeneratedMessage_GeneratedExtension: (CGPGeneratedExtension *)extension withId:(id)value; - (id)setExtensionWithComGoogleProtobufGeneratedMessage_GeneratedExtension: diff --git a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.mm b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.mm index d0a9e22b47..551425dda9 100644 --- a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.mm +++ b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.mm @@ -4168,6 +4168,11 @@ - (id)setExtensionWithComGoogleProtobufExtensionLite: - (id)setExtensionWithComGoogleProtobufExtension:(CGPExtension *)extension withId:(id)value { return [self setExtensionWithComGoogleProtobufExtensionLite:extension withId:value]; } +- (id)setExtensionWithComGoogleProtobufExtension:(CGPExtension *)extension + withInt:(jint)index + withId:(id)value { + return [self setExtensionWithComGoogleProtobufExtensionLite:extension withInt:index withId:value]; +} - (id)setExtensionWithComGoogleProtobufGeneratedMessage_GeneratedExtension: (CGPGeneratedExtension *)extension withId:(id)value { return [self setExtensionWithComGoogleProtobufExtensionLite:extension withId:value];