Skip to content

Commit

Permalink
Expose the initializer for unknown fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Jul 5, 2017
1 parent cdd524a commit b30dee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions objectivec/GPBUnknownField.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions objectivec/GPBUnknownField_PackagePrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

@interface GPBUnknownField ()

- (instancetype)initWithNumber:(int32_t)number;

- (void)writeToOutput:(GPBCodedOutputStream *)output;
- (size_t)serializedSize;

Expand Down

0 comments on commit b30dee3

Please sign in to comment.