Expose the initializer for unknown fields.

This commit is contained in:
Thomas Van Lenten 2017-07-05 11:16:34 -04:00
parent cdd524a0bd
commit b30dee3ea6
2 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,9 @@ NS_ASSUME_NONNULL_BEGIN
**/
@interface GPBUnknownField : NSObject<NSCopying>
/** 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;

View File

@ -36,8 +36,6 @@
@interface GPBUnknownField ()
- (instancetype)initWithNumber:(int32_t)number;
- (void)writeToOutput:(GPBCodedOutputStream *)output;
- (size_t)serializedSize;