blob: 42a60ac89b81e9d61a362aaf56398334f00121c9 [file] [log] [blame]
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -04001// Generated by the protocol buffer compiler. DO NOT EDIT!
Thomas Van Lenten7c646282022-09-19 13:19:31 -04002// clang-format off
Thomas Van Lenten672adeb2022-10-06 16:16:07 -04003// source: google/protobuf/source_context.proto
Thomas Van Lenten7c646282022-09-19 13:19:31 -04004
Thomas Van Lenten020e4e32022-03-01 14:16:50 -05005#import "GPBProtocolBuffers_RuntimeSupport.h"
6#import "GPBSourceContext.pbobjc.h"
Thomas Van Lenten7da023b2016-05-09 13:53:20 -04007
Protobuf Team Bote4d70bb2023-02-08 10:17:46 -08008#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
9#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
10#endif
11#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
12#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
13#endif
14
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040015// @@protoc_insertion_point(imports)
16
Thomas Van Lentene664aa62016-04-19 13:13:04 -040017#pragma clang diagnostic push
18#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Protobuf Team Botbf7de742023-02-02 11:29:54 -080019#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
20
Protobuf Team Botaeae4302023-02-09 07:43:26 -080021#pragma mark - Objective-C Class declarations
22// Forward declarations of Objective-C classes that we can use as
Protobuf Team Botbf7de742023-02-02 11:29:54 -080023// static values in struct initializers.
24// We don't use [Foo class] because it is not a static value.
25GPBObjCClassDeclaration(GPBSourceContext);
Thomas Van Lentene664aa62016-04-19 13:13:04 -040026
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040027#pragma mark - GPBSourceContextRoot
28
29@implementation GPBSourceContextRoot
30
Thomas Van Lenten740d3142023-08-14 10:04:53 -070031// No extensions in the file and no imports or none of the imports (direct or
32// indirect) defined extensions, so no need to generate +extensionRegistry.
Thomas Van Lenten13a41242016-09-01 11:45:50 -040033
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040034@end
35
Protobuf Team Bot4ed02cc2023-02-08 06:31:58 -080036static GPBFileDescription GPBSourceContextRoot_FileDescription = {
37 .package = "google.protobuf",
38 .prefix = "GPB",
39 .syntax = GPBFileSyntaxProto3
40};
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040041
42#pragma mark - GPBSourceContext
43
44@implementation GPBSourceContext
45
46@dynamic fileName;
47
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040048typedef struct GPBSourceContext__storage_ {
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040049 uint32_t _has_storage_[1];
50 NSString *fileName;
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040051} GPBSourceContext__storage_;
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040052
53// This method is threadsafe because it is initially called
54// in +initialize for each subclass.
55+ (GPBDescriptor *)descriptor {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040056 static GPBDescriptor *descriptor = nil;
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040057 if (!descriptor) {
Protobuf Team Bot78376c32023-01-31 11:29:07 -080058 GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040059 static GPBMessageFieldDescription fields[] = {
60 {
61 .name = "fileName",
Dave MacLachlan74956e12019-12-17 17:32:09 -080062 .dataTypeSpecific.clazz = Nil,
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040063 .number = GPBSourceContext_FieldNumber_FileName,
64 .hasIndex = 0,
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040065 .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName),
Thomas Van Lentenb0e27922020-04-13 13:36:56 -040066 .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040067 .dataType = GPBDataTypeString,
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040068 },
69 };
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040070 GPBDescriptor *localDescriptor =
Protobuf Team Botbf7de742023-02-02 11:29:54 -080071 [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBSourceContext)
Protobuf Team Bot4ed02cc2023-02-08 06:31:58 -080072 messageName:@"SourceContext"
73 fileDescription:&GPBSourceContextRoot_FileDescription
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040074 fields:fields
Thomas Van Lenten79a23c42016-03-17 10:04:21 -040075 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040076 storageSize:sizeof(GPBSourceContext__storage_)
Protobuf Team Bot4a122472022-11-15 11:22:51 -080077 flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
Thomas Van Lenten6c4ab102023-07-11 07:49:55 -070078 #if defined(DEBUG) && DEBUG
Dave MacLachlanb6311762018-12-11 16:32:48 -080079 NSAssert(descriptor == nil, @"Startup recursed!");
Thomas Van Lenten6c4ab102023-07-11 07:49:55 -070080 #endif // DEBUG
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040081 descriptor = localDescriptor;
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040082 }
83 return descriptor;
84}
85
86@end
87
88
Thomas Van Lentene664aa62016-04-19 13:13:04 -040089#pragma clang diagnostic pop
90
Thomas Van Lenten1dcc3292015-05-21 17:14:52 -040091// @@protoc_insertion_point(global_scope)
Thomas Van Lenten7c646282022-09-19 13:19:31 -040092
Thomas Van Lenten672adeb2022-10-06 16:16:07 -040093// clang-format on