• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Generated by the protocol buffer compiler.  DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// clang-format off
4// source: google/protobuf/source_context.proto
5
6#import "GPBProtocolBuffers_RuntimeSupport.h"
7#import "GPBSourceContext.pbobjc.h"
8
9#if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
10#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
11#endif
12#if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
13#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
14#endif
15
16// @@protoc_insertion_point(imports)
17
18#pragma clang diagnostic push
19#pragma clang diagnostic ignored "-Wdeprecated-declarations"
20#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
21
22#pragma mark - Objective-C Class declarations
23// Forward declarations of Objective-C classes that we can use as
24// static values in struct initializers.
25// We don't use [Foo class] because it is not a static value.
26GPBObjCClassDeclaration(GPBSourceContext);
27
28#pragma mark - GPBSourceContextRoot
29
30@implementation GPBSourceContextRoot
31
32// No extensions in the file and no imports or none of the imports (direct or
33// indirect) defined extensions, so no need to generate +extensionRegistry.
34
35@end
36
37static GPBFileDescription GPBSourceContextRoot_FileDescription = {
38  .package = "google.protobuf",
39  .prefix = "GPB",
40  .syntax = GPBFileSyntaxProto3
41};
42
43#pragma mark - GPBSourceContext
44
45@implementation GPBSourceContext
46
47@dynamic fileName;
48
49typedef struct GPBSourceContext__storage_ {
50  uint32_t _has_storage_[1];
51  NSString *fileName;
52} GPBSourceContext__storage_;
53
54// This method is threadsafe because it is initially called
55// in +initialize for each subclass.
56+ (GPBDescriptor *)descriptor {
57  static GPBDescriptor *descriptor = nil;
58  if (!descriptor) {
59    GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
60    static GPBMessageFieldDescription fields[] = {
61      {
62        .name = "fileName",
63        .dataTypeSpecific.clazz = Nil,
64        .number = GPBSourceContext_FieldNumber_FileName,
65        .hasIndex = 0,
66        .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName),
67        .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero),
68        .dataType = GPBDataTypeString,
69      },
70    };
71    GPBDescriptor *localDescriptor =
72        [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBSourceContext)
73                                   messageName:@"SourceContext"
74                               fileDescription:&GPBSourceContextRoot_FileDescription
75                                        fields:fields
76                                    fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription))
77                                   storageSize:sizeof(GPBSourceContext__storage_)
78                                         flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
79    #if defined(DEBUG) && DEBUG
80      NSAssert(descriptor == nil, @"Startup recursed!");
81    #endif  // DEBUG
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
94// clang-format on
95