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

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

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 3 years, 12 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 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/type.proto 2 // source: google/protobuf/type.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 GPBAny; 17 @class GPBAny;
31 @class GPBEnumValue; 18 @class GPBEnumValue;
32 @class GPBField; 19 @class GPBField;
33 @class GPBOption; 20 @class GPBOption;
34 @class GPBSourceContext; 21 @class GPBSourceContext;
35 22
36 NS_ASSUME_NONNULL_BEGIN 23 NS_ASSUME_NONNULL_BEGIN
37 24
38 #pragma mark - Enum GPBSyntax 25 #pragma mark - Enum GPBSyntax
39 26
40 /** The syntax in which a protocol buffer element is defined. */ 27 /// The syntax in which a protocol buffer element is defined.
41 typedef GPB_ENUM(GPBSyntax) { 28 typedef GPB_ENUM(GPBSyntax) {
42 /** 29 /// Value used if any message's field encounters a value that is not defined
43 * Value used if any message's field encounters a value that is not defined 30 /// by this enum. The message will also have C functions to get/set the rawVal ue
44 * by this enum. The message will also have C functions to get/set the rawValu e 31 /// of the field.
45 * of the field.
46 **/
47 GPBSyntax_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, 32 GPBSyntax_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
48 /** Syntax `proto2`. */ 33 /// Syntax `proto2`.
49 GPBSyntax_SyntaxProto2 = 0, 34 GPBSyntax_SyntaxProto2 = 0,
50 35
51 /** Syntax `proto3`. */ 36 /// Syntax `proto3`.
52 GPBSyntax_SyntaxProto3 = 1, 37 GPBSyntax_SyntaxProto3 = 1,
53 }; 38 };
54 39
55 GPBEnumDescriptor *GPBSyntax_EnumDescriptor(void); 40 GPBEnumDescriptor *GPBSyntax_EnumDescriptor(void);
56 41
57 /** 42 /// 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 43 /// the time this source was generated.
59 * the time this source was generated.
60 **/
61 BOOL GPBSyntax_IsValidValue(int32_t value); 44 BOOL GPBSyntax_IsValidValue(int32_t value);
62 45
63 #pragma mark - Enum GPBField_Kind 46 #pragma mark - Enum GPBField_Kind
64 47
65 /** Basic field types. */ 48 /// Basic field types.
66 typedef GPB_ENUM(GPBField_Kind) { 49 typedef GPB_ENUM(GPBField_Kind) {
67 /** 50 /// Value used if any message's field encounters a value that is not defined
68 * Value used if any message's field encounters a value that is not defined 51 /// by this enum. The message will also have C functions to get/set the rawVal ue
69 * by this enum. The message will also have C functions to get/set the rawValu e 52 /// of the field.
70 * of the field.
71 **/
72 GPBField_Kind_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue , 53 GPBField_Kind_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue ,
73 /** Field type unknown. */ 54 /// Field type unknown.
74 GPBField_Kind_TypeUnknown = 0, 55 GPBField_Kind_TypeUnknown = 0,
75 56
76 /** Field type double. */ 57 /// Field type double.
77 GPBField_Kind_TypeDouble = 1, 58 GPBField_Kind_TypeDouble = 1,
78 59
79 /** Field type float. */ 60 /// Field type float.
80 GPBField_Kind_TypeFloat = 2, 61 GPBField_Kind_TypeFloat = 2,
81 62
82 /** Field type int64. */ 63 /// Field type int64.
83 GPBField_Kind_TypeInt64 = 3, 64 GPBField_Kind_TypeInt64 = 3,
84 65
85 /** Field type uint64. */ 66 /// Field type uint64.
86 GPBField_Kind_TypeUint64 = 4, 67 GPBField_Kind_TypeUint64 = 4,
87 68
88 /** Field type int32. */ 69 /// Field type int32.
89 GPBField_Kind_TypeInt32 = 5, 70 GPBField_Kind_TypeInt32 = 5,
90 71
91 /** Field type fixed64. */ 72 /// Field type fixed64.
92 GPBField_Kind_TypeFixed64 = 6, 73 GPBField_Kind_TypeFixed64 = 6,
93 74
94 /** Field type fixed32. */ 75 /// Field type fixed32.
95 GPBField_Kind_TypeFixed32 = 7, 76 GPBField_Kind_TypeFixed32 = 7,
96 77
97 /** Field type bool. */ 78 /// Field type bool.
98 GPBField_Kind_TypeBool = 8, 79 GPBField_Kind_TypeBool = 8,
99 80
100 /** Field type string. */ 81 /// Field type string.
101 GPBField_Kind_TypeString = 9, 82 GPBField_Kind_TypeString = 9,
102 83
103 /** Field type group. Proto2 syntax only, and deprecated. */ 84 /// Field type group. Proto2 syntax only, and deprecated.
104 GPBField_Kind_TypeGroup = 10, 85 GPBField_Kind_TypeGroup = 10,
105 86
106 /** Field type message. */ 87 /// Field type message.
107 GPBField_Kind_TypeMessage = 11, 88 GPBField_Kind_TypeMessage = 11,
108 89
109 /** Field type bytes. */ 90 /// Field type bytes.
110 GPBField_Kind_TypeBytes = 12, 91 GPBField_Kind_TypeBytes = 12,
111 92
112 /** Field type uint32. */ 93 /// Field type uint32.
113 GPBField_Kind_TypeUint32 = 13, 94 GPBField_Kind_TypeUint32 = 13,
114 95
115 /** Field type enum. */ 96 /// Field type enum.
116 GPBField_Kind_TypeEnum = 14, 97 GPBField_Kind_TypeEnum = 14,
117 98
118 /** Field type sfixed32. */ 99 /// Field type sfixed32.
119 GPBField_Kind_TypeSfixed32 = 15, 100 GPBField_Kind_TypeSfixed32 = 15,
120 101
121 /** Field type sfixed64. */ 102 /// Field type sfixed64.
122 GPBField_Kind_TypeSfixed64 = 16, 103 GPBField_Kind_TypeSfixed64 = 16,
123 104
124 /** Field type sint32. */ 105 /// Field type sint32.
125 GPBField_Kind_TypeSint32 = 17, 106 GPBField_Kind_TypeSint32 = 17,
126 107
127 /** Field type sint64. */ 108 /// Field type sint64.
128 GPBField_Kind_TypeSint64 = 18, 109 GPBField_Kind_TypeSint64 = 18,
129 }; 110 };
130 111
131 GPBEnumDescriptor *GPBField_Kind_EnumDescriptor(void); 112 GPBEnumDescriptor *GPBField_Kind_EnumDescriptor(void);
132 113
133 /** 114 /// Checks to see if the given value is defined by the enum or was not known at
134 * Checks to see if the given value is defined by the enum or was not known at 115 /// the time this source was generated.
135 * the time this source was generated.
136 **/
137 BOOL GPBField_Kind_IsValidValue(int32_t value); 116 BOOL GPBField_Kind_IsValidValue(int32_t value);
138 117
139 #pragma mark - Enum GPBField_Cardinality 118 #pragma mark - Enum GPBField_Cardinality
140 119
141 /** Whether a field is optional, required, or repeated. */ 120 /// Whether a field is optional, required, or repeated.
142 typedef GPB_ENUM(GPBField_Cardinality) { 121 typedef GPB_ENUM(GPBField_Cardinality) {
143 /** 122 /// Value used if any message's field encounters a value that is not defined
144 * Value used if any message's field encounters a value that is not defined 123 /// by this enum. The message will also have C functions to get/set the rawVal ue
145 * by this enum. The message will also have C functions to get/set the rawValu e 124 /// of the field.
146 * of the field.
147 **/
148 GPBField_Cardinality_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumerat orValue, 125 GPBField_Cardinality_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumerat orValue,
149 /** For fields with unknown cardinality. */ 126 /// For fields with unknown cardinality.
150 GPBField_Cardinality_CardinalityUnknown = 0, 127 GPBField_Cardinality_CardinalityUnknown = 0,
151 128
152 /** For optional fields. */ 129 /// For optional fields.
153 GPBField_Cardinality_CardinalityOptional = 1, 130 GPBField_Cardinality_CardinalityOptional = 1,
154 131
155 /** For required fields. Proto2 syntax only. */ 132 /// For required fields. Proto2 syntax only.
156 GPBField_Cardinality_CardinalityRequired = 2, 133 GPBField_Cardinality_CardinalityRequired = 2,
157 134
158 /** For repeated fields. */ 135 /// For repeated fields.
159 GPBField_Cardinality_CardinalityRepeated = 3, 136 GPBField_Cardinality_CardinalityRepeated = 3,
160 }; 137 };
161 138
162 GPBEnumDescriptor *GPBField_Cardinality_EnumDescriptor(void); 139 GPBEnumDescriptor *GPBField_Cardinality_EnumDescriptor(void);
163 140
164 /** 141 /// Checks to see if the given value is defined by the enum or was not known at
165 * Checks to see if the given value is defined by the enum or was not known at 142 /// the time this source was generated.
166 * the time this source was generated.
167 **/
168 BOOL GPBField_Cardinality_IsValidValue(int32_t value); 143 BOOL GPBField_Cardinality_IsValidValue(int32_t value);
169 144
170 #pragma mark - GPBTypeRoot 145 #pragma mark - GPBTypeRoot
171 146
172 /** 147 /// Exposes the extension registry for this file.
173 * Exposes the extension registry for this file. 148 ///
174 * 149 /// The base class provides:
175 * The base class provides: 150 /// @code
176 * @code 151 /// + (GPBExtensionRegistry *)extensionRegistry;
177 * + (GPBExtensionRegistry *)extensionRegistry; 152 /// @endcode
178 * @endcode 153 /// which is a @c GPBExtensionRegistry that includes all the extensions defined by
179 * which is a @c GPBExtensionRegistry that includes all the extensions defined b y 154 /// this file and all files that it depends on.
180 * this file and all files that it depends on.
181 **/
182 @interface GPBTypeRoot : GPBRootObject 155 @interface GPBTypeRoot : GPBRootObject
183 @end 156 @end
184 157
185 #pragma mark - GPBType 158 #pragma mark - GPBType
186 159
187 typedef GPB_ENUM(GPBType_FieldNumber) { 160 typedef GPB_ENUM(GPBType_FieldNumber) {
188 GPBType_FieldNumber_Name = 1, 161 GPBType_FieldNumber_Name = 1,
189 GPBType_FieldNumber_FieldsArray = 2, 162 GPBType_FieldNumber_FieldsArray = 2,
190 GPBType_FieldNumber_OneofsArray = 3, 163 GPBType_FieldNumber_OneofsArray = 3,
191 GPBType_FieldNumber_OptionsArray = 4, 164 GPBType_FieldNumber_OptionsArray = 4,
192 GPBType_FieldNumber_SourceContext = 5, 165 GPBType_FieldNumber_SourceContext = 5,
193 GPBType_FieldNumber_Syntax = 6, 166 GPBType_FieldNumber_Syntax = 6,
194 }; 167 };
195 168
196 /** 169 /// A protocol buffer message type.
197 * A protocol buffer message type.
198 **/
199 @interface GPBType : GPBMessage 170 @interface GPBType : GPBMessage
200 171
201 /** The fully qualified message name. */ 172 /// The fully qualified message name.
202 @property(nonatomic, readwrite, copy, null_resettable) NSString *name; 173 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
203 174
204 /** The list of fields. */ 175 /// The list of fields.
205 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBField *> *fieldsArray; 176 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBField *> *fieldsArray;
206 /** The number of items in @c fieldsArray without causing the array to be create d. */ 177 /// The number of items in @c fieldsArray without causing the array to be create d.
207 @property(nonatomic, readonly) NSUInteger fieldsArray_Count; 178 @property(nonatomic, readonly) NSUInteger fieldsArray_Count;
208 179
209 /** The list of types appearing in `oneof` definitions in this type. */ 180 /// The list of types appearing in `oneof` definitions in this type.
210 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString *> *oneofsArray; 181 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString *> *oneofsArray;
211 /** The number of items in @c oneofsArray without causing the array to be create d. */ 182 /// The number of items in @c oneofsArray without causing the array to be create d.
212 @property(nonatomic, readonly) NSUInteger oneofsArray_Count; 183 @property(nonatomic, readonly) NSUInteger oneofsArray_Count;
213 184
214 /** The protocol buffer options. */ 185 /// The protocol buffer options.
215 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray; 186 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray;
216 /** The number of items in @c optionsArray without causing the array to be creat ed. */ 187 /// The number of items in @c optionsArray without causing the array to be creat ed.
217 @property(nonatomic, readonly) NSUInteger optionsArray_Count; 188 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
218 189
219 /** The source context. */ 190 /// The source context.
220 @property(nonatomic, readwrite, strong, null_resettable) GPBSourceContext *sourc eContext; 191 @property(nonatomic, readwrite, strong, null_resettable) GPBSourceContext *sourc eContext;
221 /** Test to see if @c sourceContext has been set. */ 192 /// Test to see if @c sourceContext has been set.
222 @property(nonatomic, readwrite) BOOL hasSourceContext; 193 @property(nonatomic, readwrite) BOOL hasSourceContext;
223 194
224 /** The source syntax. */ 195 /// The source syntax.
225 @property(nonatomic, readwrite) GPBSyntax syntax; 196 @property(nonatomic, readwrite) GPBSyntax syntax;
226 197
227 @end 198 @end
228 199
229 /** 200 /// Fetches the raw value of a @c GPBType's @c syntax property, even
230 * Fetches the raw value of a @c GPBType's @c syntax property, even 201 /// if the value was not defined by the enum at the time the code was generated.
231 * if the value was not defined by the enum at the time the code was generated.
232 **/
233 int32_t GPBType_Syntax_RawValue(GPBType *message); 202 int32_t GPBType_Syntax_RawValue(GPBType *message);
234 /** 203 /// Sets the raw value of an @c GPBType's @c syntax property, allowing
235 * Sets the raw value of an @c GPBType's @c syntax property, allowing 204 /// it to be set to a value that was not defined by the enum at the time the cod e
236 * it to be set to a value that was not defined by the enum at the time the code 205 /// was generated.
237 * was generated.
238 **/
239 void SetGPBType_Syntax_RawValue(GPBType *message, int32_t value); 206 void SetGPBType_Syntax_RawValue(GPBType *message, int32_t value);
240 207
241 #pragma mark - GPBField 208 #pragma mark - GPBField
242 209
243 typedef GPB_ENUM(GPBField_FieldNumber) { 210 typedef GPB_ENUM(GPBField_FieldNumber) {
244 GPBField_FieldNumber_Kind = 1, 211 GPBField_FieldNumber_Kind = 1,
245 GPBField_FieldNumber_Cardinality = 2, 212 GPBField_FieldNumber_Cardinality = 2,
246 GPBField_FieldNumber_Number = 3, 213 GPBField_FieldNumber_Number = 3,
247 GPBField_FieldNumber_Name = 4, 214 GPBField_FieldNumber_Name = 4,
248 GPBField_FieldNumber_TypeURL = 6, 215 GPBField_FieldNumber_TypeURL = 6,
249 GPBField_FieldNumber_OneofIndex = 7, 216 GPBField_FieldNumber_OneofIndex = 7,
250 GPBField_FieldNumber_Packed = 8, 217 GPBField_FieldNumber_Packed = 8,
251 GPBField_FieldNumber_OptionsArray = 9, 218 GPBField_FieldNumber_OptionsArray = 9,
252 GPBField_FieldNumber_JsonName = 10, 219 GPBField_FieldNumber_JsonName = 10,
253 GPBField_FieldNumber_DefaultValue = 11, 220 GPBField_FieldNumber_DefaultValue = 11,
254 }; 221 };
255 222
256 /** 223 /// A single field of a message type.
257 * A single field of a message type.
258 **/
259 @interface GPBField : GPBMessage 224 @interface GPBField : GPBMessage
260 225
261 /** The field type. */ 226 /// The field type.
262 @property(nonatomic, readwrite) GPBField_Kind kind; 227 @property(nonatomic, readwrite) GPBField_Kind kind;
263 228
264 /** The field cardinality. */ 229 /// The field cardinality.
265 @property(nonatomic, readwrite) GPBField_Cardinality cardinality; 230 @property(nonatomic, readwrite) GPBField_Cardinality cardinality;
266 231
267 /** The field number. */ 232 /// The field number.
268 @property(nonatomic, readwrite) int32_t number; 233 @property(nonatomic, readwrite) int32_t number;
269 234
270 /** The field name. */ 235 /// The field name.
271 @property(nonatomic, readwrite, copy, null_resettable) NSString *name; 236 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
272 237
273 /** 238 /// The field type URL, without the scheme, for message or enumeration
274 * The field type URL, without the scheme, for message or enumeration 239 /// types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
275 * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
276 **/
277 @property(nonatomic, readwrite, copy, null_resettable) NSString *typeURL; 240 @property(nonatomic, readwrite, copy, null_resettable) NSString *typeURL;
278 241
279 /** 242 /// The index of the field type in `Type.oneofs`, for message or enumeration
280 * The index of the field type in `Type.oneofs`, for message or enumeration 243 /// types. The first type has index 1; zero means the type is not in the list.
281 * types. The first type has index 1; zero means the type is not in the list.
282 **/
283 @property(nonatomic, readwrite) int32_t oneofIndex; 244 @property(nonatomic, readwrite) int32_t oneofIndex;
284 245
285 /** Whether to use alternative packed wire representation. */ 246 /// Whether to use alternative packed wire representation.
286 @property(nonatomic, readwrite) BOOL packed; 247 @property(nonatomic, readwrite) BOOL packed;
287 248
288 /** The protocol buffer options. */ 249 /// The protocol buffer options.
289 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray; 250 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray;
290 /** The number of items in @c optionsArray without causing the array to be creat ed. */ 251 /// The number of items in @c optionsArray without causing the array to be creat ed.
291 @property(nonatomic, readonly) NSUInteger optionsArray_Count; 252 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
292 253
293 /** The field JSON name. */ 254 /// The field JSON name.
294 @property(nonatomic, readwrite, copy, null_resettable) NSString *jsonName; 255 @property(nonatomic, readwrite, copy, null_resettable) NSString *jsonName;
295 256
296 /** The string value of the default value of this field. Proto2 syntax only. */ 257 /// The string value of the default value of this field. Proto2 syntax only.
297 @property(nonatomic, readwrite, copy, null_resettable) NSString *defaultValue; 258 @property(nonatomic, readwrite, copy, null_resettable) NSString *defaultValue;
298 259
299 @end 260 @end
300 261
301 /** 262 /// Fetches the raw value of a @c GPBField's @c kind property, even
302 * Fetches the raw value of a @c GPBField's @c kind property, even 263 /// if the value was not defined by the enum at the time the code was generated.
303 * if the value was not defined by the enum at the time the code was generated.
304 **/
305 int32_t GPBField_Kind_RawValue(GPBField *message); 264 int32_t GPBField_Kind_RawValue(GPBField *message);
306 /** 265 /// Sets the raw value of an @c GPBField's @c kind property, allowing
307 * Sets the raw value of an @c GPBField's @c kind property, allowing 266 /// it to be set to a value that was not defined by the enum at the time the cod e
308 * it to be set to a value that was not defined by the enum at the time the code 267 /// was generated.
309 * was generated.
310 **/
311 void SetGPBField_Kind_RawValue(GPBField *message, int32_t value); 268 void SetGPBField_Kind_RawValue(GPBField *message, int32_t value);
312 269
313 /** 270 /// Fetches the raw value of a @c GPBField's @c cardinality property, even
314 * Fetches the raw value of a @c GPBField's @c cardinality property, even 271 /// if the value was not defined by the enum at the time the code was generated.
315 * if the value was not defined by the enum at the time the code was generated.
316 **/
317 int32_t GPBField_Cardinality_RawValue(GPBField *message); 272 int32_t GPBField_Cardinality_RawValue(GPBField *message);
318 /** 273 /// Sets the raw value of an @c GPBField's @c cardinality property, allowing
319 * Sets the raw value of an @c GPBField's @c cardinality property, allowing 274 /// it to be set to a value that was not defined by the enum at the time the cod e
320 * it to be set to a value that was not defined by the enum at the time the code 275 /// was generated.
321 * was generated.
322 **/
323 void SetGPBField_Cardinality_RawValue(GPBField *message, int32_t value); 276 void SetGPBField_Cardinality_RawValue(GPBField *message, int32_t value);
324 277
325 #pragma mark - GPBEnum 278 #pragma mark - GPBEnum
326 279
327 typedef GPB_ENUM(GPBEnum_FieldNumber) { 280 typedef GPB_ENUM(GPBEnum_FieldNumber) {
328 GPBEnum_FieldNumber_Name = 1, 281 GPBEnum_FieldNumber_Name = 1,
329 GPBEnum_FieldNumber_EnumvalueArray = 2, 282 GPBEnum_FieldNumber_EnumvalueArray = 2,
330 GPBEnum_FieldNumber_OptionsArray = 3, 283 GPBEnum_FieldNumber_OptionsArray = 3,
331 GPBEnum_FieldNumber_SourceContext = 4, 284 GPBEnum_FieldNumber_SourceContext = 4,
332 GPBEnum_FieldNumber_Syntax = 5, 285 GPBEnum_FieldNumber_Syntax = 5,
333 }; 286 };
334 287
335 /** 288 /// Enum type definition.
336 * Enum type definition.
337 **/
338 @interface GPBEnum : GPBMessage 289 @interface GPBEnum : GPBMessage
339 290
340 /** Enum type name. */ 291 /// Enum type name.
341 @property(nonatomic, readwrite, copy, null_resettable) NSString *name; 292 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
342 293
343 /** Enum value definitions. */ 294 /// Enum value definitions.
344 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBEnumV alue*> *enumvalueArray; 295 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBEnumV alue*> *enumvalueArray;
345 /** The number of items in @c enumvalueArray without causing the array to be cre ated. */ 296 /// The number of items in @c enumvalueArray without causing the array to be cre ated.
346 @property(nonatomic, readonly) NSUInteger enumvalueArray_Count; 297 @property(nonatomic, readonly) NSUInteger enumvalueArray_Count;
347 298
348 /** Protocol buffer options. */ 299 /// Protocol buffer options.
349 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray; 300 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray;
350 /** The number of items in @c optionsArray without causing the array to be creat ed. */ 301 /// The number of items in @c optionsArray without causing the array to be creat ed.
351 @property(nonatomic, readonly) NSUInteger optionsArray_Count; 302 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
352 303
353 /** The source context. */ 304 /// The source context.
354 @property(nonatomic, readwrite, strong, null_resettable) GPBSourceContext *sourc eContext; 305 @property(nonatomic, readwrite, strong, null_resettable) GPBSourceContext *sourc eContext;
355 /** Test to see if @c sourceContext has been set. */ 306 /// Test to see if @c sourceContext has been set.
356 @property(nonatomic, readwrite) BOOL hasSourceContext; 307 @property(nonatomic, readwrite) BOOL hasSourceContext;
357 308
358 /** The source syntax. */ 309 /// The source syntax.
359 @property(nonatomic, readwrite) GPBSyntax syntax; 310 @property(nonatomic, readwrite) GPBSyntax syntax;
360 311
361 @end 312 @end
362 313
363 /** 314 /// Fetches the raw value of a @c GPBEnum's @c syntax property, even
364 * Fetches the raw value of a @c GPBEnum's @c syntax property, even 315 /// if the value was not defined by the enum at the time the code was generated.
365 * if the value was not defined by the enum at the time the code was generated.
366 **/
367 int32_t GPBEnum_Syntax_RawValue(GPBEnum *message); 316 int32_t GPBEnum_Syntax_RawValue(GPBEnum *message);
368 /** 317 /// Sets the raw value of an @c GPBEnum's @c syntax property, allowing
369 * Sets the raw value of an @c GPBEnum's @c syntax property, allowing 318 /// it to be set to a value that was not defined by the enum at the time the cod e
370 * it to be set to a value that was not defined by the enum at the time the code 319 /// was generated.
371 * was generated.
372 **/
373 void SetGPBEnum_Syntax_RawValue(GPBEnum *message, int32_t value); 320 void SetGPBEnum_Syntax_RawValue(GPBEnum *message, int32_t value);
374 321
375 #pragma mark - GPBEnumValue 322 #pragma mark - GPBEnumValue
376 323
377 typedef GPB_ENUM(GPBEnumValue_FieldNumber) { 324 typedef GPB_ENUM(GPBEnumValue_FieldNumber) {
378 GPBEnumValue_FieldNumber_Name = 1, 325 GPBEnumValue_FieldNumber_Name = 1,
379 GPBEnumValue_FieldNumber_Number = 2, 326 GPBEnumValue_FieldNumber_Number = 2,
380 GPBEnumValue_FieldNumber_OptionsArray = 3, 327 GPBEnumValue_FieldNumber_OptionsArray = 3,
381 }; 328 };
382 329
383 /** 330 /// Enum value definition.
384 * Enum value definition.
385 **/
386 @interface GPBEnumValue : GPBMessage 331 @interface GPBEnumValue : GPBMessage
387 332
388 /** Enum value name. */ 333 /// Enum value name.
389 @property(nonatomic, readwrite, copy, null_resettable) NSString *name; 334 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
390 335
391 /** Enum value number. */ 336 /// Enum value number.
392 @property(nonatomic, readwrite) int32_t number; 337 @property(nonatomic, readwrite) int32_t number;
393 338
394 /** Protocol buffer options. */ 339 /// Protocol buffer options.
395 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray; 340 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOptio n*> *optionsArray;
396 /** The number of items in @c optionsArray without causing the array to be creat ed. */ 341 /// The number of items in @c optionsArray without causing the array to be creat ed.
397 @property(nonatomic, readonly) NSUInteger optionsArray_Count; 342 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
398 343
399 @end 344 @end
400 345
401 #pragma mark - GPBOption 346 #pragma mark - GPBOption
402 347
403 typedef GPB_ENUM(GPBOption_FieldNumber) { 348 typedef GPB_ENUM(GPBOption_FieldNumber) {
404 GPBOption_FieldNumber_Name = 1, 349 GPBOption_FieldNumber_Name = 1,
405 GPBOption_FieldNumber_Value = 2, 350 GPBOption_FieldNumber_Value = 2,
406 }; 351 };
407 352
408 /** 353 /// A protocol buffer option, which can be attached to a message, field,
409 * A protocol buffer option, which can be attached to a message, field, 354 /// enumeration, etc.
410 * enumeration, etc.
411 **/
412 @interface GPBOption : GPBMessage 355 @interface GPBOption : GPBMessage
413 356
414 /** The option's name. For example, `"java_package"`. */ 357 /// The option's name. For example, `"java_package"`.
415 @property(nonatomic, readwrite, copy, null_resettable) NSString *name; 358 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
416 359
417 /** The option's value. For example, `"com.google.protobuf"`. */ 360 /// The option's value. For example, `"com.google.protobuf"`.
418 @property(nonatomic, readwrite, strong, null_resettable) GPBAny *value; 361 @property(nonatomic, readwrite, strong, null_resettable) GPBAny *value;
419 /** Test to see if @c value has been set. */ 362 /// Test to see if @c value has been set.
420 @property(nonatomic, readwrite) BOOL hasValue; 363 @property(nonatomic, readwrite) BOOL hasValue;
421 364
422 @end 365 @end
423 366
424 NS_ASSUME_NONNULL_END 367 NS_ASSUME_NONNULL_END
425 368
426 CF_EXTERN_C_END 369 CF_EXTERN_C_END
427 370
428 #pragma clang diagnostic pop 371 #pragma clang diagnostic pop
429 372
430 // @@protoc_insertion_point(global_scope) 373 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698