Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: third_party/protobuf/objectivec/google/protobuf/Empty.pbobjc.m

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // This CPP symbol can be defined to use imports that match up to the framework 4 #import "GPBProtocolBuffers_RuntimeSupport.h"
5 // imports needed when using CocoaPods. 5 #import "google/protobuf/Empty.pbobjc.h"
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
21 // @@protoc_insertion_point(imports) 6 // @@protoc_insertion_point(imports)
22 7
23 #pragma clang diagnostic push 8 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 9 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
25 10
26 #pragma mark - GPBEmptyRoot 11 #pragma mark - GPBEmptyRoot
27 12
28 @implementation GPBEmptyRoot 13 @implementation GPBEmptyRoot
29 14
30 // No extensions in the file and no imports, so no need to generate
31 // +extensionRegistry.
32
33 @end 15 @end
34 16
35 #pragma mark - GPBEmptyRoot_FileDescriptor 17 #pragma mark - GPBEmptyRoot_FileDescriptor
36 18
37 static GPBFileDescriptor *GPBEmptyRoot_FileDescriptor(void) { 19 static GPBFileDescriptor *GPBEmptyRoot_FileDescriptor(void) {
38 // This is called by +initialize so there is no need to worry 20 // This is called by +initialize so there is no need to worry
39 // about thread safety of the singleton. 21 // about thread safety of the singleton.
40 static GPBFileDescriptor *descriptor = NULL; 22 static GPBFileDescriptor *descriptor = NULL;
41 if (!descriptor) { 23 if (!descriptor) {
42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); 24 GPBDebugCheckRuntimeVersion();
43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 25 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
44 objcPrefix:@"GPB"
45 syntax:GPBFileSyntaxProto3] ; 26 syntax:GPBFileSyntaxProto3] ;
46 } 27 }
47 return descriptor; 28 return descriptor;
48 } 29 }
49 30
50 #pragma mark - GPBEmpty 31 #pragma mark - GPBEmpty
51 32
52 @implementation GPBEmpty 33 @implementation GPBEmpty
53 34
54 35
55 typedef struct GPBEmpty__storage_ { 36 typedef struct GPBEmpty__storage_ {
56 uint32_t _has_storage_[1]; 37 uint32_t _has_storage_[1];
57 } GPBEmpty__storage_; 38 } GPBEmpty__storage_;
58 39
59 // This method is threadsafe because it is initially called 40 // This method is threadsafe because it is initially called
60 // in +initialize for each subclass. 41 // in +initialize for each subclass.
61 + (GPBDescriptor *)descriptor { 42 + (GPBDescriptor *)descriptor {
62 static GPBDescriptor *descriptor = nil; 43 static GPBDescriptor *descriptor = nil;
63 if (!descriptor) { 44 if (!descriptor) {
64 GPBDescriptor *localDescriptor = 45 GPBDescriptor *localDescriptor =
65 [GPBDescriptor allocDescriptorForClass:[GPBEmpty class] 46 [GPBDescriptor allocDescriptorForClass:[GPBEmpty class]
66 rootClass:[GPBEmptyRoot class] 47 rootClass:[GPBEmptyRoot class]
67 file:GPBEmptyRoot_FileDescriptor() 48 file:GPBEmptyRoot_FileDescriptor()
68 fields:NULL 49 fields:NULL
69 fieldCount:0 50 fieldCount:0
70 storageSize:sizeof(GPBEmpty__storage_) 51 storageSize:sizeof(GPBEmpty__storage_)
71 flags:GPBDescriptorInitializationFlag_N one]; 52 flags:0];
72 NSAssert(descriptor == nil, @"Startup recursed!"); 53 NSAssert(descriptor == nil, @"Startup recursed!");
73 descriptor = localDescriptor; 54 descriptor = localDescriptor;
74 } 55 }
75 return descriptor; 56 return descriptor;
76 } 57 }
77 58
78 @end 59 @end
79 60
80 61
81 #pragma clang diagnostic pop 62 #pragma clang diagnostic pop
82 63
83 // @@protoc_insertion_point(global_scope) 64 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698