Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: third_party/protobuf/objectivec/GPBUnknownField.h

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owners Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 19 matching lines...) Expand all
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 @interface GPBUnknownField : NSObject<NSCopying> 41 @interface GPBUnknownField : NSObject<NSCopying>
41 42
43 /// The field number the data is stored under.
42 @property(nonatomic, readonly, assign) int32_t number; 44 @property(nonatomic, readonly, assign) int32_t number;
43 45
44 // Only one of these will be set. 46 /// An array of varint values for this field.
45 @property(nonatomic, readonly, strong) GPBUInt64Array *varintList; 47 @property(nonatomic, readonly, strong) GPBUInt64Array *varintList;
48
49 /// An array of fixed32 values for this field.
46 @property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List; 50 @property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List;
51
52 /// An array of fixed64 values for this field.
47 @property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List; 53 @property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List;
48 @property(nonatomic, readonly, strong) NSArray *lengthDelimitedList; // NSData
49 @property(nonatomic, readonly, strong) NSArray *groupList; // GPBUnknownFieldSe t
50 54
51 // Only one of these should be used per Field. 55 /// An array of data values for this field.
56 @property(nonatomic, readonly, strong) NSArray<NSData*> *lengthDelimitedList;
57
58 /// An array of groups of values for this field.
59 @property(nonatomic, readonly, strong) NSArray<GPBUnknownFieldSet*> *groupList;
60
61
62 /// Add a value to the varintList.
63 ///
64 /// @param value The value to add.
52 - (void)addVarint:(uint64_t)value; 65 - (void)addVarint:(uint64_t)value;
66
67 /// Add a value to the fixed32List.
68 ///
69 /// @param value The value to add.
53 - (void)addFixed32:(uint32_t)value; 70 - (void)addFixed32:(uint32_t)value;
71
72 /// Add a value to the fixed64List.
73 ///
74 /// @param value The value to add.
54 - (void)addFixed64:(uint64_t)value; 75 - (void)addFixed64:(uint64_t)value;
76
77 /// Add a value to the lengthDelimitedList.
78 ///
79 /// @param value The value to add.
55 - (void)addLengthDelimited:(NSData *)value; 80 - (void)addLengthDelimited:(NSData *)value;
81
82 /// Add a value to the groupList.
83 ///
84 /// @param value The value to add.
56 - (void)addGroup:(GPBUnknownFieldSet *)value; 85 - (void)addGroup:(GPBUnknownFieldSet *)value;
57 86
58 @end 87 @end
59 88
60 NS_ASSUME_NONNULL_END 89 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « third_party/protobuf/objectivec/GPBRuntimeTypes.h ('k') | third_party/protobuf/objectivec/GPBUnknownField.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698