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/source_context.proto |
| 3 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [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 |
| 11 | #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h> |
| 12 | #else |
| 13 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 14 | #endif |
| 15 | |
| 16 | #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS |
| 17 | #import <Protobuf/SourceContext.pbobjc.h> |
| 18 | #else |
| 19 | #import "google/protobuf/SourceContext.pbobjc.h" |
| 20 | #endif |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 21 | // @@protoc_insertion_point(imports) |
| 22 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 23 | #pragma clang diagnostic push |
| 24 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 25 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 26 | #pragma mark - GPBSourceContextRoot |
| 27 | |
| 28 | @implementation GPBSourceContextRoot |
| 29 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 30 | // No extensions in the file and no imports, so no need to generate |
| 31 | // +extensionRegistry. |
| 32 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 33 | @end |
| 34 | |
| 35 | #pragma mark - GPBSourceContextRoot_FileDescriptor |
| 36 | |
| 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) { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 42 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 43 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 44 | objcPrefix:@"GPB" |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 45 | syntax:GPBFileSyntaxProto3]; |
| 46 | } |
| 47 | return descriptor; |
| 48 | } |
| 49 | |
| 50 | #pragma mark - GPBSourceContext |
| 51 | |
| 52 | @implementation GPBSourceContext |
| 53 | |
| 54 | @dynamic fileName; |
| 55 | |
| 56 | typedef struct GPBSourceContext__storage_ { |
| 57 | uint32_t _has_storage_[1]; |
| 58 | NSString *fileName; |
| 59 | } GPBSourceContext__storage_; |
| 60 | |
| 61 | // This method is threadsafe because it is initially called |
| 62 | // in +initialize for each subclass. |
| 63 | + (GPBDescriptor *)descriptor { |
| 64 | static GPBDescriptor *descriptor = nil; |
| 65 | if (!descriptor) { |
| 66 | static GPBMessageFieldDescription fields[] = { |
| 67 | { |
| 68 | .name = "fileName", |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 69 | .dataTypeSpecific.className = NULL, |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 70 | .number = GPBSourceContext_FieldNumber_FileName, |
| 71 | .hasIndex = 0, |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 72 | .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName), |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 73 | .flags = GPBFieldOptional, |
| 74 | .dataType = GPBDataTypeString, |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 75 | }, |
| 76 | }; |
| 77 | GPBDescriptor *localDescriptor = |
| 78 | [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] |
| 79 | rootClass:[GPBSourceContextRoot class] |
| 80 | file:GPBSourceContextRoot_FileDescriptor() |
| 81 | fields:fields |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 82 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 83 | storageSize:sizeof(GPBSourceContext__storage_) |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 84 | flags:GPBDescriptorInitializationFlag_None]; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 85 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 86 | descriptor = localDescriptor; |
| 87 | } |
| 88 | return descriptor; |
| 89 | } |
| 90 | |
| 91 | @end |
| 92 | |
| 93 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 94 | #pragma clang diagnostic pop |
| 95 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 96 | // @@protoc_insertion_point(global_scope) |