| 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 | 40 /// Store an unknown field. These are used in conjunction with @c GPBUnknownFiel
dSet |
| 41 * GPBUnknownFieldSet. | |
| 42 **/ | |
| 43 @interface GPBUnknownField : NSObject<NSCopying> | 41 @interface GPBUnknownField : NSObject<NSCopying> |
| 44 | 42 |
| 45 /** The field number the data is stored under. */ | 43 /// The field number the data is stored under. |
| 46 @property(nonatomic, readonly, assign) int32_t number; | 44 @property(nonatomic, readonly, assign) int32_t number; |
| 47 | 45 |
| 48 /** An array of varint values for this field. */ | 46 /// An array of varint values for this field. |
| 49 @property(nonatomic, readonly, strong) GPBUInt64Array *varintList; | 47 @property(nonatomic, readonly, strong) GPBUInt64Array *varintList; |
| 50 | 48 |
| 51 /** An array of fixed32 values for this field. */ | 49 /// An array of fixed32 values for this field. |
| 52 @property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List; | 50 @property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List; |
| 53 | 51 |
| 54 /** An array of fixed64 values for this field. */ | 52 /// An array of fixed64 values for this field. |
| 55 @property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List; | 53 @property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List; |
| 56 | 54 |
| 57 /** An array of data values for this field. */ | 55 /// An array of data values for this field. |
| 58 @property(nonatomic, readonly, strong) NSArray<NSData*> *lengthDelimitedList; | 56 @property(nonatomic, readonly, strong) NSArray<NSData*> *lengthDelimitedList; |
| 59 | 57 |
| 60 /** An array of groups of values for this field. */ | 58 /// An array of groups of values for this field. |
| 61 @property(nonatomic, readonly, strong) NSArray<GPBUnknownFieldSet*> *groupList; | 59 @property(nonatomic, readonly, strong) NSArray<GPBUnknownFieldSet*> *groupList; |
| 62 | 60 |
| 63 /** | 61 |
| 64 * Add a value to the varintList. | 62 /// Add a value to the varintList. |
| 65 * | 63 /// |
| 66 * @param value The value to add. | 64 /// @param value The value to add. |
| 67 **/ | |
| 68 - (void)addVarint:(uint64_t)value; | 65 - (void)addVarint:(uint64_t)value; |
| 69 /** | 66 |
| 70 * Add a value to the fixed32List. | 67 /// Add a value to the fixed32List. |
| 71 * | 68 /// |
| 72 * @param value The value to add. | 69 /// @param value The value to add. |
| 73 **/ | |
| 74 - (void)addFixed32:(uint32_t)value; | 70 - (void)addFixed32:(uint32_t)value; |
| 75 /** | 71 |
| 76 * Add a value to the fixed64List. | 72 /// Add a value to the fixed64List. |
| 77 * | 73 /// |
| 78 * @param value The value to add. | 74 /// @param value The value to add. |
| 79 **/ | |
| 80 - (void)addFixed64:(uint64_t)value; | 75 - (void)addFixed64:(uint64_t)value; |
| 81 /** | 76 |
| 82 * Add a value to the lengthDelimitedList. | 77 /// Add a value to the lengthDelimitedList. |
| 83 * | 78 /// |
| 84 * @param value The value to add. | 79 /// @param value The value to add. |
| 85 **/ | |
| 86 - (void)addLengthDelimited:(NSData *)value; | 80 - (void)addLengthDelimited:(NSData *)value; |
| 87 /** | 81 |
| 88 * Add a value to the groupList. | 82 /// Add a value to the groupList. |
| 89 * | 83 /// |
| 90 * @param value The value to add. | 84 /// @param value The value to add. |
| 91 **/ | |
| 92 - (void)addGroup:(GPBUnknownFieldSet *)value; | 85 - (void)addGroup:(GPBUnknownFieldSet *)value; |
| 93 | 86 |
| 94 @end | 87 @end |
| 95 | 88 |
| 96 NS_ASSUME_NONNULL_END | 89 NS_ASSUME_NONNULL_END |
| OLD | NEW |