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/empty.proto | 2 // source: google/protobuf/empty.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/Empty.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/Empty.pbobjc.h> |
| 18 #else |
| 19 #import "google/protobuf/Empty.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 - GPBEmptyRoot | 26 #pragma mark - GPBEmptyRoot |
12 | 27 |
13 @implementation GPBEmptyRoot | 28 @implementation GPBEmptyRoot |
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 - GPBEmptyRoot_FileDescriptor | 35 #pragma mark - GPBEmptyRoot_FileDescriptor |
18 | 36 |
19 static GPBFileDescriptor *GPBEmptyRoot_FileDescriptor(void) { | 37 static GPBFileDescriptor *GPBEmptyRoot_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 - GPBEmpty | 50 #pragma mark - GPBEmpty |
32 | 51 |
33 @implementation GPBEmpty | 52 @implementation GPBEmpty |
34 | 53 |
35 | 54 |
36 typedef struct GPBEmpty__storage_ { | 55 typedef struct GPBEmpty__storage_ { |
37 uint32_t _has_storage_[1]; | 56 uint32_t _has_storage_[1]; |
38 } GPBEmpty__storage_; | 57 } GPBEmpty__storage_; |
39 | 58 |
40 // This method is threadsafe because it is initially called | 59 // This method is threadsafe because it is initially called |
41 // in +initialize for each subclass. | 60 // in +initialize for each subclass. |
42 + (GPBDescriptor *)descriptor { | 61 + (GPBDescriptor *)descriptor { |
43 static GPBDescriptor *descriptor = nil; | 62 static GPBDescriptor *descriptor = nil; |
44 if (!descriptor) { | 63 if (!descriptor) { |
45 GPBDescriptor *localDescriptor = | 64 GPBDescriptor *localDescriptor = |
46 [GPBDescriptor allocDescriptorForClass:[GPBEmpty class] | 65 [GPBDescriptor allocDescriptorForClass:[GPBEmpty class] |
47 rootClass:[GPBEmptyRoot class] | 66 rootClass:[GPBEmptyRoot class] |
48 file:GPBEmptyRoot_FileDescriptor() | 67 file:GPBEmptyRoot_FileDescriptor() |
49 fields:NULL | 68 fields:NULL |
50 fieldCount:0 | 69 fieldCount:0 |
51 storageSize:sizeof(GPBEmpty__storage_) | 70 storageSize:sizeof(GPBEmpty__storage_) |
52 flags:0]; | 71 flags:GPBDescriptorInitializationFlag_N
one]; |
53 NSAssert(descriptor == nil, @"Startup recursed!"); | 72 NSAssert(descriptor == nil, @"Startup recursed!"); |
54 descriptor = localDescriptor; | 73 descriptor = localDescriptor; |
55 } | 74 } |
56 return descriptor; | 75 return descriptor; |
57 } | 76 } |
58 | 77 |
59 @end | 78 @end |
60 | 79 |
61 | 80 |
62 #pragma clang diagnostic pop | 81 #pragma clang diagnostic pop |
63 | 82 |
64 // @@protoc_insertion_point(global_scope) | 83 // @@protoc_insertion_point(global_scope) |
OLD | NEW |