1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/api.proto
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
10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
11 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
13 #import "GPBProtocolBuffers_RuntimeSupport.h"
16 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
17 #import <Protobuf/Api.pbobjc.h>
18 #import <Protobuf/SourceContext.pbobjc.h>
19 #import <Protobuf/Type.pbobjc.h>
21 #import "google/protobuf/Api.pbobjc.h"
22 #import "google/protobuf/SourceContext.pbobjc.h"
23 #import "google/protobuf/Type.pbobjc.h"
25 // @@protoc_insertion_point(imports)
27 #pragma clang diagnostic push
28 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
30 #pragma mark - GPBApiRoot
32 @implementation GPBApiRoot
34 // No extensions in the file and none of the imports (direct or indirect)
35 // defined extensions, so no need to generate +extensionRegistry.
39 #pragma mark - GPBApiRoot_FileDescriptor
41 static GPBFileDescriptor *GPBApiRoot_FileDescriptor(void) {
42 // This is called by +initialize so there is no need to worry
43 // about thread safety of the singleton.
44 static GPBFileDescriptor *descriptor = NULL;
46 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
47 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
49 syntax:GPBFileSyntaxProto3];
56 @implementation GPBApi
59 @dynamic methodsArray, methodsArray_Count;
60 @dynamic optionsArray, optionsArray_Count;
62 @dynamic hasSourceContext, sourceContext;
63 @dynamic mixinsArray, mixinsArray_Count;
66 typedef struct GPBApi__storage_ {
67 uint32_t _has_storage_[1];
70 NSMutableArray *methodsArray;
71 NSMutableArray *optionsArray;
73 GPBSourceContext *sourceContext;
74 NSMutableArray *mixinsArray;
77 // This method is threadsafe because it is initially called
78 // in +initialize for each subclass.
79 + (GPBDescriptor *)descriptor {
80 static GPBDescriptor *descriptor = nil;
82 static GPBMessageFieldDescription fields[] = {
85 .dataTypeSpecific.className = NULL,
86 .number = GPBApi_FieldNumber_Name,
88 .offset = (uint32_t)offsetof(GPBApi__storage_, name),
89 .flags = GPBFieldOptional,
90 .dataType = GPBDataTypeString,
93 .name = "methodsArray",
94 .dataTypeSpecific.className = GPBStringifySymbol(GPBMethod),
95 .number = GPBApi_FieldNumber_MethodsArray,
96 .hasIndex = GPBNoHasBit,
97 .offset = (uint32_t)offsetof(GPBApi__storage_, methodsArray),
98 .flags = GPBFieldRepeated,
99 .dataType = GPBDataTypeMessage,
102 .name = "optionsArray",
103 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption),
104 .number = GPBApi_FieldNumber_OptionsArray,
105 .hasIndex = GPBNoHasBit,
106 .offset = (uint32_t)offsetof(GPBApi__storage_, optionsArray),
107 .flags = GPBFieldRepeated,
108 .dataType = GPBDataTypeMessage,
112 .dataTypeSpecific.className = NULL,
113 .number = GPBApi_FieldNumber_Version,
115 .offset = (uint32_t)offsetof(GPBApi__storage_, version),
116 .flags = GPBFieldOptional,
117 .dataType = GPBDataTypeString,
120 .name = "sourceContext",
121 .dataTypeSpecific.className = GPBStringifySymbol(GPBSourceContext),
122 .number = GPBApi_FieldNumber_SourceContext,
124 .offset = (uint32_t)offsetof(GPBApi__storage_, sourceContext),
125 .flags = GPBFieldOptional,
126 .dataType = GPBDataTypeMessage,
129 .name = "mixinsArray",
130 .dataTypeSpecific.className = GPBStringifySymbol(GPBMixin),
131 .number = GPBApi_FieldNumber_MixinsArray,
132 .hasIndex = GPBNoHasBit,
133 .offset = (uint32_t)offsetof(GPBApi__storage_, mixinsArray),
134 .flags = GPBFieldRepeated,
135 .dataType = GPBDataTypeMessage,
139 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor,
140 .number = GPBApi_FieldNumber_Syntax,
142 .offset = (uint32_t)offsetof(GPBApi__storage_, syntax),
143 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
144 .dataType = GPBDataTypeEnum,
147 GPBDescriptor *localDescriptor =
148 [GPBDescriptor allocDescriptorForClass:[GPBApi class]
149 rootClass:[GPBApiRoot class]
150 file:GPBApiRoot_FileDescriptor()
152 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
153 storageSize:sizeof(GPBApi__storage_)
154 flags:GPBDescriptorInitializationFlag_None];
155 NSAssert(descriptor == nil, @"Startup recursed!");
156 descriptor = localDescriptor;
163 int32_t GPBApi_Syntax_RawValue(GPBApi *message) {
164 GPBDescriptor *descriptor = [GPBApi descriptor];
165 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBApi_FieldNumber_Syntax];
166 return GPBGetMessageInt32Field(message, field);
169 void SetGPBApi_Syntax_RawValue(GPBApi *message, int32_t value) {
170 GPBDescriptor *descriptor = [GPBApi descriptor];
171 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBApi_FieldNumber_Syntax];
172 GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
175 #pragma mark - GPBMethod
177 @implementation GPBMethod
180 @dynamic requestTypeURL;
181 @dynamic requestStreaming;
182 @dynamic responseTypeURL;
183 @dynamic responseStreaming;
184 @dynamic optionsArray, optionsArray_Count;
187 typedef struct GPBMethod__storage_ {
188 uint32_t _has_storage_[1];
191 NSString *requestTypeURL;
192 NSString *responseTypeURL;
193 NSMutableArray *optionsArray;
194 } GPBMethod__storage_;
196 // This method is threadsafe because it is initially called
197 // in +initialize for each subclass.
198 + (GPBDescriptor *)descriptor {
199 static GPBDescriptor *descriptor = nil;
201 static GPBMessageFieldDescription fields[] = {
204 .dataTypeSpecific.className = NULL,
205 .number = GPBMethod_FieldNumber_Name,
207 .offset = (uint32_t)offsetof(GPBMethod__storage_, name),
208 .flags = GPBFieldOptional,
209 .dataType = GPBDataTypeString,
212 .name = "requestTypeURL",
213 .dataTypeSpecific.className = NULL,
214 .number = GPBMethod_FieldNumber_RequestTypeURL,
216 .offset = (uint32_t)offsetof(GPBMethod__storage_, requestTypeURL),
217 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
218 .dataType = GPBDataTypeString,
221 .name = "requestStreaming",
222 .dataTypeSpecific.className = NULL,
223 .number = GPBMethod_FieldNumber_RequestStreaming,
225 .offset = 3, // Stored in _has_storage_ to save space.
226 .flags = GPBFieldOptional,
227 .dataType = GPBDataTypeBool,
230 .name = "responseTypeURL",
231 .dataTypeSpecific.className = NULL,
232 .number = GPBMethod_FieldNumber_ResponseTypeURL,
234 .offset = (uint32_t)offsetof(GPBMethod__storage_, responseTypeURL),
235 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom),
236 .dataType = GPBDataTypeString,
239 .name = "responseStreaming",
240 .dataTypeSpecific.className = NULL,
241 .number = GPBMethod_FieldNumber_ResponseStreaming,
243 .offset = 6, // Stored in _has_storage_ to save space.
244 .flags = GPBFieldOptional,
245 .dataType = GPBDataTypeBool,
248 .name = "optionsArray",
249 .dataTypeSpecific.className = GPBStringifySymbol(GPBOption),
250 .number = GPBMethod_FieldNumber_OptionsArray,
251 .hasIndex = GPBNoHasBit,
252 .offset = (uint32_t)offsetof(GPBMethod__storage_, optionsArray),
253 .flags = GPBFieldRepeated,
254 .dataType = GPBDataTypeMessage,
258 .dataTypeSpecific.enumDescFunc = GPBSyntax_EnumDescriptor,
259 .number = GPBMethod_FieldNumber_Syntax,
261 .offset = (uint32_t)offsetof(GPBMethod__storage_, syntax),
262 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldHasEnumDescriptor),
263 .dataType = GPBDataTypeEnum,
266 GPBDescriptor *localDescriptor =
267 [GPBDescriptor allocDescriptorForClass:[GPBMethod class]
268 rootClass:[GPBApiRoot class]
269 file:GPBApiRoot_FileDescriptor()
271 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
272 storageSize:sizeof(GPBMethod__storage_)
273 flags:GPBDescriptorInitializationFlag_None];
274 #if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
275 static const char *extraTextFormatInfo =
276 "\002\002\007\244\241!!\000\004\010\244\241!!\000";
277 [localDescriptor setupExtraTextInfo:extraTextFormatInfo];
278 #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
279 NSAssert(descriptor == nil, @"Startup recursed!");
280 descriptor = localDescriptor;
287 int32_t GPBMethod_Syntax_RawValue(GPBMethod *message) {
288 GPBDescriptor *descriptor = [GPBMethod descriptor];
289 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBMethod_FieldNumber_Syntax];
290 return GPBGetMessageInt32Field(message, field);
293 void SetGPBMethod_Syntax_RawValue(GPBMethod *message, int32_t value) {
294 GPBDescriptor *descriptor = [GPBMethod descriptor];
295 GPBFieldDescriptor *field = [descriptor fieldWithNumber:GPBMethod_FieldNumber_Syntax];
296 GPBSetInt32IvarWithFieldInternal(message, field, value, descriptor.file.syntax);
299 #pragma mark - GPBMixin
301 @implementation GPBMixin
306 typedef struct GPBMixin__storage_ {
307 uint32_t _has_storage_[1];
310 } GPBMixin__storage_;
312 // This method is threadsafe because it is initially called
313 // in +initialize for each subclass.
314 + (GPBDescriptor *)descriptor {
315 static GPBDescriptor *descriptor = nil;
317 static GPBMessageFieldDescription fields[] = {
320 .dataTypeSpecific.className = NULL,
321 .number = GPBMixin_FieldNumber_Name,
323 .offset = (uint32_t)offsetof(GPBMixin__storage_, name),
324 .flags = GPBFieldOptional,
325 .dataType = GPBDataTypeString,
329 .dataTypeSpecific.className = NULL,
330 .number = GPBMixin_FieldNumber_Root,
332 .offset = (uint32_t)offsetof(GPBMixin__storage_, root),
333 .flags = GPBFieldOptional,
334 .dataType = GPBDataTypeString,
337 GPBDescriptor *localDescriptor =
338 [GPBDescriptor allocDescriptorForClass:[GPBMixin class]
339 rootClass:[GPBApiRoot class]
340 file:GPBApiRoot_FileDescriptor()
342 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
343 storageSize:sizeof(GPBMixin__storage_)
344 flags:GPBDescriptorInitializationFlag_None];
345 NSAssert(descriptor == nil, @"Startup recursed!");
346 descriptor = localDescriptor;
354 #pragma clang diagnostic pop
356 // @@protoc_insertion_point(global_scope)