BEGIN_PUBLIC Restore extension accessors in gencode END_PUBLIC PiperOrigin-RevId: 803137265
diff --git a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h index 3c2c8a1..b591920 100644 --- a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h +++ b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.h
@@ -137,6 +137,9 @@ - (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 d0a9e22..551425d 100644 --- a/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.mm +++ b/protobuf/runtime/src/com/google/protobuf/GeneratedMessage.mm
@@ -4168,6 +4168,11 @@ - (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];