Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/source_context.proto |
| 3 | |
| 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 5 | #import "google/protobuf/SourceContext.pbobjc.h" |
| 6 | // @@protoc_insertion_point(imports) |
| 7 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 8 | #pragma clang diagnostic push |
| 9 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 10 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 11 | #pragma mark - GPBSourceContextRoot |
| 12 | |
| 13 | @implementation GPBSourceContextRoot |
| 14 | |
| 15 | @end |
| 16 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 17 | #pragma mark - GPBSourceContextRoot_FileDescriptor |
| 18 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 19 | static GPBFileDescriptor *GPBSourceContextRoot_FileDescriptor(void) { |
| 20 | // This is called by +initialize so there is no need to worry |
| 21 | // about thread safety of the singleton. |
| 22 | static GPBFileDescriptor *descriptor = NULL; |
| 23 | if (!descriptor) { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 24 | GPBDebugCheckRuntimeVersion(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 25 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
| 26 | syntax:GPBFileSyntaxProto3]; |
| 27 | } |
| 28 | return descriptor; |
| 29 | } |
| 30 | |
| 31 | #pragma mark - GPBSourceContext |
| 32 | |
| 33 | @implementation GPBSourceContext |
| 34 | |
| 35 | @dynamic fileName; |
| 36 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 37 | typedef struct GPBSourceContext__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 38 | uint32_t _has_storage_[1]; |
| 39 | NSString *fileName; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 40 | } GPBSourceContext__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 41 | |
| 42 | // This method is threadsafe because it is initially called |
| 43 | // in +initialize for each subclass. |
| 44 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 45 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 46 | if (!descriptor) { |
| 47 | static GPBMessageFieldDescription fields[] = { |
| 48 | { |
| 49 | .name = "fileName", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 50 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 51 | .number = GPBSourceContext_FieldNumber_FileName, |
| 52 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 53 | .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 54 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 55 | .dataType = GPBDataTypeString, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 56 | }, |
| 57 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 58 | GPBDescriptor *localDescriptor = |
| 59 | [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] |
| 60 | rootClass:[GPBSourceContextRoot class] |
| 61 | file:GPBSourceContextRoot_FileDescriptor() |
| 62 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 63 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 64 | storageSize:sizeof(GPBSourceContext__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 65 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 66 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 67 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 68 | } |
| 69 | return descriptor; |
| 70 | } |
| 71 | |
| 72 | @end |
| 73 | |
| 74 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 75 | #pragma clang diagnostic pop |
| 76 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 77 | // @@protoc_insertion_point(global_scope) |