Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame^] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/wrappers.proto |
| 3 | |
| 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 5 | #import "google/protobuf/Wrappers.pbobjc.h" |
| 6 | // @@protoc_insertion_point(imports) |
| 7 | |
| 8 | #pragma mark - GPBWrappersRoot |
| 9 | |
| 10 | @implementation GPBWrappersRoot |
| 11 | |
| 12 | @end |
| 13 | |
| 14 | #pragma mark - GPBWrappersRoot_FileDescriptor |
| 15 | |
| 16 | static GPBFileDescriptor *GPBWrappersRoot_FileDescriptor(void) { |
| 17 | // This is called by +initialize so there is no need to worry |
| 18 | // about thread safety of the singleton. |
| 19 | static GPBFileDescriptor *descriptor = NULL; |
| 20 | if (!descriptor) { |
| 21 | GPBDebugCheckRuntimeVersion(); |
| 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
| 23 | syntax:GPBFileSyntaxProto3]; |
| 24 | } |
| 25 | return descriptor; |
| 26 | } |
| 27 | |
| 28 | #pragma mark - GPBDoubleValue |
| 29 | |
| 30 | @implementation GPBDoubleValue |
| 31 | |
| 32 | @dynamic value; |
| 33 | |
| 34 | typedef struct GPBDoubleValue__storage_ { |
| 35 | uint32_t _has_storage_[1]; |
| 36 | double value; |
| 37 | } GPBDoubleValue__storage_; |
| 38 | |
| 39 | // This method is threadsafe because it is initially called |
| 40 | // in +initialize for each subclass. |
| 41 | + (GPBDescriptor *)descriptor { |
| 42 | static GPBDescriptor *descriptor = nil; |
| 43 | if (!descriptor) { |
| 44 | static GPBMessageFieldDescription fields[] = { |
| 45 | { |
| 46 | .name = "value", |
| 47 | .number = GPBDoubleValue_FieldNumber_Value, |
| 48 | .hasIndex = 0, |
| 49 | .flags = GPBFieldOptional, |
| 50 | .dataType = GPBDataTypeDouble, |
| 51 | .offset = offsetof(GPBDoubleValue__storage_, value), |
| 52 | .defaultValue.valueDouble = 0, |
| 53 | .dataTypeSpecific.className = NULL, |
| 54 | .fieldOptions = NULL, |
| 55 | }, |
| 56 | }; |
| 57 | GPBDescriptor *localDescriptor = |
| 58 | [GPBDescriptor allocDescriptorForClass:[GPBDoubleValue class] |
| 59 | rootClass:[GPBWrappersRoot class] |
| 60 | file:GPBWrappersRoot_FileDescriptor() |
| 61 | fields:fields |
| 62 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 63 | oneofs:NULL |
| 64 | oneofCount:0 |
| 65 | enums:NULL |
| 66 | enumCount:0 |
| 67 | ranges:NULL |
| 68 | rangeCount:0 |
| 69 | storageSize:sizeof(GPBDoubleValue__storage_) |
| 70 | wireFormat:NO]; |
| 71 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 72 | descriptor = localDescriptor; |
| 73 | } |
| 74 | return descriptor; |
| 75 | } |
| 76 | |
| 77 | @end |
| 78 | |
| 79 | #pragma mark - GPBFloatValue |
| 80 | |
| 81 | @implementation GPBFloatValue |
| 82 | |
| 83 | @dynamic value; |
| 84 | |
| 85 | typedef struct GPBFloatValue__storage_ { |
| 86 | uint32_t _has_storage_[1]; |
| 87 | float value; |
| 88 | } GPBFloatValue__storage_; |
| 89 | |
| 90 | // This method is threadsafe because it is initially called |
| 91 | // in +initialize for each subclass. |
| 92 | + (GPBDescriptor *)descriptor { |
| 93 | static GPBDescriptor *descriptor = nil; |
| 94 | if (!descriptor) { |
| 95 | static GPBMessageFieldDescription fields[] = { |
| 96 | { |
| 97 | .name = "value", |
| 98 | .number = GPBFloatValue_FieldNumber_Value, |
| 99 | .hasIndex = 0, |
| 100 | .flags = GPBFieldOptional, |
| 101 | .dataType = GPBDataTypeFloat, |
| 102 | .offset = offsetof(GPBFloatValue__storage_, value), |
| 103 | .defaultValue.valueFloat = 0, |
| 104 | .dataTypeSpecific.className = NULL, |
| 105 | .fieldOptions = NULL, |
| 106 | }, |
| 107 | }; |
| 108 | GPBDescriptor *localDescriptor = |
| 109 | [GPBDescriptor allocDescriptorForClass:[GPBFloatValue class] |
| 110 | rootClass:[GPBWrappersRoot class] |
| 111 | file:GPBWrappersRoot_FileDescriptor() |
| 112 | fields:fields |
| 113 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 114 | oneofs:NULL |
| 115 | oneofCount:0 |
| 116 | enums:NULL |
| 117 | enumCount:0 |
| 118 | ranges:NULL |
| 119 | rangeCount:0 |
| 120 | storageSize:sizeof(GPBFloatValue__storage_) |
| 121 | wireFormat:NO]; |
| 122 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 123 | descriptor = localDescriptor; |
| 124 | } |
| 125 | return descriptor; |
| 126 | } |
| 127 | |
| 128 | @end |
| 129 | |
| 130 | #pragma mark - GPBInt64Value |
| 131 | |
| 132 | @implementation GPBInt64Value |
| 133 | |
| 134 | @dynamic value; |
| 135 | |
| 136 | typedef struct GPBInt64Value__storage_ { |
| 137 | uint32_t _has_storage_[1]; |
| 138 | int64_t value; |
| 139 | } GPBInt64Value__storage_; |
| 140 | |
| 141 | // This method is threadsafe because it is initially called |
| 142 | // in +initialize for each subclass. |
| 143 | + (GPBDescriptor *)descriptor { |
| 144 | static GPBDescriptor *descriptor = nil; |
| 145 | if (!descriptor) { |
| 146 | static GPBMessageFieldDescription fields[] = { |
| 147 | { |
| 148 | .name = "value", |
| 149 | .number = GPBInt64Value_FieldNumber_Value, |
| 150 | .hasIndex = 0, |
| 151 | .flags = GPBFieldOptional, |
| 152 | .dataType = GPBDataTypeInt64, |
| 153 | .offset = offsetof(GPBInt64Value__storage_, value), |
| 154 | .defaultValue.valueInt64 = 0LL, |
| 155 | .dataTypeSpecific.className = NULL, |
| 156 | .fieldOptions = NULL, |
| 157 | }, |
| 158 | }; |
| 159 | GPBDescriptor *localDescriptor = |
| 160 | [GPBDescriptor allocDescriptorForClass:[GPBInt64Value class] |
| 161 | rootClass:[GPBWrappersRoot class] |
| 162 | file:GPBWrappersRoot_FileDescriptor() |
| 163 | fields:fields |
| 164 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 165 | oneofs:NULL |
| 166 | oneofCount:0 |
| 167 | enums:NULL |
| 168 | enumCount:0 |
| 169 | ranges:NULL |
| 170 | rangeCount:0 |
| 171 | storageSize:sizeof(GPBInt64Value__storage_) |
| 172 | wireFormat:NO]; |
| 173 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 174 | descriptor = localDescriptor; |
| 175 | } |
| 176 | return descriptor; |
| 177 | } |
| 178 | |
| 179 | @end |
| 180 | |
| 181 | #pragma mark - GPBUInt64Value |
| 182 | |
| 183 | @implementation GPBUInt64Value |
| 184 | |
| 185 | @dynamic value; |
| 186 | |
| 187 | typedef struct GPBUInt64Value__storage_ { |
| 188 | uint32_t _has_storage_[1]; |
| 189 | uint64_t value; |
| 190 | } GPBUInt64Value__storage_; |
| 191 | |
| 192 | // This method is threadsafe because it is initially called |
| 193 | // in +initialize for each subclass. |
| 194 | + (GPBDescriptor *)descriptor { |
| 195 | static GPBDescriptor *descriptor = nil; |
| 196 | if (!descriptor) { |
| 197 | static GPBMessageFieldDescription fields[] = { |
| 198 | { |
| 199 | .name = "value", |
| 200 | .number = GPBUInt64Value_FieldNumber_Value, |
| 201 | .hasIndex = 0, |
| 202 | .flags = GPBFieldOptional, |
| 203 | .dataType = GPBDataTypeUInt64, |
| 204 | .offset = offsetof(GPBUInt64Value__storage_, value), |
| 205 | .defaultValue.valueUInt64 = 0ULL, |
| 206 | .dataTypeSpecific.className = NULL, |
| 207 | .fieldOptions = NULL, |
| 208 | }, |
| 209 | }; |
| 210 | GPBDescriptor *localDescriptor = |
| 211 | [GPBDescriptor allocDescriptorForClass:[GPBUInt64Value class] |
| 212 | rootClass:[GPBWrappersRoot class] |
| 213 | file:GPBWrappersRoot_FileDescriptor() |
| 214 | fields:fields |
| 215 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 216 | oneofs:NULL |
| 217 | oneofCount:0 |
| 218 | enums:NULL |
| 219 | enumCount:0 |
| 220 | ranges:NULL |
| 221 | rangeCount:0 |
| 222 | storageSize:sizeof(GPBUInt64Value__storage_) |
| 223 | wireFormat:NO]; |
| 224 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 225 | descriptor = localDescriptor; |
| 226 | } |
| 227 | return descriptor; |
| 228 | } |
| 229 | |
| 230 | @end |
| 231 | |
| 232 | #pragma mark - GPBInt32Value |
| 233 | |
| 234 | @implementation GPBInt32Value |
| 235 | |
| 236 | @dynamic value; |
| 237 | |
| 238 | typedef struct GPBInt32Value__storage_ { |
| 239 | uint32_t _has_storage_[1]; |
| 240 | int32_t value; |
| 241 | } GPBInt32Value__storage_; |
| 242 | |
| 243 | // This method is threadsafe because it is initially called |
| 244 | // in +initialize for each subclass. |
| 245 | + (GPBDescriptor *)descriptor { |
| 246 | static GPBDescriptor *descriptor = nil; |
| 247 | if (!descriptor) { |
| 248 | static GPBMessageFieldDescription fields[] = { |
| 249 | { |
| 250 | .name = "value", |
| 251 | .number = GPBInt32Value_FieldNumber_Value, |
| 252 | .hasIndex = 0, |
| 253 | .flags = GPBFieldOptional, |
| 254 | .dataType = GPBDataTypeInt32, |
| 255 | .offset = offsetof(GPBInt32Value__storage_, value), |
| 256 | .defaultValue.valueInt32 = 0, |
| 257 | .dataTypeSpecific.className = NULL, |
| 258 | .fieldOptions = NULL, |
| 259 | }, |
| 260 | }; |
| 261 | GPBDescriptor *localDescriptor = |
| 262 | [GPBDescriptor allocDescriptorForClass:[GPBInt32Value class] |
| 263 | rootClass:[GPBWrappersRoot class] |
| 264 | file:GPBWrappersRoot_FileDescriptor() |
| 265 | fields:fields |
| 266 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 267 | oneofs:NULL |
| 268 | oneofCount:0 |
| 269 | enums:NULL |
| 270 | enumCount:0 |
| 271 | ranges:NULL |
| 272 | rangeCount:0 |
| 273 | storageSize:sizeof(GPBInt32Value__storage_) |
| 274 | wireFormat:NO]; |
| 275 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 276 | descriptor = localDescriptor; |
| 277 | } |
| 278 | return descriptor; |
| 279 | } |
| 280 | |
| 281 | @end |
| 282 | |
| 283 | #pragma mark - GPBUInt32Value |
| 284 | |
| 285 | @implementation GPBUInt32Value |
| 286 | |
| 287 | @dynamic value; |
| 288 | |
| 289 | typedef struct GPBUInt32Value__storage_ { |
| 290 | uint32_t _has_storage_[1]; |
| 291 | uint32_t value; |
| 292 | } GPBUInt32Value__storage_; |
| 293 | |
| 294 | // This method is threadsafe because it is initially called |
| 295 | // in +initialize for each subclass. |
| 296 | + (GPBDescriptor *)descriptor { |
| 297 | static GPBDescriptor *descriptor = nil; |
| 298 | if (!descriptor) { |
| 299 | static GPBMessageFieldDescription fields[] = { |
| 300 | { |
| 301 | .name = "value", |
| 302 | .number = GPBUInt32Value_FieldNumber_Value, |
| 303 | .hasIndex = 0, |
| 304 | .flags = GPBFieldOptional, |
| 305 | .dataType = GPBDataTypeUInt32, |
| 306 | .offset = offsetof(GPBUInt32Value__storage_, value), |
| 307 | .defaultValue.valueUInt32 = 0U, |
| 308 | .dataTypeSpecific.className = NULL, |
| 309 | .fieldOptions = NULL, |
| 310 | }, |
| 311 | }; |
| 312 | GPBDescriptor *localDescriptor = |
| 313 | [GPBDescriptor allocDescriptorForClass:[GPBUInt32Value class] |
| 314 | rootClass:[GPBWrappersRoot class] |
| 315 | file:GPBWrappersRoot_FileDescriptor() |
| 316 | fields:fields |
| 317 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 318 | oneofs:NULL |
| 319 | oneofCount:0 |
| 320 | enums:NULL |
| 321 | enumCount:0 |
| 322 | ranges:NULL |
| 323 | rangeCount:0 |
| 324 | storageSize:sizeof(GPBUInt32Value__storage_) |
| 325 | wireFormat:NO]; |
| 326 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 327 | descriptor = localDescriptor; |
| 328 | } |
| 329 | return descriptor; |
| 330 | } |
| 331 | |
| 332 | @end |
| 333 | |
| 334 | #pragma mark - GPBBoolValue |
| 335 | |
| 336 | @implementation GPBBoolValue |
| 337 | |
| 338 | @dynamic value; |
| 339 | |
| 340 | typedef struct GPBBoolValue__storage_ { |
| 341 | uint32_t _has_storage_[1]; |
| 342 | BOOL value; |
| 343 | } GPBBoolValue__storage_; |
| 344 | |
| 345 | // This method is threadsafe because it is initially called |
| 346 | // in +initialize for each subclass. |
| 347 | + (GPBDescriptor *)descriptor { |
| 348 | static GPBDescriptor *descriptor = nil; |
| 349 | if (!descriptor) { |
| 350 | static GPBMessageFieldDescription fields[] = { |
| 351 | { |
| 352 | .name = "value", |
| 353 | .number = GPBBoolValue_FieldNumber_Value, |
| 354 | .hasIndex = 0, |
| 355 | .flags = GPBFieldOptional, |
| 356 | .dataType = GPBDataTypeBool, |
| 357 | .offset = offsetof(GPBBoolValue__storage_, value), |
| 358 | .defaultValue.valueBool = NO, |
| 359 | .dataTypeSpecific.className = NULL, |
| 360 | .fieldOptions = NULL, |
| 361 | }, |
| 362 | }; |
| 363 | GPBDescriptor *localDescriptor = |
| 364 | [GPBDescriptor allocDescriptorForClass:[GPBBoolValue class] |
| 365 | rootClass:[GPBWrappersRoot class] |
| 366 | file:GPBWrappersRoot_FileDescriptor() |
| 367 | fields:fields |
| 368 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 369 | oneofs:NULL |
| 370 | oneofCount:0 |
| 371 | enums:NULL |
| 372 | enumCount:0 |
| 373 | ranges:NULL |
| 374 | rangeCount:0 |
| 375 | storageSize:sizeof(GPBBoolValue__storage_) |
| 376 | wireFormat:NO]; |
| 377 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 378 | descriptor = localDescriptor; |
| 379 | } |
| 380 | return descriptor; |
| 381 | } |
| 382 | |
| 383 | @end |
| 384 | |
| 385 | #pragma mark - GPBStringValue |
| 386 | |
| 387 | @implementation GPBStringValue |
| 388 | |
| 389 | @dynamic value; |
| 390 | |
| 391 | typedef struct GPBStringValue__storage_ { |
| 392 | uint32_t _has_storage_[1]; |
| 393 | NSString *value; |
| 394 | } GPBStringValue__storage_; |
| 395 | |
| 396 | // This method is threadsafe because it is initially called |
| 397 | // in +initialize for each subclass. |
| 398 | + (GPBDescriptor *)descriptor { |
| 399 | static GPBDescriptor *descriptor = nil; |
| 400 | if (!descriptor) { |
| 401 | static GPBMessageFieldDescription fields[] = { |
| 402 | { |
| 403 | .name = "value", |
| 404 | .number = GPBStringValue_FieldNumber_Value, |
| 405 | .hasIndex = 0, |
| 406 | .flags = GPBFieldOptional, |
| 407 | .dataType = GPBDataTypeString, |
| 408 | .offset = offsetof(GPBStringValue__storage_, value), |
| 409 | .defaultValue.valueString = nil, |
| 410 | .dataTypeSpecific.className = NULL, |
| 411 | .fieldOptions = NULL, |
| 412 | }, |
| 413 | }; |
| 414 | GPBDescriptor *localDescriptor = |
| 415 | [GPBDescriptor allocDescriptorForClass:[GPBStringValue class] |
| 416 | rootClass:[GPBWrappersRoot class] |
| 417 | file:GPBWrappersRoot_FileDescriptor() |
| 418 | fields:fields |
| 419 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 420 | oneofs:NULL |
| 421 | oneofCount:0 |
| 422 | enums:NULL |
| 423 | enumCount:0 |
| 424 | ranges:NULL |
| 425 | rangeCount:0 |
| 426 | storageSize:sizeof(GPBStringValue__storage_) |
| 427 | wireFormat:NO]; |
| 428 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 429 | descriptor = localDescriptor; |
| 430 | } |
| 431 | return descriptor; |
| 432 | } |
| 433 | |
| 434 | @end |
| 435 | |
| 436 | #pragma mark - GPBBytesValue |
| 437 | |
| 438 | @implementation GPBBytesValue |
| 439 | |
| 440 | @dynamic value; |
| 441 | |
| 442 | typedef struct GPBBytesValue__storage_ { |
| 443 | uint32_t _has_storage_[1]; |
| 444 | NSData *value; |
| 445 | } GPBBytesValue__storage_; |
| 446 | |
| 447 | // This method is threadsafe because it is initially called |
| 448 | // in +initialize for each subclass. |
| 449 | + (GPBDescriptor *)descriptor { |
| 450 | static GPBDescriptor *descriptor = nil; |
| 451 | if (!descriptor) { |
| 452 | static GPBMessageFieldDescription fields[] = { |
| 453 | { |
| 454 | .name = "value", |
| 455 | .number = GPBBytesValue_FieldNumber_Value, |
| 456 | .hasIndex = 0, |
| 457 | .flags = GPBFieldOptional, |
| 458 | .dataType = GPBDataTypeBytes, |
| 459 | .offset = offsetof(GPBBytesValue__storage_, value), |
| 460 | .defaultValue.valueData = nil, |
| 461 | .dataTypeSpecific.className = NULL, |
| 462 | .fieldOptions = NULL, |
| 463 | }, |
| 464 | }; |
| 465 | GPBDescriptor *localDescriptor = |
| 466 | [GPBDescriptor allocDescriptorForClass:[GPBBytesValue class] |
| 467 | rootClass:[GPBWrappersRoot class] |
| 468 | file:GPBWrappersRoot_FileDescriptor() |
| 469 | fields:fields |
| 470 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) |
| 471 | oneofs:NULL |
| 472 | oneofCount:0 |
| 473 | enums:NULL |
| 474 | enumCount:0 |
| 475 | ranges:NULL |
| 476 | rangeCount:0 |
| 477 | storageSize:sizeof(GPBBytesValue__storage_) |
| 478 | wireFormat:NO]; |
| 479 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 480 | descriptor = localDescriptor; |
| 481 | } |
| 482 | return descriptor; |
| 483 | } |
| 484 | |
| 485 | @end |
| 486 | |
| 487 | |
| 488 | // @@protoc_insertion_point(global_scope) |