1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/wrappers.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/Wrappers.pbobjc.h>
19 #import "google/protobuf/Wrappers.pbobjc.h"
21 // @@protoc_insertion_point(imports)
23 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
26 #pragma mark - GPBWrappersRoot
28 @implementation GPBWrappersRoot
30 // No extensions in the file and no imports, so no need to generate
31 // +extensionRegistry.
35 #pragma mark - GPBWrappersRoot_FileDescriptor
37 static GPBFileDescriptor *GPBWrappersRoot_FileDescriptor(void) {
38 // This is called by +initialize so there is no need to worry
39 // about thread safety of the singleton.
40 static GPBFileDescriptor *descriptor = NULL;
42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
45 syntax:GPBFileSyntaxProto3];
50 #pragma mark - GPBDoubleValue
52 @implementation GPBDoubleValue
56 typedef struct GPBDoubleValue__storage_ {
57 uint32_t _has_storage_[1];
59 } GPBDoubleValue__storage_;
61 // This method is threadsafe because it is initially called
62 // in +initialize for each subclass.
63 + (GPBDescriptor *)descriptor {
64 static GPBDescriptor *descriptor = nil;
66 static GPBMessageFieldDescription fields[] = {
69 .dataTypeSpecific.className = NULL,
70 .number = GPBDoubleValue_FieldNumber_Value,
72 .offset = (uint32_t)offsetof(GPBDoubleValue__storage_, value),
73 .flags = GPBFieldOptional,
74 .dataType = GPBDataTypeDouble,
77 GPBDescriptor *localDescriptor =
78 [GPBDescriptor allocDescriptorForClass:[GPBDoubleValue class]
79 rootClass:[GPBWrappersRoot class]
80 file:GPBWrappersRoot_FileDescriptor()
82 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
83 storageSize:sizeof(GPBDoubleValue__storage_)
84 flags:GPBDescriptorInitializationFlag_None];
85 NSAssert(descriptor == nil, @"Startup recursed!");
86 descriptor = localDescriptor;
93 #pragma mark - GPBFloatValue
95 @implementation GPBFloatValue
99 typedef struct GPBFloatValue__storage_ {
100 uint32_t _has_storage_[1];
102 } GPBFloatValue__storage_;
104 // This method is threadsafe because it is initially called
105 // in +initialize for each subclass.
106 + (GPBDescriptor *)descriptor {
107 static GPBDescriptor *descriptor = nil;
109 static GPBMessageFieldDescription fields[] = {
112 .dataTypeSpecific.className = NULL,
113 .number = GPBFloatValue_FieldNumber_Value,
115 .offset = (uint32_t)offsetof(GPBFloatValue__storage_, value),
116 .flags = GPBFieldOptional,
117 .dataType = GPBDataTypeFloat,
120 GPBDescriptor *localDescriptor =
121 [GPBDescriptor allocDescriptorForClass:[GPBFloatValue class]
122 rootClass:[GPBWrappersRoot class]
123 file:GPBWrappersRoot_FileDescriptor()
125 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
126 storageSize:sizeof(GPBFloatValue__storage_)
127 flags:GPBDescriptorInitializationFlag_None];
128 NSAssert(descriptor == nil, @"Startup recursed!");
129 descriptor = localDescriptor;
136 #pragma mark - GPBInt64Value
138 @implementation GPBInt64Value
142 typedef struct GPBInt64Value__storage_ {
143 uint32_t _has_storage_[1];
145 } GPBInt64Value__storage_;
147 // This method is threadsafe because it is initially called
148 // in +initialize for each subclass.
149 + (GPBDescriptor *)descriptor {
150 static GPBDescriptor *descriptor = nil;
152 static GPBMessageFieldDescription fields[] = {
155 .dataTypeSpecific.className = NULL,
156 .number = GPBInt64Value_FieldNumber_Value,
158 .offset = (uint32_t)offsetof(GPBInt64Value__storage_, value),
159 .flags = GPBFieldOptional,
160 .dataType = GPBDataTypeInt64,
163 GPBDescriptor *localDescriptor =
164 [GPBDescriptor allocDescriptorForClass:[GPBInt64Value class]
165 rootClass:[GPBWrappersRoot class]
166 file:GPBWrappersRoot_FileDescriptor()
168 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
169 storageSize:sizeof(GPBInt64Value__storage_)
170 flags:GPBDescriptorInitializationFlag_None];
171 NSAssert(descriptor == nil, @"Startup recursed!");
172 descriptor = localDescriptor;
179 #pragma mark - GPBUInt64Value
181 @implementation GPBUInt64Value
185 typedef struct GPBUInt64Value__storage_ {
186 uint32_t _has_storage_[1];
188 } GPBUInt64Value__storage_;
190 // This method is threadsafe because it is initially called
191 // in +initialize for each subclass.
192 + (GPBDescriptor *)descriptor {
193 static GPBDescriptor *descriptor = nil;
195 static GPBMessageFieldDescription fields[] = {
198 .dataTypeSpecific.className = NULL,
199 .number = GPBUInt64Value_FieldNumber_Value,
201 .offset = (uint32_t)offsetof(GPBUInt64Value__storage_, value),
202 .flags = GPBFieldOptional,
203 .dataType = GPBDataTypeUInt64,
206 GPBDescriptor *localDescriptor =
207 [GPBDescriptor allocDescriptorForClass:[GPBUInt64Value class]
208 rootClass:[GPBWrappersRoot class]
209 file:GPBWrappersRoot_FileDescriptor()
211 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
212 storageSize:sizeof(GPBUInt64Value__storage_)
213 flags:GPBDescriptorInitializationFlag_None];
214 NSAssert(descriptor == nil, @"Startup recursed!");
215 descriptor = localDescriptor;
222 #pragma mark - GPBInt32Value
224 @implementation GPBInt32Value
228 typedef struct GPBInt32Value__storage_ {
229 uint32_t _has_storage_[1];
231 } GPBInt32Value__storage_;
233 // This method is threadsafe because it is initially called
234 // in +initialize for each subclass.
235 + (GPBDescriptor *)descriptor {
236 static GPBDescriptor *descriptor = nil;
238 static GPBMessageFieldDescription fields[] = {
241 .dataTypeSpecific.className = NULL,
242 .number = GPBInt32Value_FieldNumber_Value,
244 .offset = (uint32_t)offsetof(GPBInt32Value__storage_, value),
245 .flags = GPBFieldOptional,
246 .dataType = GPBDataTypeInt32,
249 GPBDescriptor *localDescriptor =
250 [GPBDescriptor allocDescriptorForClass:[GPBInt32Value class]
251 rootClass:[GPBWrappersRoot class]
252 file:GPBWrappersRoot_FileDescriptor()
254 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
255 storageSize:sizeof(GPBInt32Value__storage_)
256 flags:GPBDescriptorInitializationFlag_None];
257 NSAssert(descriptor == nil, @"Startup recursed!");
258 descriptor = localDescriptor;
265 #pragma mark - GPBUInt32Value
267 @implementation GPBUInt32Value
271 typedef struct GPBUInt32Value__storage_ {
272 uint32_t _has_storage_[1];
274 } GPBUInt32Value__storage_;
276 // This method is threadsafe because it is initially called
277 // in +initialize for each subclass.
278 + (GPBDescriptor *)descriptor {
279 static GPBDescriptor *descriptor = nil;
281 static GPBMessageFieldDescription fields[] = {
284 .dataTypeSpecific.className = NULL,
285 .number = GPBUInt32Value_FieldNumber_Value,
287 .offset = (uint32_t)offsetof(GPBUInt32Value__storage_, value),
288 .flags = GPBFieldOptional,
289 .dataType = GPBDataTypeUInt32,
292 GPBDescriptor *localDescriptor =
293 [GPBDescriptor allocDescriptorForClass:[GPBUInt32Value class]
294 rootClass:[GPBWrappersRoot class]
295 file:GPBWrappersRoot_FileDescriptor()
297 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
298 storageSize:sizeof(GPBUInt32Value__storage_)
299 flags:GPBDescriptorInitializationFlag_None];
300 NSAssert(descriptor == nil, @"Startup recursed!");
301 descriptor = localDescriptor;
308 #pragma mark - GPBBoolValue
310 @implementation GPBBoolValue
314 typedef struct GPBBoolValue__storage_ {
315 uint32_t _has_storage_[1];
316 } GPBBoolValue__storage_;
318 // This method is threadsafe because it is initially called
319 // in +initialize for each subclass.
320 + (GPBDescriptor *)descriptor {
321 static GPBDescriptor *descriptor = nil;
323 static GPBMessageFieldDescription fields[] = {
326 .dataTypeSpecific.className = NULL,
327 .number = GPBBoolValue_FieldNumber_Value,
329 .offset = 1, // Stored in _has_storage_ to save space.
330 .flags = GPBFieldOptional,
331 .dataType = GPBDataTypeBool,
334 GPBDescriptor *localDescriptor =
335 [GPBDescriptor allocDescriptorForClass:[GPBBoolValue class]
336 rootClass:[GPBWrappersRoot class]
337 file:GPBWrappersRoot_FileDescriptor()
339 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
340 storageSize:sizeof(GPBBoolValue__storage_)
341 flags:GPBDescriptorInitializationFlag_None];
342 NSAssert(descriptor == nil, @"Startup recursed!");
343 descriptor = localDescriptor;
350 #pragma mark - GPBStringValue
352 @implementation GPBStringValue
356 typedef struct GPBStringValue__storage_ {
357 uint32_t _has_storage_[1];
359 } GPBStringValue__storage_;
361 // This method is threadsafe because it is initially called
362 // in +initialize for each subclass.
363 + (GPBDescriptor *)descriptor {
364 static GPBDescriptor *descriptor = nil;
366 static GPBMessageFieldDescription fields[] = {
369 .dataTypeSpecific.className = NULL,
370 .number = GPBStringValue_FieldNumber_Value,
372 .offset = (uint32_t)offsetof(GPBStringValue__storage_, value),
373 .flags = GPBFieldOptional,
374 .dataType = GPBDataTypeString,
377 GPBDescriptor *localDescriptor =
378 [GPBDescriptor allocDescriptorForClass:[GPBStringValue class]
379 rootClass:[GPBWrappersRoot class]
380 file:GPBWrappersRoot_FileDescriptor()
382 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
383 storageSize:sizeof(GPBStringValue__storage_)
384 flags:GPBDescriptorInitializationFlag_None];
385 NSAssert(descriptor == nil, @"Startup recursed!");
386 descriptor = localDescriptor;
393 #pragma mark - GPBBytesValue
395 @implementation GPBBytesValue
399 typedef struct GPBBytesValue__storage_ {
400 uint32_t _has_storage_[1];
402 } GPBBytesValue__storage_;
404 // This method is threadsafe because it is initially called
405 // in +initialize for each subclass.
406 + (GPBDescriptor *)descriptor {
407 static GPBDescriptor *descriptor = nil;
409 static GPBMessageFieldDescription fields[] = {
412 .dataTypeSpecific.className = NULL,
413 .number = GPBBytesValue_FieldNumber_Value,
415 .offset = (uint32_t)offsetof(GPBBytesValue__storage_, value),
416 .flags = GPBFieldOptional,
417 .dataType = GPBDataTypeBytes,
420 GPBDescriptor *localDescriptor =
421 [GPBDescriptor allocDescriptorForClass:[GPBBytesValue class]
422 rootClass:[GPBWrappersRoot class]
423 file:GPBWrappersRoot_FileDescriptor()
425 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
426 storageSize:sizeof(GPBBytesValue__storage_)
427 flags:GPBDescriptorInitializationFlag_None];
428 NSAssert(descriptor == nil, @"Startup recursed!");
429 descriptor = localDescriptor;
437 #pragma clang diagnostic pop
439 // @@protoc_insertion_point(global_scope)