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 | |
Thomas Van Lenten | 7da023b | 2016-05-09 13:53:20 -0400 | [diff] [blame] | 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 |
| 8 | #endif |
| 9 | |
| 10 | #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS |
Thomas Van Lenten | 56c48ae | 2020-01-22 15:50:52 -0500 | [diff] [blame] | 11 | #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h> |
Thomas Van Lenten | 7da023b | 2016-05-09 13:53:20 -0400 | [diff] [blame] | 12 | #else |
| 13 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 14 | #endif |
| 15 | |
| 16 | #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS |
Thomas Van Lenten | 56c48ae | 2020-01-22 15:50:52 -0500 | [diff] [blame] | 17 | #import <Protobuf/GPBSourceContext.pbobjc.h> |
Thomas Van Lenten | 7da023b | 2016-05-09 13:53:20 -0400 | [diff] [blame] | 18 | #else |
Thomas Van Lenten | 56c48ae | 2020-01-22 15:50:52 -0500 | [diff] [blame] | 19 | #import "GPBSourceContext.pbobjc.h" |
Thomas Van Lenten | 7da023b | 2016-05-09 13:53:20 -0400 | [diff] [blame] | 20 | #endif |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 21 | // @@protoc_insertion_point(imports) |
| 22 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 23 | #pragma clang diagnostic push |
| 24 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 25 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 26 | #pragma mark - GPBSourceContextRoot |
| 27 | |
| 28 | @implementation GPBSourceContextRoot |
| 29 | |
Thomas Van Lenten | 13a4124 | 2016-09-01 11:45:50 -0400 | [diff] [blame] | 30 | // No extensions in the file and no imports, so no need to generate |
| 31 | // +extensionRegistry. |
| 32 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 33 | @end |
| 34 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 35 | #pragma mark - GPBSourceContextRoot_FileDescriptor |
| 36 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 37 | static GPBFileDescriptor *GPBSourceContextRoot_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; |
| 41 | if (!descriptor) { |
Thomas Van Lenten | 1aa6500 | 2016-09-15 13:27:17 -0400 | [diff] [blame] | 42 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 43 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
Thomas Van Lenten | 337ec30 | 2016-08-16 11:26:49 -0400 | [diff] [blame] | 44 | objcPrefix:@"GPB" |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 45 | syntax:GPBFileSyntaxProto3]; |
| 46 | } |
| 47 | return descriptor; |
| 48 | } |
| 49 | |
| 50 | #pragma mark - GPBSourceContext |
| 51 | |
| 52 | @implementation GPBSourceContext |
| 53 | |
| 54 | @dynamic fileName; |
| 55 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 56 | typedef struct GPBSourceContext__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 57 | uint32_t _has_storage_[1]; |
| 58 | NSString *fileName; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 59 | } GPBSourceContext__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 60 | |
| 61 | // This method is threadsafe because it is initially called |
| 62 | // in +initialize for each subclass. |
| 63 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 64 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 65 | if (!descriptor) { |
| 66 | static GPBMessageFieldDescription fields[] = { |
| 67 | { |
| 68 | .name = "fileName", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 69 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 70 | .number = GPBSourceContext_FieldNumber_FileName, |
| 71 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 72 | .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 73 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 74 | .dataType = GPBDataTypeString, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 75 | }, |
| 76 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 77 | GPBDescriptor *localDescriptor = |
| 78 | [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] |
| 79 | rootClass:[GPBSourceContextRoot class] |
| 80 | file:GPBSourceContextRoot_FileDescriptor() |
| 81 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 82 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 83 | storageSize:sizeof(GPBSourceContext__storage_) |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 84 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 85 | #if defined(DEBUG) && DEBUG |
| 86 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 87 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 88 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 89 | } |
| 90 | return descriptor; |
| 91 | } |
| 92 | |
| 93 | @end |
| 94 | |
| 95 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 96 | #pragma clang diagnostic pop |
| 97 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 98 | // @@protoc_insertion_point(global_scope) |