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

Side by Side Diff: third_party/protobuf/objectivec/google/protobuf/Struct.pbobjc.h

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: 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 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/struct.proto 2 // source: google/protobuf/struct.proto
3 3
4 // This CPP symbol can be defined to use imports that match up to the framework 4 #import "GPBProtocolBuffers.h"
5 // imports needed when using CocoaPods.
6 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
7 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
8 #endif
9 5
10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 6 #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
11 #import <Protobuf/GPBProtocolBuffers.h> 7 #error This file was generated by a different version of protoc which is incompa tible with your Protocol Buffer library sources.
12 #else
13 #import "GPBProtocolBuffers.h"
14 #endif
15
16 #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
17 #error This file was generated by a newer version of protoc which is incompatibl e with your Protocol Buffer library sources.
18 #endif
19 #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
20 #error This file was generated by an older version of protoc which is incompatib le with your Protocol Buffer library sources.
21 #endif 8 #endif
22 9
23 // @@protoc_insertion_point(imports) 10 // @@protoc_insertion_point(imports)
24 11
25 #pragma clang diagnostic push 12 #pragma clang diagnostic push
26 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 13 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
27 14
28 CF_EXTERN_C_BEGIN 15 CF_EXTERN_C_BEGIN
29 16
30 @class GPBListValue; 17 @class GPBListValue;
31 @class GPBStruct; 18 @class GPBStruct;
32 @class GPBValue; 19 @class GPBValue;
33 20
34 NS_ASSUME_NONNULL_BEGIN 21 NS_ASSUME_NONNULL_BEGIN
35 22
36 #pragma mark - Enum GPBNullValue 23 #pragma mark - Enum GPBNullValue
37 24
38 /** 25 /// `NullValue` is a singleton enumeration to represent the null value for the
39 * `NullValue` is a singleton enumeration to represent the null value for the 26 /// `Value` type union.
40 * `Value` type union. 27 ///
41 * 28 /// The JSON representation for `NullValue` is JSON `null`.
42 * The JSON representation for `NullValue` is JSON `null`.
43 **/
44 typedef GPB_ENUM(GPBNullValue) { 29 typedef GPB_ENUM(GPBNullValue) {
45 /** 30 /// Value used if any message's field encounters a value that is not defined
46 * Value used if any message's field encounters a value that is not defined 31 /// by this enum. The message will also have C functions to get/set the rawVal ue
47 * by this enum. The message will also have C functions to get/set the rawValu e 32 /// of the field.
48 * of the field.
49 **/
50 GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, 33 GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
51 /** Null value. */ 34 /// Null value.
52 GPBNullValue_NullValue = 0, 35 GPBNullValue_NullValue = 0,
53 }; 36 };
54 37
55 GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void); 38 GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void);
56 39
57 /** 40 /// Checks to see if the given value is defined by the enum or was not known at
58 * Checks to see if the given value is defined by the enum or was not known at 41 /// the time this source was generated.
59 * the time this source was generated.
60 **/
61 BOOL GPBNullValue_IsValidValue(int32_t value); 42 BOOL GPBNullValue_IsValidValue(int32_t value);
62 43
63 #pragma mark - GPBStructRoot 44 #pragma mark - GPBStructRoot
64 45
65 /** 46 /// Exposes the extension registry for this file.
66 * Exposes the extension registry for this file. 47 ///
67 * 48 /// The base class provides:
68 * The base class provides: 49 /// @code
69 * @code 50 /// + (GPBExtensionRegistry *)extensionRegistry;
70 * + (GPBExtensionRegistry *)extensionRegistry; 51 /// @endcode
71 * @endcode 52 /// which is a @c GPBExtensionRegistry that includes all the extensions defined by
72 * which is a @c GPBExtensionRegistry that includes all the extensions defined b y 53 /// this file and all files that it depends on.
73 * this file and all files that it depends on.
74 **/
75 @interface GPBStructRoot : GPBRootObject 54 @interface GPBStructRoot : GPBRootObject
76 @end 55 @end
77 56
78 #pragma mark - GPBStruct 57 #pragma mark - GPBStruct
79 58
80 typedef GPB_ENUM(GPBStruct_FieldNumber) { 59 typedef GPB_ENUM(GPBStruct_FieldNumber) {
81 GPBStruct_FieldNumber_Fields = 1, 60 GPBStruct_FieldNumber_Fields = 1,
82 }; 61 };
83 62
84 /** 63 /// `Struct` represents a structured data value, consisting of fields
85 * `Struct` represents a structured data value, consisting of fields 64 /// which map to dynamically typed values. In some languages, `Struct`
86 * which map to dynamically typed values. In some languages, `Struct` 65 /// might be supported by a native representation. For example, in
87 * might be supported by a native representation. For example, in 66 /// scripting languages like JS a struct is represented as an
88 * scripting languages like JS a struct is represented as an 67 /// object. The details of that representation are described together
89 * object. The details of that representation are described together 68 /// with the proto support for the language.
90 * with the proto support for the language. 69 ///
91 * 70 /// The JSON representation for `Struct` is JSON object.
92 * The JSON representation for `Struct` is JSON object.
93 **/
94 @interface GPBStruct : GPBMessage 71 @interface GPBStruct : GPBMessage
95 72
96 /** Unordered map of dynamically typed values. */ 73 /// Unordered map of dynamically typed values.
97 @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary<NSS tring*, GPBValue*> *fields; 74 @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary<NSS tring*, GPBValue*> *fields;
98 /** The number of items in @c fields without causing the array to be created. */ 75 /// The number of items in @c fields without causing the array to be created.
99 @property(nonatomic, readonly) NSUInteger fields_Count; 76 @property(nonatomic, readonly) NSUInteger fields_Count;
100 77
101 @end 78 @end
102 79
103 #pragma mark - GPBValue 80 #pragma mark - GPBValue
104 81
105 typedef GPB_ENUM(GPBValue_FieldNumber) { 82 typedef GPB_ENUM(GPBValue_FieldNumber) {
106 GPBValue_FieldNumber_NullValue = 1, 83 GPBValue_FieldNumber_NullValue = 1,
107 GPBValue_FieldNumber_NumberValue = 2, 84 GPBValue_FieldNumber_NumberValue = 2,
108 GPBValue_FieldNumber_StringValue = 3, 85 GPBValue_FieldNumber_StringValue = 3,
109 GPBValue_FieldNumber_BoolValue = 4, 86 GPBValue_FieldNumber_BoolValue = 4,
110 GPBValue_FieldNumber_StructValue = 5, 87 GPBValue_FieldNumber_StructValue = 5,
111 GPBValue_FieldNumber_ListValue = 6, 88 GPBValue_FieldNumber_ListValue = 6,
112 }; 89 };
113 90
114 typedef GPB_ENUM(GPBValue_Kind_OneOfCase) { 91 typedef GPB_ENUM(GPBValue_Kind_OneOfCase) {
115 GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase = 0, 92 GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase = 0,
116 GPBValue_Kind_OneOfCase_NullValue = 1, 93 GPBValue_Kind_OneOfCase_NullValue = 1,
117 GPBValue_Kind_OneOfCase_NumberValue = 2, 94 GPBValue_Kind_OneOfCase_NumberValue = 2,
118 GPBValue_Kind_OneOfCase_StringValue = 3, 95 GPBValue_Kind_OneOfCase_StringValue = 3,
119 GPBValue_Kind_OneOfCase_BoolValue = 4, 96 GPBValue_Kind_OneOfCase_BoolValue = 4,
120 GPBValue_Kind_OneOfCase_StructValue = 5, 97 GPBValue_Kind_OneOfCase_StructValue = 5,
121 GPBValue_Kind_OneOfCase_ListValue = 6, 98 GPBValue_Kind_OneOfCase_ListValue = 6,
122 }; 99 };
123 100
124 /** 101 /// `Value` represents a dynamically typed value which can be either
125 * `Value` represents a dynamically typed value which can be either 102 /// null, a number, a string, a boolean, a recursive struct value, or a
126 * null, a number, a string, a boolean, a recursive struct value, or a 103 /// list of values. A producer of value is expected to set one of that
127 * list of values. A producer of value is expected to set one of that 104 /// variants, absence of any variant indicates an error.
128 * variants, absence of any variant indicates an error. 105 ///
129 * 106 /// The JSON representation for `Value` is JSON value.
130 * The JSON representation for `Value` is JSON value.
131 **/
132 @interface GPBValue : GPBMessage 107 @interface GPBValue : GPBMessage
133 108
134 /** The kind of value. */ 109 /// The kind of value.
135 @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase; 110 @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase;
136 111
137 /** Represents a null value. */ 112 /// Represents a null value.
138 @property(nonatomic, readwrite) GPBNullValue nullValue; 113 @property(nonatomic, readwrite) GPBNullValue nullValue;
139 114
140 /** Represents a double value. */ 115 /// Represents a double value.
141 @property(nonatomic, readwrite) double numberValue; 116 @property(nonatomic, readwrite) double numberValue;
142 117
143 /** Represents a string value. */ 118 /// Represents a string value.
144 @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue; 119 @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue;
145 120
146 /** Represents a boolean value. */ 121 /// Represents a boolean value.
147 @property(nonatomic, readwrite) BOOL boolValue; 122 @property(nonatomic, readwrite) BOOL boolValue;
148 123
149 /** Represents a structured value. */ 124 /// Represents a structured value.
150 @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue; 125 @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue;
151 126
152 /** Represents a repeated `Value`. */ 127 /// Represents a repeated `Value`.
153 @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue ; 128 @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue ;
154 129
155 @end 130 @end
156 131
157 /** 132 /// Fetches the raw value of a @c GPBValue's @c nullValue property, even
158 * Fetches the raw value of a @c GPBValue's @c nullValue property, even 133 /// if the value was not defined by the enum at the time the code was generated.
159 * if the value was not defined by the enum at the time the code was generated.
160 **/
161 int32_t GPBValue_NullValue_RawValue(GPBValue *message); 134 int32_t GPBValue_NullValue_RawValue(GPBValue *message);
162 /** 135 /// Sets the raw value of an @c GPBValue's @c nullValue property, allowing
163 * Sets the raw value of an @c GPBValue's @c nullValue property, allowing 136 /// it to be set to a value that was not defined by the enum at the time the cod e
164 * it to be set to a value that was not defined by the enum at the time the code 137 /// was generated.
165 * was generated.
166 **/
167 void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value); 138 void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value);
168 139
169 /** 140 /// Clears whatever value was set for the oneof 'kind'.
170 * Clears whatever value was set for the oneof 'kind'.
171 **/
172 void GPBValue_ClearKindOneOfCase(GPBValue *message); 141 void GPBValue_ClearKindOneOfCase(GPBValue *message);
173 142
174 #pragma mark - GPBListValue 143 #pragma mark - GPBListValue
175 144
176 typedef GPB_ENUM(GPBListValue_FieldNumber) { 145 typedef GPB_ENUM(GPBListValue_FieldNumber) {
177 GPBListValue_FieldNumber_ValuesArray = 1, 146 GPBListValue_FieldNumber_ValuesArray = 1,
178 }; 147 };
179 148
180 /** 149 /// `ListValue` is a wrapper around a repeated field of values.
181 * `ListValue` is a wrapper around a repeated field of values. 150 ///
182 * 151 /// The JSON representation for `ListValue` is JSON array.
183 * The JSON representation for `ListValue` is JSON array.
184 **/
185 @interface GPBListValue : GPBMessage 152 @interface GPBListValue : GPBMessage
186 153
187 /** Repeated field of dynamically typed values. */ 154 /// Repeated field of dynamically typed values.
188 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBValue *> *valuesArray; 155 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBValue *> *valuesArray;
189 /** The number of items in @c valuesArray without causing the array to be create d. */ 156 /// The number of items in @c valuesArray without causing the array to be create d.
190 @property(nonatomic, readonly) NSUInteger valuesArray_Count; 157 @property(nonatomic, readonly) NSUInteger valuesArray_Count;
191 158
192 @end 159 @end
193 160
194 NS_ASSUME_NONNULL_END 161 NS_ASSUME_NONNULL_END
195 162
196 CF_EXTERN_C_END 163 CF_EXTERN_C_END
197 164
198 #pragma clang diagnostic pop 165 #pragma clang diagnostic pop
199 166
200 // @@protoc_insertion_point(global_scope) 167 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698