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

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

Powered by Google App Engine
This is Rietveld 408576698