Merge pull request #3315 from thomasvl/mutate_unknowns

Expose the initializer for unknown fields.
pull/3317/head
Thomas Van Lenten 8 years ago committed by GitHub
commit e264b20e69
  1. 3
      objectivec/GPBUnknownField.h
  2. 2
      objectivec/GPBUnknownField_PackagePrivate.h

@ -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 @@
@interface GPBUnknownField () @interface GPBUnknownField ()
- (instancetype)initWithNumber:(int32_t)number;
- (void)writeToOutput:(GPBCodedOutputStream *)output; - (void)writeToOutput:(GPBCodedOutputStream *)output;
- (size_t)serializedSize; - (size_t)serializedSize;

Loading…
Cancel
Save