GPBType.pbobjc.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/type.proto
3 
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
9 
10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
11  #import <Protobuf/GPBDescriptor.h>
12  #import <Protobuf/GPBMessage.h>
13  #import <Protobuf/GPBRootObject.h>
14 #else
15  #import "GPBDescriptor.h"
16  #import "GPBMessage.h"
17  #import "GPBRootObject.h"
18 #endif
19 
20 #if GOOGLE_PROTOBUF_OBJC_VERSION < 30004
21 #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
22 #endif
23 #if 30004 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
24 #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
25 #endif
26 
27 // @@protoc_insertion_point(imports)
28 
29 #pragma clang diagnostic push
30 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
31 
32 CF_EXTERN_C_BEGIN
33 
34 @class GPBAny;
35 @class GPBEnumValue;
36 @class GPBField;
37 @class GPBOption;
38 @class GPBSourceContext;
39 
40 NS_ASSUME_NONNULL_BEGIN
41 
42 #pragma mark - Enum GPBSyntax
43 
45 typedef GPB_ENUM(GPBSyntax) {
51  GPBSyntax_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
53  GPBSyntax_SyntaxProto2 = 0,
54 
56  GPBSyntax_SyntaxProto3 = 1,
57 };
58 
60 
66 
67 #pragma mark - Enum GPBField_Kind
68 
70 typedef GPB_ENUM(GPBField_Kind) {
76  GPBField_Kind_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
78  GPBField_Kind_TypeUnknown = 0,
79 
81  GPBField_Kind_TypeDouble = 1,
82 
84  GPBField_Kind_TypeFloat = 2,
85 
87  GPBField_Kind_TypeInt64 = 3,
88 
90  GPBField_Kind_TypeUint64 = 4,
91 
93  GPBField_Kind_TypeInt32 = 5,
94 
96  GPBField_Kind_TypeFixed64 = 6,
97 
99  GPBField_Kind_TypeFixed32 = 7,
100 
102  GPBField_Kind_TypeBool = 8,
103 
105  GPBField_Kind_TypeString = 9,
106 
108  GPBField_Kind_TypeGroup = 10,
109 
111  GPBField_Kind_TypeMessage = 11,
112 
114  GPBField_Kind_TypeBytes = 12,
115 
117  GPBField_Kind_TypeUint32 = 13,
118 
120  GPBField_Kind_TypeEnum = 14,
121 
123  GPBField_Kind_TypeSfixed32 = 15,
124 
126  GPBField_Kind_TypeSfixed64 = 16,
127 
129  GPBField_Kind_TypeSint32 = 17,
130 
132  GPBField_Kind_TypeSint64 = 18,
133 };
134 
136 
142 
143 #pragma mark - Enum GPBField_Cardinality
144 
146 typedef GPB_ENUM(GPBField_Cardinality) {
152  GPBField_Cardinality_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
154  GPBField_Cardinality_CardinalityUnknown = 0,
155 
157  GPBField_Cardinality_CardinalityOptional = 1,
158 
160  GPBField_Cardinality_CardinalityRequired = 2,
161 
163  GPBField_Cardinality_CardinalityRepeated = 3,
164 };
165 
167 
173 
174 #pragma mark - GPBTypeRoot
175 
187 @end
188 
189 #pragma mark - GPBType
190 
191 typedef GPB_ENUM(GPBType_FieldNumber) {
192  GPBType_FieldNumber_Name = 1,
193  GPBType_FieldNumber_FieldsArray = 2,
194  GPBType_FieldNumber_OneofsArray = 3,
195  GPBType_FieldNumber_OptionsArray = 4,
196  GPBType_FieldNumber_SourceContext = 5,
197  GPBType_FieldNumber_Syntax = 6,
198 };
199 
203 GPB_FINAL @interface GPBType : GPBMessage
204 
206 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
207 
209 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBField*> *fieldsArray;
211 @property(nonatomic, readonly) NSUInteger fieldsArray_Count;
212 
214 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<NSString*> *oneofsArray;
216 @property(nonatomic, readonly) NSUInteger oneofsArray_Count;
217 
219 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOption*> *optionsArray;
221 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
222 
224 @property(nonatomic, readwrite, strong, null_resettable) GPBSourceContext *sourceContext;
226 @property(nonatomic, readwrite) BOOL hasSourceContext;
227 
229 @property(nonatomic, readwrite) GPBSyntax syntax;
230 
231 @end
232 
244 
245 #pragma mark - GPBField
246 
247 typedef GPB_ENUM(GPBField_FieldNumber) {
248  GPBField_FieldNumber_Kind = 1,
249  GPBField_FieldNumber_Cardinality = 2,
250  GPBField_FieldNumber_Number = 3,
251  GPBField_FieldNumber_Name = 4,
252  GPBField_FieldNumber_TypeURL = 6,
253  GPBField_FieldNumber_OneofIndex = 7,
254  GPBField_FieldNumber_Packed = 8,
255  GPBField_FieldNumber_OptionsArray = 9,
256  GPBField_FieldNumber_JsonName = 10,
257  GPBField_FieldNumber_DefaultValue = 11,
258 };
259 
263 GPB_FINAL @interface GPBField : GPBMessage
264 
266 @property(nonatomic, readwrite) GPBField_Kind kind;
267 
269 @property(nonatomic, readwrite) GPBField_Cardinality cardinality;
270 
272 @property(nonatomic, readwrite) int32_t number;
273 
275 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
276 
281 @property(nonatomic, readwrite, copy, null_resettable) NSString *typeURL;
282 
287 @property(nonatomic, readwrite) int32_t oneofIndex;
288 
290 @property(nonatomic, readwrite) BOOL packed;
291 
293 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOption*> *optionsArray;
295 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
296 
298 @property(nonatomic, readwrite, copy, null_resettable) NSString *jsonName;
299 
301 @property(nonatomic, readwrite, copy, null_resettable) NSString *defaultValue;
302 
303 @end
304 
316 
328 
329 #pragma mark - GPBEnum
330 
331 typedef GPB_ENUM(GPBEnum_FieldNumber) {
332  GPBEnum_FieldNumber_Name = 1,
333  GPBEnum_FieldNumber_EnumvalueArray = 2,
334  GPBEnum_FieldNumber_OptionsArray = 3,
335  GPBEnum_FieldNumber_SourceContext = 4,
336  GPBEnum_FieldNumber_Syntax = 5,
337 };
338 
342 GPB_FINAL @interface GPBEnum : GPBMessage
343 
345 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
346 
348 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBEnumValue*> *enumvalueArray;
350 @property(nonatomic, readonly) NSUInteger enumvalueArray_Count;
351 
353 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOption*> *optionsArray;
355 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
356 
358 @property(nonatomic, readwrite, strong, null_resettable) GPBSourceContext *sourceContext;
360 @property(nonatomic, readwrite) BOOL hasSourceContext;
361 
363 @property(nonatomic, readwrite) GPBSyntax syntax;
364 
365 @end
366 
378 
379 #pragma mark - GPBEnumValue
380 
381 typedef GPB_ENUM(GPBEnumValue_FieldNumber) {
382  GPBEnumValue_FieldNumber_Name = 1,
383  GPBEnumValue_FieldNumber_Number = 2,
384  GPBEnumValue_FieldNumber_OptionsArray = 3,
385 };
386 
390 GPB_FINAL @interface GPBEnumValue : GPBMessage
391 
393 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
394 
396 @property(nonatomic, readwrite) int32_t number;
397 
399 @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<GPBOption*> *optionsArray;
401 @property(nonatomic, readonly) NSUInteger optionsArray_Count;
402 
403 @end
404 
405 #pragma mark - GPBOption
406 
407 typedef GPB_ENUM(GPBOption_FieldNumber) {
408  GPBOption_FieldNumber_Name = 1,
409  GPBOption_FieldNumber_Value = 2,
410 };
411 
416 GPB_FINAL @interface GPBOption : GPBMessage
417 
424 @property(nonatomic, readwrite, copy, null_resettable) NSString *name;
425 
432 @property(nonatomic, readwrite, strong, null_resettable) GPBAny *value;
434 @property(nonatomic, readwrite) BOOL hasValue;
435 
436 @end
437 
438 NS_ASSUME_NONNULL_END
439 
440 CF_EXTERN_C_END
441 
442 #pragma clang diagnostic pop
443 
444 // @@protoc_insertion_point(global_scope)
GPBType_Syntax_RawValue
int32_t GPBType_Syntax_RawValue(GPBType *message)
GPBTypeRoot
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.h:186
GPBEnum
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.h:342
SetGPBType_Syntax_RawValue
void SetGPBType_Syntax_RawValue(GPBType *message, int32_t value)
GPBEnumValue
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.h:390
GPBField_Kind_RawValue
int32_t GPBField_Kind_RawValue(GPBField *message)
copy
static int copy(grpc_slice_buffer *input, grpc_slice_buffer *output)
Definition: message_compress.cc:145
GPB_ENUM
NS_ASSUME_NONNULL_BEGIN typedef GPB_ENUM(GPBSyntax)
Definition: GPBType.pbobjc.h:45
setup.name
name
Definition: setup.py:542
GPB_FINAL
#define GPB_FINAL
Definition: protobuf/objectivec/GPBBootstrap.h:120
GPBDescriptor.h
kGPBUnrecognizedEnumeratorValue
@ kGPBUnrecognizedEnumeratorValue
Definition: bloaty/third_party/protobuf/objectivec/GPBRuntimeTypes.h:54
message
char * message
Definition: libuv/docs/code/tty-gravity/main.c:12
BOOL
int BOOL
Definition: undname.c:46
GPBSyntax_EnumDescriptor
GPBEnumDescriptor * GPBSyntax_EnumDescriptor(void)
GPBSourceContext
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/SourceContext.pbobjc.h:61
GPBField_Kind_EnumDescriptor
GPBEnumDescriptor * GPBField_Kind_EnumDescriptor(void)
benchmark.syntax
syntax
Definition: benchmark.py:90
SetGPBField_Cardinality_RawValue
void SetGPBField_Cardinality_RawValue(GPBField *message, int32_t value)
GPBRootObject.h
GPBSyntax_IsValidValue
BOOL GPBSyntax_IsValidValue(int32_t value)
number
int32_t number
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:850
GPBField_Kind_IsValidValue
BOOL GPBField_Kind_IsValidValue(int32_t value)
GPBRootObject
Definition: bloaty/third_party/protobuf/objectivec/GPBRootObject.h:42
value
const char * value
Definition: hpack_parser_table.cc:165
GPBOption
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.h:416
GPBField_Cardinality_RawValue
int32_t GPBField_Cardinality_RawValue(GPBField *message)
GPBField_Cardinality_EnumDescriptor
GPBEnumDescriptor * GPBField_Cardinality_EnumDescriptor(void)
SetGPBField_Kind_RawValue
void SetGPBField_Kind_RawValue(GPBField *message, int32_t value)
GPBType
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.h:203
GPBMessage
Definition: bloaty/third_party/protobuf/objectivec/GPBMessage.h:83
GPBEnum_Syntax_RawValue
int32_t GPBEnum_Syntax_RawValue(GPBEnum *message)
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
GPBAny
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/Any.pbobjc.h:139
SetGPBEnum_Syntax_RawValue
void SetGPBEnum_Syntax_RawValue(GPBEnum *message, int32_t value)
GPBEnumDescriptor
Definition: bloaty/third_party/protobuf/objectivec/GPBDescriptor.h:216
GPBField_Cardinality_IsValidValue
BOOL GPBField_Cardinality_IsValidValue(int32_t value)
GPBField
Definition: bloaty/third_party/protobuf/objectivec/google/protobuf/Type.pbobjc.h:263
GPBMessage.h


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:44