Index: third_party/protobuf/objectivec/GPBUnknownField.h |
diff --git a/third_party/protobuf/python/google/protobuf/internal/more_extensions.proto b/third_party/protobuf/objectivec/GPBUnknownField.h |
similarity index 62% |
copy from third_party/protobuf/python/google/protobuf/internal/more_extensions.proto |
copy to third_party/protobuf/objectivec/GPBUnknownField.h |
index e2d97010450d32f2d1dd7b3ec0d2d05bf93435cb..12d72a9acd5cc0b2de0b9d99c430c5363a872a5b 100644 |
--- a/third_party/protobuf/python/google/protobuf/internal/more_extensions.proto |
+++ b/third_party/protobuf/objectivec/GPBUnknownField.h |
@@ -1,6 +1,6 @@ |
// Protocol Buffers - Google's data interchange format |
// Copyright 2008 Google Inc. All rights reserved. |
-// http://code.google.com/p/protobuf/ |
+// https://developers.google.com/protocol-buffers/ |
// |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
@@ -28,31 +28,33 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Author: robinson@google.com (Will Robinson) |
+#import <Foundation/Foundation.h> |
+@class GPBCodedOutputStream; |
+@class GPBUInt32Array; |
+@class GPBUInt64Array; |
+@class GPBUnknownFieldSet; |
-package google.protobuf.internal; |
+NS_ASSUME_NONNULL_BEGIN |
+@interface GPBUnknownField : NSObject<NSCopying> |
-message TopLevelMessage { |
- optional ExtendedMessage submessage = 1; |
-} |
+@property(nonatomic, readonly, assign) int32_t number; |
+// Only one of these will be set. |
+@property(nonatomic, readonly, strong) GPBUInt64Array *varintList; |
+@property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List; |
+@property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List; |
+@property(nonatomic, readonly, strong) NSArray *lengthDelimitedList; // NSData |
+@property(nonatomic, readonly, strong) NSArray *groupList; // GPBUnknownFieldSet |
-message ExtendedMessage { |
- extensions 1 to max; |
-} |
+// Only one of these should be used per Field. |
+- (void)addVarint:(uint64_t)value; |
+- (void)addFixed32:(uint32_t)value; |
+- (void)addFixed64:(uint64_t)value; |
+- (void)addLengthDelimited:(NSData *)value; |
+- (void)addGroup:(GPBUnknownFieldSet *)value; |
+@end |
-message ForeignMessage { |
- optional int32 foreign_message_int = 1; |
-} |
- |
- |
-extend ExtendedMessage { |
- optional int32 optional_int_extension = 1; |
- optional ForeignMessage optional_message_extension = 2; |
- |
- repeated int32 repeated_int_extension = 3; |
- repeated ForeignMessage repeated_message_extension = 4; |
-} |
+NS_ASSUME_NONNULL_END |