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

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

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years 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 16 matching lines...) Expand all
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 GPBUnknownField; 33 @class GPBUnknownField;
34 34
35 NS_ASSUME_NONNULL_BEGIN 35 NS_ASSUME_NONNULL_BEGIN
36 36
37 /// A collection of unknown fields. 37 /**
38 * A collection of unknown fields. Fields parsed from the binary representation
39 * of a message that are unknown end up in an instance of this set. This only
40 * applies for files declared with the "proto2" syntax. Files declared with the
41 * "proto3" syntax discard the unknown values.
42 **/
38 @interface GPBUnknownFieldSet : NSObject<NSCopying> 43 @interface GPBUnknownFieldSet : NSObject<NSCopying>
39 44
40 /// Tests to see if the given field number has a value. 45 /**
41 /// 46 * Tests to see if the given field number has a value.
42 /// @param number The field number to check. 47 *
43 /// 48 * @param number The field number to check.
44 /// @return YES if there is an unknown field for the given field number. 49 *
50 * @return YES if there is an unknown field for the given field number.
51 **/
45 - (BOOL)hasField:(int32_t)number; 52 - (BOOL)hasField:(int32_t)number;
46 53
47 /// Fetches the @c GPBUnknownField for the given field number. 54 /**
48 /// 55 * Fetches the GPBUnknownField for the given field number.
49 /// @param number The field number to look up. 56 *
50 /// 57 * @param number The field number to look up.
51 /// @return The @c GPBUnknownField or nil. 58 *
59 * @return The GPBUnknownField or nil if none found.
60 **/
52 - (nullable GPBUnknownField *)getField:(int32_t)number; 61 - (nullable GPBUnknownField *)getField:(int32_t)number;
53 62
54 /// Returns the number of fields in this set. 63 /**
64 * @return The number of fields in this set.
65 **/
55 - (NSUInteger)countOfFields; 66 - (NSUInteger)countOfFields;
56 67
57 /// Adds the given field to the set. 68 /**
69 * Adds the given field to the set.
70 *
71 * @param field The field to add to the set.
72 **/
58 - (void)addField:(GPBUnknownField *)field; 73 - (void)addField:(GPBUnknownField *)field;
59 74
60 /// Returns an NSArray of the @c GPBUnknownFields sorted by the field numbers. 75 /**
61 - (NSArray<GPBUnknownField*> *)sortedFields; 76 * @return An array of the GPBUnknownFields sorted by the field numbers.
77 **/
78 - (NSArray<GPBUnknownField *> *)sortedFields;
62 79
63 @end 80 @end
64 81
65 NS_ASSUME_NONNULL_END 82 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « third_party/protobuf/objectivec/GPBUnknownField.m ('k') | third_party/protobuf/objectivec/GPBUnknownFieldSet.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698