Explorar el Código

Merge pull request #3315 from thomasvl/mutate_unknowns

Expose the initializer for unknown fields.
Thomas Van Lenten hace 8 años
padre
commit
e264b20e69
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 3 0
      objectivec/GPBUnknownField.h
  2. 0 2
      objectivec/GPBUnknownField_PackagePrivate.h

+ 3 - 0
objectivec/GPBUnknownField.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;
 
 

+ 0 - 2
objectivec/GPBUnknownField_PackagePrivate.h

@@ -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;