| OLD | NEW |
| 1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
| 2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
| 3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
| 10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | 30 |
| 31 #import <Foundation/Foundation.h> | 31 #import <Foundation/Foundation.h> |
| 32 | 32 |
| 33 @class GPBCodedOutputStream; | 33 @class GPBCodedOutputStream; |
| 34 @class GPBUInt32Array; | 34 @class GPBUInt32Array; |
| 35 @class GPBUInt64Array; | 35 @class GPBUInt64Array; |
| 36 @class GPBUnknownFieldSet; | 36 @class GPBUnknownFieldSet; |
| 37 | 37 |
| 38 NS_ASSUME_NONNULL_BEGIN | 38 NS_ASSUME_NONNULL_BEGIN |
| 39 | 39 /** |
| 40 /// Store an unknown field. These are used in conjunction with @c GPBUnknownFiel
dSet | 40 * Store an unknown field. These are used in conjunction with |
| 41 * GPBUnknownFieldSet. |
| 42 **/ |
| 41 @interface GPBUnknownField : NSObject<NSCopying> | 43 @interface GPBUnknownField : NSObject<NSCopying> |
| 42 | 44 |
| 43 /// The field number the data is stored under. | 45 /** The field number the data is stored under. */ |
| 44 @property(nonatomic, readonly, assign) int32_t number; | 46 @property(nonatomic, readonly, assign) int32_t number; |
| 45 | 47 |
| 46 /// An array of varint values for this field. | 48 /** An array of varint values for this field. */ |
| 47 @property(nonatomic, readonly, strong) GPBUInt64Array *varintList; | 49 @property(nonatomic, readonly, strong) GPBUInt64Array *varintList; |
| 48 | 50 |
| 49 /// An array of fixed32 values for this field. | 51 /** An array of fixed32 values for this field. */ |
| 50 @property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List; | 52 @property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List; |
| 51 | 53 |
| 52 /// An array of fixed64 values for this field. | 54 /** An array of fixed64 values for this field. */ |
| 53 @property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List; | 55 @property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List; |
| 54 | 56 |
| 55 /// An array of data values for this field. | 57 /** An array of data values for this field. */ |
| 56 @property(nonatomic, readonly, strong) NSArray<NSData*> *lengthDelimitedList; | 58 @property(nonatomic, readonly, strong) NSArray<NSData*> *lengthDelimitedList; |
| 57 | 59 |
| 58 /// An array of groups of values for this field. | 60 /** An array of groups of values for this field. */ |
| 59 @property(nonatomic, readonly, strong) NSArray<GPBUnknownFieldSet*> *groupList; | 61 @property(nonatomic, readonly, strong) NSArray<GPBUnknownFieldSet*> *groupList; |
| 60 | 62 |
| 61 | 63 /** |
| 62 /// Add a value to the varintList. | 64 * Add a value to the varintList. |
| 63 /// | 65 * |
| 64 /// @param value The value to add. | 66 * @param value The value to add. |
| 67 **/ |
| 65 - (void)addVarint:(uint64_t)value; | 68 - (void)addVarint:(uint64_t)value; |
| 66 | 69 /** |
| 67 /// Add a value to the fixed32List. | 70 * Add a value to the fixed32List. |
| 68 /// | 71 * |
| 69 /// @param value The value to add. | 72 * @param value The value to add. |
| 73 **/ |
| 70 - (void)addFixed32:(uint32_t)value; | 74 - (void)addFixed32:(uint32_t)value; |
| 71 | 75 /** |
| 72 /// Add a value to the fixed64List. | 76 * Add a value to the fixed64List. |
| 73 /// | 77 * |
| 74 /// @param value The value to add. | 78 * @param value The value to add. |
| 79 **/ |
| 75 - (void)addFixed64:(uint64_t)value; | 80 - (void)addFixed64:(uint64_t)value; |
| 76 | 81 /** |
| 77 /// Add a value to the lengthDelimitedList. | 82 * Add a value to the lengthDelimitedList. |
| 78 /// | 83 * |
| 79 /// @param value The value to add. | 84 * @param value The value to add. |
| 85 **/ |
| 80 - (void)addLengthDelimited:(NSData *)value; | 86 - (void)addLengthDelimited:(NSData *)value; |
| 81 | 87 /** |
| 82 /// Add a value to the groupList. | 88 * Add a value to the groupList. |
| 83 /// | 89 * |
| 84 /// @param value The value to add. | 90 * @param value The value to add. |
| 91 **/ |
| 85 - (void)addGroup:(GPBUnknownFieldSet *)value; | 92 - (void)addGroup:(GPBUnknownFieldSet *)value; |
| 86 | 93 |
| 87 @end | 94 @end |
| 88 | 95 |
| 89 NS_ASSUME_NONNULL_END | 96 NS_ASSUME_NONNULL_END |
| OLD | NEW |