Skip to content

Commit b30dee3

Browse files
committed
Expose the initializer for unknown fields.
1 parent cdd524a commit b30dee3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

objectivec/GPBUnknownField.h

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ NS_ASSUME_NONNULL_BEGIN
4242
**/
4343
@interface GPBUnknownField : NSObject<NSCopying>
4444

45+
/** Initialize a field with the given number. */
46+
- (instancetype)initWithNumber:(int32_t)number;
47+
4548
/** The field number the data is stored under. */
4649
@property(nonatomic, readonly, assign) int32_t number;
4750

objectivec/GPBUnknownField_PackagePrivate.h

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636

3737
@interface GPBUnknownField ()
3838

39-
- (instancetype)initWithNumber:(int32_t)number;
40-
4139
- (void)writeToOutput:(GPBCodedOutputStream *)output;
4240
- (size_t)serializedSize;
4341

0 commit comments

Comments
 (0)