blob: b3e6fa759ce486df043ce8db58810f05b9d12744 [file] [log] [blame]
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -04001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/source_context.proto
3
Thomas Van Lenten7da023b2016-05-09 13:53:20 -04004// 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 Lenten56c48ae2020-01-22 15:50:52 -050011 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
Thomas Van Lenten7da023b2016-05-09 13:53:20 -040012#else
13 #import "GPBProtocolBuffers_RuntimeSupport.h"
14#endif
15
16#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
Thomas Van Lenten56c48ae2020-01-22 15:50:52 -050017 #import <Protobuf/GPBSourceContext.pbobjc.h>
Thomas Van Lenten7da023b2016-05-09 13:53:20 -040018#else
Thomas Van Lenten56c48ae2020-01-22 15:50:52 -050019 #import "GPBSourceContext.pbobjc.h"
Thomas Van Lenten7da023b2016-05-09 13:53:20 -040020#endif
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040021// @@protoc_insertion_point(imports)
22
Thomas Van Lentene664aa62016-04-19 13:13:04 -040023#pragma clang diagnostic push
24#pragma clang diagnostic ignored "-Wdeprecated-declarations"
25
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040026#pragma mark - GPBSourceContextRoot
27
28@implementation GPBSourceContextRoot
29
Thomas Van Lenten13a41242016-09-01 11:45:50 -040030// No extensions in the file and no imports, so no need to generate
31// +extensionRegistry.
32
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040033@end
34
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040035#pragma mark - GPBSourceContextRoot_FileDescriptor
36
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040037static 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 Lenten1aa65002016-09-15 13:27:17 -040042 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040043 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
Thomas Van Lenten337ec302016-08-16 11:26:49 -040044 objcPrefix:@"GPB"
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040045 syntax:GPBFileSyntaxProto3];
46 }
47 return descriptor;
48}
49
50#pragma mark - GPBSourceContext
51
52@implementation GPBSourceContext
53
54@dynamic fileName;
55
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040056typedef struct GPBSourceContext__storage_ {
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040057 uint32_t _has_storage_[1];
58 NSString *fileName;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040059} GPBSourceContext__storage_;
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040060
61// This method is threadsafe because it is initially called
62// in +initialize for each subclass.
63+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040064 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040065 if (!descriptor) {
66 static GPBMessageFieldDescription fields[] = {
67 {
68 .name = "fileName",
Dave MacLachlan74956e12019-12-17 17:32:09 -080069 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040070 .number = GPBSourceContext_FieldNumber_FileName,
71 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040072 .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040073 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040074 .dataType = GPBDataTypeString,
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040075 },
76 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040077 GPBDescriptor *localDescriptor =
78 [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class]
79 rootClass:[GPBSourceContextRoot class]
80 file:GPBSourceContextRoot_FileDescriptor()
81 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040082 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040083 storageSize:sizeof(GPBSourceContext__storage_)
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040084 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)];
Dave MacLachlanb6311762018-12-11 16:32:48 -080085 #if defined(DEBUG) && DEBUG
86 NSAssert(descriptor == nil, @"Startup recursed!");
87 #endif // DEBUG
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040088 descriptor = localDescriptor;
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040089 }
90 return descriptor;
91}
92
93@end
94
95
Thomas Van Lentene664aa62016-04-19 13:13:04 -040096#pragma clang diagnostic pop
97
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040098// @@protoc_insertion_point(global_scope)