From b30dee3ea684e95f941bcbaa0a15382d51d92a21 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Wed, 5 Jul 2017 11:16:34 -0400 Subject: Expose the initializer for unknown fields. --- objectivec/GPBUnknownField.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'objectivec/GPBUnknownField.h') diff --git a/objectivec/GPBUnknownField.h b/objectivec/GPBUnknownField.h index a135cc20..5b96023b 100644 --- a/objectivec/GPBUnknownField.h +++ b/objectivec/GPBUnknownField.h @@ -42,6 +42,9 @@ NS_ASSUME_NONNULL_BEGIN **/ @interface GPBUnknownField : NSObject +/** Initialize a field with the given number. */ +- (instancetype)initWithNumber:(int32_t)number; + /** The field number the data is stored under. */ @property(nonatomic, readonly, assign) int32_t number; -- cgit v1.2.3