| OLD | NEW |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: google/protobuf/source_context.proto | 2 // source: google/protobuf/source_context.proto |
| 3 | 3 |
| 4 #import "GPBProtocolBuffers_RuntimeSupport.h" | 4 // This CPP symbol can be defined to use imports that match up to the framework |
| 5 #import "google/protobuf/SourceContext.pbobjc.h" | 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 |
| 6 // @@protoc_insertion_point(imports) | 21 // @@protoc_insertion_point(imports) |
| 7 | 22 |
| 8 #pragma clang diagnostic push | 23 #pragma clang diagnostic push |
| 9 #pragma clang diagnostic ignored "-Wdeprecated-declarations" | 24 #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 10 | 25 |
| 11 #pragma mark - GPBSourceContextRoot | 26 #pragma mark - GPBSourceContextRoot |
| 12 | 27 |
| 13 @implementation GPBSourceContextRoot | 28 @implementation GPBSourceContextRoot |
| 14 | 29 |
| 30 // No extensions in the file and no imports, so no need to generate |
| 31 // +extensionRegistry. |
| 32 |
| 15 @end | 33 @end |
| 16 | 34 |
| 17 #pragma mark - GPBSourceContextRoot_FileDescriptor | 35 #pragma mark - GPBSourceContextRoot_FileDescriptor |
| 18 | 36 |
| 19 static GPBFileDescriptor *GPBSourceContextRoot_FileDescriptor(void) { | 37 static GPBFileDescriptor *GPBSourceContextRoot_FileDescriptor(void) { |
| 20 // This is called by +initialize so there is no need to worry | 38 // This is called by +initialize so there is no need to worry |
| 21 // about thread safety of the singleton. | 39 // about thread safety of the singleton. |
| 22 static GPBFileDescriptor *descriptor = NULL; | 40 static GPBFileDescriptor *descriptor = NULL; |
| 23 if (!descriptor) { | 41 if (!descriptor) { |
| 24 GPBDebugCheckRuntimeVersion(); | 42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
| 25 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" | 43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
| 44 objcPrefix:@"GPB" |
| 26 syntax:GPBFileSyntaxProto3]
; | 45 syntax:GPBFileSyntaxProto3]
; |
| 27 } | 46 } |
| 28 return descriptor; | 47 return descriptor; |
| 29 } | 48 } |
| 30 | 49 |
| 31 #pragma mark - GPBSourceContext | 50 #pragma mark - GPBSourceContext |
| 32 | 51 |
| 33 @implementation GPBSourceContext | 52 @implementation GPBSourceContext |
| 34 | 53 |
| 35 @dynamic fileName; | 54 @dynamic fileName; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 55 .dataType = GPBDataTypeString, | 74 .dataType = GPBDataTypeString, |
| 56 }, | 75 }, |
| 57 }; | 76 }; |
| 58 GPBDescriptor *localDescriptor = | 77 GPBDescriptor *localDescriptor = |
| 59 [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] | 78 [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] |
| 60 rootClass:[GPBSourceContextRoot class] | 79 rootClass:[GPBSourceContextRoot class] |
| 61 file:GPBSourceContextRoot_FileDescript
or() | 80 file:GPBSourceContextRoot_FileDescript
or() |
| 62 fields:fields | 81 fields:fields |
| 63 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) | 82 fieldCount:(uint32_t)(sizeof(fields) / sizeo
f(GPBMessageFieldDescription)) |
| 64 storageSize:sizeof(GPBSourceContext__storage_
) | 83 storageSize:sizeof(GPBSourceContext__storage_
) |
| 65 flags:0]; | 84 flags:GPBDescriptorInitializationFlag_N
one]; |
| 66 NSAssert(descriptor == nil, @"Startup recursed!"); | 85 NSAssert(descriptor == nil, @"Startup recursed!"); |
| 67 descriptor = localDescriptor; | 86 descriptor = localDescriptor; |
| 68 } | 87 } |
| 69 return descriptor; | 88 return descriptor; |
| 70 } | 89 } |
| 71 | 90 |
| 72 @end | 91 @end |
| 73 | 92 |
| 74 | 93 |
| 75 #pragma clang diagnostic pop | 94 #pragma clang diagnostic pop |
| 76 | 95 |
| 77 // @@protoc_insertion_point(global_scope) | 96 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |