1// Generated by the protocol buffer compiler. DO NOT EDIT! 2// source: google/protobuf/source_context.proto 3 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 21// @@protoc_insertion_point(imports) 22 23#pragma clang diagnostic push 24#pragma clang diagnostic ignored "-Wdeprecated-declarations" 25 26#pragma mark - GPBSourceContextRoot 27 28@implementation GPBSourceContextRoot 29 30@end 31 32#pragma mark - GPBSourceContextRoot_FileDescriptor 33 34static GPBFileDescriptor *GPBSourceContextRoot_FileDescriptor(void) { 35 // This is called by +initialize so there is no need to worry 36 // about thread safety of the singleton. 37 static GPBFileDescriptor *descriptor = NULL; 38 if (!descriptor) { 39 GPBDebugCheckRuntimeVersion(); 40 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 41 syntax:GPBFileSyntaxProto3]; 42 } 43 return descriptor; 44} 45 46#pragma mark - GPBSourceContext 47 48@implementation GPBSourceContext 49 50@dynamic fileName; 51 52typedef struct GPBSourceContext__storage_ { 53 uint32_t _has_storage_[1]; 54 NSString *fileName; 55} GPBSourceContext__storage_; 56 57// This method is threadsafe because it is initially called 58// in +initialize for each subclass. 59+ (GPBDescriptor *)descriptor { 60 static GPBDescriptor *descriptor = nil; 61 if (!descriptor) { 62 static GPBMessageFieldDescription fields[] = { 63 { 64 .name = "fileName", 65 .dataTypeSpecific.className = NULL, 66 .number = GPBSourceContext_FieldNumber_FileName, 67 .hasIndex = 0, 68 .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName), 69 .flags = GPBFieldOptional, 70 .dataType = GPBDataTypeString, 71 }, 72 }; 73 GPBDescriptor *localDescriptor = 74 [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] 75 rootClass:[GPBSourceContextRoot class] 76 file:GPBSourceContextRoot_FileDescriptor() 77 fields:fields 78 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 79 storageSize:sizeof(GPBSourceContext__storage_) 80 flags:0]; 81 NSAssert(descriptor == nil, @"Startup recursed!"); 82 descriptor = localDescriptor; 83 } 84 return descriptor; 85} 86 87@end 88 89 90#pragma clang diagnostic pop 91 92// @@protoc_insertion_point(global_scope) 93