diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2017-07-05 11:25:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-05 11:25:38 -0400 |
commit | e264b20e699d2f29a89217f70b90b336f923dbe1 (patch) | |
tree | de1ba1cde38dc7d0a1d6fed312bb77689bf3da0d /objectivec/GPBUnknownField.h | |
parent | cdd524a0bdfc16853271cca7b8fa95577b75085d (diff) | |
parent | b30dee3ea684e95f941bcbaa0a15382d51d92a21 (diff) | |
download | protobuf-e264b20e699d2f29a89217f70b90b336f923dbe1.tar.gz protobuf-e264b20e699d2f29a89217f70b90b336f923dbe1.tar.bz2 protobuf-e264b20e699d2f29a89217f70b90b336f923dbe1.zip |
Merge pull request #3315 from thomasvl/mutate_unknowns
Expose the initializer for unknown fields.
Diffstat (limited to 'objectivec/GPBUnknownField.h')
-rw-r--r-- | objectivec/GPBUnknownField.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/objectivec/GPBUnknownField.h b/objectivec/GPBUnknownField.h index a135cc20..5b96023b 100644 --- a/objectivec/GPBUnknownField.h +++ b/objectivec/GPBUnknownField.h @@ -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; |