1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // NO CHECKED-IN PROTOBUF GENCODE
4 // source: google/protobuf/wrappers.proto
6 #import "GPBProtocolBuffers_RuntimeSupport.h"
7 #import "GPBWrappers.pbobjc.h"
9 #if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
10 #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
12 #if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
13 #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
16 // @@protoc_insertion_point(imports)
18 #pragma clang diagnostic push
19 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
20 #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
22 #pragma mark - Objective-C Class declarations
23 // Forward declarations of Objective-C classes that we can use as
24 // static values in struct initializers.
25 // We don't use [Foo class] because it is not a static value.
26 GPBObjCClassDeclaration(GPBBoolValue);
27 GPBObjCClassDeclaration(GPBBytesValue);
28 GPBObjCClassDeclaration(GPBDoubleValue);
29 GPBObjCClassDeclaration(GPBFloatValue);
30 GPBObjCClassDeclaration(GPBInt32Value);
31 GPBObjCClassDeclaration(GPBInt64Value);
32 GPBObjCClassDeclaration(GPBStringValue);
33 GPBObjCClassDeclaration(GPBUInt32Value);
34 GPBObjCClassDeclaration(GPBUInt64Value);
36 #pragma mark - GPBWrappersRoot
38 @implementation GPBWrappersRoot
40 // No extensions in the file and no imports or none of the imports (direct or
41 // indirect) defined extensions, so no need to generate +extensionRegistry.
45 static GPBFileDescription GPBWrappersRoot_FileDescription = {
46 .package = "google.protobuf",
48 .syntax = GPBFileSyntaxProto3
51 #pragma mark - GPBDoubleValue
53 @implementation GPBDoubleValue
57 typedef struct GPBDoubleValue__storage_ {
58 uint32_t _has_storage_[1];
60 } GPBDoubleValue__storage_;
62 // This method is threadsafe because it is initially called
63 // in +initialize for each subclass.
64 + (GPBDescriptor *)descriptor {
65 static GPBDescriptor *descriptor = nil;
67 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
68 static GPBMessageFieldDescription fields[] = {
71 .dataTypeSpecific.clazz = Nil,
72 .number = GPBDoubleValue_FieldNumber_Value,
74 .offset = (uint32_t)offsetof(GPBDoubleValue__storage_, value),
75 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
76 .dataType = GPBDataTypeDouble,
79 GPBDescriptor *localDescriptor =
80 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBDoubleValue)
81 messageName:@"DoubleValue"
82 fileDescription:&GPBWrappersRoot_FileDescription
84 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
85 storageSize:sizeof(GPBDoubleValue__storage_)
86 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
87 #if defined(DEBUG) && DEBUG
88 NSAssert(descriptor == nil, @"Startup recursed!");
90 descriptor = localDescriptor;
97 #pragma mark - GPBFloatValue
99 @implementation GPBFloatValue
103 typedef struct GPBFloatValue__storage_ {
104 uint32_t _has_storage_[1];
106 } GPBFloatValue__storage_;
108 // This method is threadsafe because it is initially called
109 // in +initialize for each subclass.
110 + (GPBDescriptor *)descriptor {
111 static GPBDescriptor *descriptor = nil;
113 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
114 static GPBMessageFieldDescription fields[] = {
117 .dataTypeSpecific.clazz = Nil,
118 .number = GPBFloatValue_FieldNumber_Value,
120 .offset = (uint32_t)offsetof(GPBFloatValue__storage_, value),
121 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
122 .dataType = GPBDataTypeFloat,
125 GPBDescriptor *localDescriptor =
126 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBFloatValue)
127 messageName:@"FloatValue"
128 fileDescription:&GPBWrappersRoot_FileDescription
130 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
131 storageSize:sizeof(GPBFloatValue__storage_)
132 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
133 #if defined(DEBUG) && DEBUG
134 NSAssert(descriptor == nil, @"Startup recursed!");
136 descriptor = localDescriptor;
143 #pragma mark - GPBInt64Value
145 @implementation GPBInt64Value
149 typedef struct GPBInt64Value__storage_ {
150 uint32_t _has_storage_[1];
152 } GPBInt64Value__storage_;
154 // This method is threadsafe because it is initially called
155 // in +initialize for each subclass.
156 + (GPBDescriptor *)descriptor {
157 static GPBDescriptor *descriptor = nil;
159 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
160 static GPBMessageFieldDescription fields[] = {
163 .dataTypeSpecific.clazz = Nil,
164 .number = GPBInt64Value_FieldNumber_Value,
166 .offset = (uint32_t)offsetof(GPBInt64Value__storage_, value),
167 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
168 .dataType = GPBDataTypeInt64,
171 GPBDescriptor *localDescriptor =
172 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBInt64Value)
173 messageName:@"Int64Value"
174 fileDescription:&GPBWrappersRoot_FileDescription
176 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
177 storageSize:sizeof(GPBInt64Value__storage_)
178 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
179 #if defined(DEBUG) && DEBUG
180 NSAssert(descriptor == nil, @"Startup recursed!");
182 descriptor = localDescriptor;
189 #pragma mark - GPBUInt64Value
191 @implementation GPBUInt64Value
195 typedef struct GPBUInt64Value__storage_ {
196 uint32_t _has_storage_[1];
198 } GPBUInt64Value__storage_;
200 // This method is threadsafe because it is initially called
201 // in +initialize for each subclass.
202 + (GPBDescriptor *)descriptor {
203 static GPBDescriptor *descriptor = nil;
205 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
206 static GPBMessageFieldDescription fields[] = {
209 .dataTypeSpecific.clazz = Nil,
210 .number = GPBUInt64Value_FieldNumber_Value,
212 .offset = (uint32_t)offsetof(GPBUInt64Value__storage_, value),
213 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
214 .dataType = GPBDataTypeUInt64,
217 GPBDescriptor *localDescriptor =
218 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBUInt64Value)
219 messageName:@"UInt64Value"
220 fileDescription:&GPBWrappersRoot_FileDescription
222 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
223 storageSize:sizeof(GPBUInt64Value__storage_)
224 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
225 #if defined(DEBUG) && DEBUG
226 NSAssert(descriptor == nil, @"Startup recursed!");
228 descriptor = localDescriptor;
235 #pragma mark - GPBInt32Value
237 @implementation GPBInt32Value
241 typedef struct GPBInt32Value__storage_ {
242 uint32_t _has_storage_[1];
244 } GPBInt32Value__storage_;
246 // This method is threadsafe because it is initially called
247 // in +initialize for each subclass.
248 + (GPBDescriptor *)descriptor {
249 static GPBDescriptor *descriptor = nil;
251 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
252 static GPBMessageFieldDescription fields[] = {
255 .dataTypeSpecific.clazz = Nil,
256 .number = GPBInt32Value_FieldNumber_Value,
258 .offset = (uint32_t)offsetof(GPBInt32Value__storage_, value),
259 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
260 .dataType = GPBDataTypeInt32,
263 GPBDescriptor *localDescriptor =
264 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBInt32Value)
265 messageName:@"Int32Value"
266 fileDescription:&GPBWrappersRoot_FileDescription
268 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
269 storageSize:sizeof(GPBInt32Value__storage_)
270 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
271 #if defined(DEBUG) && DEBUG
272 NSAssert(descriptor == nil, @"Startup recursed!");
274 descriptor = localDescriptor;
281 #pragma mark - GPBUInt32Value
283 @implementation GPBUInt32Value
287 typedef struct GPBUInt32Value__storage_ {
288 uint32_t _has_storage_[1];
290 } GPBUInt32Value__storage_;
292 // This method is threadsafe because it is initially called
293 // in +initialize for each subclass.
294 + (GPBDescriptor *)descriptor {
295 static GPBDescriptor *descriptor = nil;
297 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
298 static GPBMessageFieldDescription fields[] = {
301 .dataTypeSpecific.clazz = Nil,
302 .number = GPBUInt32Value_FieldNumber_Value,
304 .offset = (uint32_t)offsetof(GPBUInt32Value__storage_, value),
305 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
306 .dataType = GPBDataTypeUInt32,
309 GPBDescriptor *localDescriptor =
310 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBUInt32Value)
311 messageName:@"UInt32Value"
312 fileDescription:&GPBWrappersRoot_FileDescription
314 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
315 storageSize:sizeof(GPBUInt32Value__storage_)
316 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
317 #if defined(DEBUG) && DEBUG
318 NSAssert(descriptor == nil, @"Startup recursed!");
320 descriptor = localDescriptor;
327 #pragma mark - GPBBoolValue
329 @implementation GPBBoolValue
333 typedef struct GPBBoolValue__storage_ {
334 uint32_t _has_storage_[1];
335 } GPBBoolValue__storage_;
337 // This method is threadsafe because it is initially called
338 // in +initialize for each subclass.
339 + (GPBDescriptor *)descriptor {
340 static GPBDescriptor *descriptor = nil;
342 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
343 static GPBMessageFieldDescription fields[] = {
346 .dataTypeSpecific.clazz = Nil,
347 .number = GPBBoolValue_FieldNumber_Value,
349 .offset = 1, // Stored in _has_storage_ to save space.
350 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
351 .dataType = GPBDataTypeBool,
354 GPBDescriptor *localDescriptor =
355 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBBoolValue)
356 messageName:@"BoolValue"
357 fileDescription:&GPBWrappersRoot_FileDescription
359 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
360 storageSize:sizeof(GPBBoolValue__storage_)
361 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
362 #if defined(DEBUG) && DEBUG
363 NSAssert(descriptor == nil, @"Startup recursed!");
365 descriptor = localDescriptor;
372 #pragma mark - GPBStringValue
374 @implementation GPBStringValue
378 typedef struct GPBStringValue__storage_ {
379 uint32_t _has_storage_[1];
381 } GPBStringValue__storage_;
383 // This method is threadsafe because it is initially called
384 // in +initialize for each subclass.
385 + (GPBDescriptor *)descriptor {
386 static GPBDescriptor *descriptor = nil;
388 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
389 static GPBMessageFieldDescription fields[] = {
392 .dataTypeSpecific.clazz = Nil,
393 .number = GPBStringValue_FieldNumber_Value,
395 .offset = (uint32_t)offsetof(GPBStringValue__storage_, value),
396 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
397 .dataType = GPBDataTypeString,
400 GPBDescriptor *localDescriptor =
401 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBStringValue)
402 messageName:@"StringValue"
403 fileDescription:&GPBWrappersRoot_FileDescription
405 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
406 storageSize:sizeof(GPBStringValue__storage_)
407 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
408 #if defined(DEBUG) && DEBUG
409 NSAssert(descriptor == nil, @"Startup recursed!");
411 descriptor = localDescriptor;
418 #pragma mark - GPBBytesValue
420 @implementation GPBBytesValue
424 typedef struct GPBBytesValue__storage_ {
425 uint32_t _has_storage_[1];
427 } GPBBytesValue__storage_;
429 // This method is threadsafe because it is initially called
430 // in +initialize for each subclass.
431 + (GPBDescriptor *)descriptor {
432 static GPBDescriptor *descriptor = nil;
434 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
435 static GPBMessageFieldDescription fields[] = {
438 .dataTypeSpecific.clazz = Nil,
439 .number = GPBBytesValue_FieldNumber_Value,
441 .offset = (uint32_t)offsetof(GPBBytesValue__storage_, value),
442 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
443 .dataType = GPBDataTypeBytes,
446 GPBDescriptor *localDescriptor =
447 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBBytesValue)
448 messageName:@"BytesValue"
449 fileDescription:&GPBWrappersRoot_FileDescription
451 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
452 storageSize:sizeof(GPBBytesValue__storage_)
453 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
454 #if defined(DEBUG) && DEBUG
455 NSAssert(descriptor == nil, @"Startup recursed!");
457 descriptor = localDescriptor;
465 #pragma clang diagnostic pop
467 // @@protoc_insertion_point(global_scope)