Commit e264b20e authored by Thomas Van Lenten's avatar Thomas Van Lenten Committed by GitHub

Merge pull request #3315 from thomasvl/mutate_unknowns

Expose the initializer for unknown fields.
parents cdd524a0 b30dee3e
...@@ -42,6 +42,9 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -42,6 +42,9 @@ NS_ASSUME_NONNULL_BEGIN
**/ **/
@interface GPBUnknownField : NSObject<NSCopying> @interface GPBUnknownField : NSObject<NSCopying>
/** Initialize a field with the given number. */
- (instancetype)initWithNumber:(int32_t)number;
/** The field number the data is stored under. */ /** The field number the data is stored under. */
@property(nonatomic, readonly, assign) int32_t number; @property(nonatomic, readonly, assign) int32_t number;
......
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
@interface GPBUnknownField () @interface GPBUnknownField ()
- (instancetype)initWithNumber:(int32_t)number;
- (void)writeToOutput:(GPBCodedOutputStream *)output; - (void)writeToOutput:(GPBCodedOutputStream *)output;
- (size_t)serializedSize; - (size_t)serializedSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment